PC Review


Reply
Thread Tools Rate Thread

.config file for Library assembly

 
 
Erick
Guest
Posts: n/a
 
      23rd Jan 2004
Hi,

I have a Library assembly which I have added a config file, and a section
handler but at the time to compile it the config file is not placed into the
bin\debug or release folder, does any one know why I cannot use a config.
file into a library assembly?

Thanks for any help received.

Cheers...


 
Reply With Quote
 
 
 
 
Ben S. Stahlhood II
Guest
Posts: n/a
 
      23rd Jan 2004
It is not supported at this time by default. You will have to write your
own classes to handle reading configuration files for assembly class
libraries. I wrote one that works just like the FCL version, but allows
reading from Assemblies or Application config files.

Take care,
Ben S. Stahlhood II


"Erick" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi,
>
> I have a Library assembly which I have added a config file, and a section
> handler but at the time to compile it the config file is not placed into

the
> bin\debug or release folder, does any one know why I cannot use a config.
> file into a library assembly?
>
> Thanks for any help received.
>
> Cheers...
>
>



 
Reply With Quote
 
Christopher Kimbell
Guest
Posts: n/a
 
      23rd Jan 2004
You can add the sections to the config file of the application that loads
your library.

Chris


"Erick" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hi,
>
> I have a Library assembly which I have added a config file, and a section
> handler but at the time to compile it the config file is not placed into

the
> bin\debug or release folder, does any one know why I cannot use a config.
> file into a library assembly?
>
> Thanks for any help received.
>
> Cheers...
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically load assembly from config file Nelson Xu Microsoft Dot NET Framework 8 17th Jan 2005 04:21 PM
Dynamically load an assembly from config file Nelson Xu Microsoft Dot NET Framework 0 17th Jan 2005 01:29 PM
Reference an assembly in the config file? Julia Microsoft C# .NET 1 12th Sep 2004 04:10 PM
Can you redirect framework with config file to an assembly? Lanky Microsoft Dot NET Framework 0 17th Dec 2003 11:17 PM
Config File For an Assembly? C Newby Microsoft Dot NET Framework 1 16th Jul 2003 07:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:32 AM.