Can a DLL read from Web.Config?

G

Guest

I have an ASP.NET web site that uses a .NET dll. The DLL has a DataSet in
it. Problem is, the DLL uses an app.config file (and worse yet, it uses the
stupid settings.settings file, which in turn builds the app.config). So, now
I have to configure settings in the web.config, settings.settings, and
app.config!

Is there any way to have my DLL use the web.config file and ignore
app.config and the settings.settings files?

Thx in advance.
 
W

Wessam Zeidan

Hello Todd,
If you just place your dll in the bin folder, and place the config info in
the app.config file into web.config file, the dll will read the info from
the web.config as it would do with the app.config file

Regards,
Wessam
 

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