Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Can Web.Config be read using Microsoft.Web.Administration?

$
0
0

I have the need to dynamically list all applications running under IIS on a given web server.  Within each IIS app (i.e. web site, WCF service, etc.) I want to check for database connection strings.  If there are connection strings, I want to copy them from the web.config file and list those out as well.

I can list the IIS apps easily enough using the Microsoft.Web.Administration DLL; However, I can't figure out a way to read the web.config file.  Is this possible?

  --- Thanks, Jeff


Viewing all articles
Browse latest Browse all 27852

Trending Articles



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