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