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 / Interop / June 2004

Tip: Looking for answers? Try searching our database.

COM-enabled assembly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe H - 23 Jun 2004 14:56 GMT
i have created a DLL in vb.net which exposes its functionality to COM
clients.

the vb.net DLL has an app.config file because it has URLBehavior = Dynamic
for a number of web references it uses.

now, if the VB6 client that uses the assembly, the assembly itself, and the
app.config file are all in the same directory, then everything works with no
problem.

however, the assembly is a "tools" component, and will be consumed by
several VB6 clients.  so, i need to put the assembly into the GAC.  however,

1. i don't know what happens to the app.config file when i put the assembly
into the GAC.  does gacutil find the app.config file and copy it to the GAC
also?  or do i have to manually find the path of the assembly in the GAC and
then put the app.config file there?

2. also, while researching this issue, i have come across several newsgroup
threads indicating that the app.config file will not work for DLL assemblies
anyway.

would appreciate any comments/input on either or both of the above two
items.

thanks,
joe
Klaus H. Probst - 23 Jun 2004 18:16 GMT
> 1. i don't know what happens to the app.config file when i put the assembly
> into the GAC.  does gacutil find the app.config file and copy it to the GAC
> also?  or do i have to manually find the path of the assembly in the GAC and
> then put the app.config file there?

It should be in the same directory as the assembly that initiates the
*process*, which takes us to your next question...

> 2. also, while researching this issue, i have come across several newsgroup
> threads indicating that the app.config file will not work for DLL assemblies
> anyway.

... yep. Configuration files are not used for DLLs; they are loaded only for
processes.

Signature

Klaus H. Probst, MVP
  http://www.vbbox.com/


Rate this thread:







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.