I can't take any credit for that; Mike Woodring wrote the sample.

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

>Great, thx, will take a look at it, and thx also to Mr. Reinacker for great
>sample!
>
>HAND,
>
>Ivan
>
>-----Original Message-----
>From: Kirk Allen Evans [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 24, 2002 4:50 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [DOTNET] app.config problem
>
>
>I also have an online chapter describing configuration files avaliable on
>Amazon.  It has an example of controlling authentication at the machine,
>application, and subdirectory level.  It also has examples of using the
>System.Configuration and System.Web.Configuration namespaces at:
>
>http://www.amazon.com/exec/obidos/tg/stores/detail/-/books/073571200X/reader
>/41/002-2649609-5633610#reader-link
>
>Kirk Allen Evans
>"XML and ASP.NET", New Riders Publishing
>Available at Amazon.com http://www.amazon.com/exec/obidos/ASIN/073571200X
>
>
>> -----Original Message-----
>> From: dotnet discussion [mailto:[EMAIL PROTECTED]]On
>> Behalf Of
>> Greg Reinacker
>> Sent: Friday, May 24, 2002 10:30 AM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [DOTNET] app.config problem
>>
>>
>> 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.
>>
>>
>
>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