App.config classlibrary

A

Alex Kid

I have a Client/server software and in a Server Class Library.
I have need to save of the configuration data(App.Config) but I know that
what is not possibile.In alternative could use?

I would not want to set these information from the client...
 
W

W.G. Ryan eMVP

You can just write your own. If you use a Cusmtom Configuration Section
handler
http://www.knowdotnet.com/articles/customconfiguration.html
http://www.knowdotnet.com/articles/configii.html

-- you can specify a File Section. So if you point to a file and it exists,
it will use it for that section instead of what's in .config. So the cool
part is that if you don't have the file but you specify it - no biggy, it
will just use what's in your section.

So, you can use someName.xml as the writeable file and just use the Xml
libraries to create your new settings and copy it to where you told the
'real' config file to look. You can always write to this file b/c it
doesn't even need to exist in the first place, and it's basically yours.
And if you don't want it there - not a problem, the standard configuration
Section will be used.

Let me know if you have any questions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top