title: Open web.config from console application?
body: <p>I have a console capplication that runs on the same computer that hosts a bunch of web.config files.  I need the console application to open each web.config file and decrypt the connection string and then test if the connection string works.</p>
  
  <p>The problem I am running into is that OpenExeConfiguration is expecting a winforms application configuration file (app.dll.config) and OpenWebConfiguration needs to be run through IIS.  Since this is my local machine, I'm not running IIS (I use Visual Studio's built-in server).</p>
  
  <p>Is there a way I can open the web.config files while still getting the robustness of .NET's capabilities to decrypt the connectionstrings?</p>
  
  <p>Thanks</p>
  
  <p><strong>Update</strong>
  The OpenWebConfiguration works if you are querying IIS directly or are the website in question that you want to look up the web.config for.  What I am looking to accomplish is the same sort of functionality, but from a console application opening up the web.config file of a website on my same machine not using an IIS query because IIS isn't running on my machine.</p>