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 / November 2005

Tip: Looking for answers? Try searching our database.

app.config with .Net written COM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Baron Ng - 04 Nov 2005 02:38 GMT
Hi,
I wrote a COM (ABC.dll) using VS.Net 2005
since it is not an application; I don't know how it can access app.config
(ABC.dll.config)

I tried ConfigurationManager.AppSettings but it didn't work

any idea?!

Thanks!
Jason Newell - 04 Nov 2005 15:11 GMT
Baron,

App.Config is only for executables.  If you want to use something like
an App.Config for a .dll, you'd have to write your own AppSettings class
to manage it.

To quote
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbor
iintroductiontoapplicationsettingstorage.asp


"You can use dynamic properties in any application that compiles to an
.exe file. Projects that compile a DLL cannot use dynamic properties
directly..."

Jason

> Hi,
> I wrote a COM (ABC.dll) using VS.Net 2005
[quoted text clipped - 6 lines]
>
> Thanks!
Baron Ng - 07 Nov 2005 08:48 GMT
Thanks!
Guess i need to make use of registry

> Baron,
>
[quoted text clipped - 21 lines]
> >
> > Thanks!

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.