Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2005

Tip: Looking for answers? Try searching our database.

Help! How do I Specify .config Information if my Assembly Client is a VB6 Application?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Geretz - 29 Sep 2005 22:35 GMT
I need to download a greater than 4 megabyte attachment via WSE / DIME. The
only way I know how to configure this is via a .config file. Normally, the
.config file is the same name as the base application. I built a .NET driver
program to test this, NetBrokerDriver and provided a
NetBrokerDriver.exe.config file which specifies the following:

<messaging>
   <maxRequestLength>-1</maxRequestLength>
</messaging>

This works. My .NET client application is able to transfer large files
(tested up to 100 megabytes).

HOWEVER, my live scenario is very different since it includes VB6 and
interop. Will I be able to use a .config file in this scenario?

My application is deployed as C:\Program Files\MyApp\MyApp.exe

My application DLL's are all deployed to C:\Program Files\Common
Files\MyCompany. I'd like to place the .NET dll in this location as well for
consistency and I'll use RegAsm /codebase in order to register this in this
location.

So where do I place this .config file and how do I name it?

C:\Program Files\MyApp\MyApp.exe.config?
C:\Program Files\MyApp\MyNETDLL.dll.config?
C:\Program Files\Common Files\MyCompany\MyNETDLL.dll.config?
C:\Program Files\Common Files\MyCompany\MyApp.exe.config?

Otherwise, if this is not possible for an Interop scenario, please tell me
how I can set this value directly in code, without having to resort to the
.config file.

Thank you very much for your help!

- Joe Geretz -
Joseph Geretz - 30 Sep 2005 15:22 GMT
Solution!

This is not a problem. Evidently, .NET Assembly loaded via Interop takes on
the AppDomain identity of the base VB6 application. So placing a .config
file named MyVB6App.exe.config together with MyVB6App.exe in the application
folder does the trick!

- Joe Geretz -

>I need to download a greater than 4 megabyte attachment via WSE / DIME. The
>only way I know how to configure this is via a .config file. Normally, the
[quoted text clipped - 33 lines]
>
> - Joe Geretz -

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.