Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

Reading WEB.CONFIG without knowing the web site name

$
0
0

I want to read the web.config for my current application.

WebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/")

and

WebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null)

do not work. What paramter (or other method) will get this information?

Thks!


Viewing all articles
Browse latest Browse all 3561


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>