By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,741 Members | 1,973 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,741 IT Pros & Developers. It's quick & easy.

Can a DLL read from Web.Config?

P: n/a
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.
Sep 22 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
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.

Sep 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.