You might look at Mike Woodring's per-assembly config file sample, at

http://staff.develop.com/woodring/dotnet/#AssemblySettings

Greg Reinacker
Reinacker & Associates, Inc.
http://www.rassoc.com

-----Original Message-----
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
Majercak Ivan
Sent: Friday, May 24, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: Re: app.config problem


Hi,

thx for a prompt answer, helped me a lot, no such info in MSDN [or at
least
didn't find it]!!!

I have one more Q concerning this: what if I want to expose my library
to
non-.net executable? Will the configs be ignored anyway, will I have to
use
machine.config instead?

Thx in advance for any further hints,

Ivan

-----Original Message-----
From: Marsh, Drew [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 4:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] app.config problem


Majercak Ivan [mailto:[EMAIL PROTECTED]] wrote:

> I have a prob with app.config file - I have created a class library as
> a proxy to webservice and I want to keep my URL and couple of others
> dynamic properties in app.config file (let's say it's called
> myclass.dll.config), but when I create a test client application with
> its own configuration file (e.g. myapp.exe.config), I can only use
> properties stored in there, not in a myclass.dll.config.
>
> Can anyone help me with that?

Yup, config files are at loaded at the executable assebmly level only.
Library assemblies that have configuration information need to have a
config
section placed into each application config file. Another option is,
assuming your data is not application specific, when you install your
library assembly you add your config section into machine.config. That
way
it will be accessible by all applications running on the machine.

HTH,
Drew
.NET

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to