Get path of current application from IIS metabase
I have exported the metabase from IIS and there is an entry

    <IIsWebVirtualDir Location="/LM/W3SVC/1/ROOT/ReverseProxy" .../>

The web.config has

    <?xml version="1.0"?>
    <configuration>
      <appSettings>
        <add key="myDomain.com" value="http://ip_address" />
      </appSettings>
      <system.web>
        <httpHandlers>
          <add verb="*" path="*" type="ReverseProxy.ReverseProxy, ReverseProxy"/>
        </httpHandlers>
      </system.web>
    </configuration>

Within my code I am attempting to open the web.config file with 

    System.Configuration.Configuration rootWebConfig =
				System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/ReverseProxy");

After executing the code rootWebConfig.AppSettings.Settings.Count is 0 where it should be 1.

Get path of current application from IIS metabase
===

I have exported the metabase from IIS and there is an entry

    <IIsWebVirtualDir Location="/LM/W3SVC/1/ROOT/ReverseProxy" .../>

The web.config has

    <?xml version="1.0"?>
    <configuration>
      <appSettings>
        <add key="myDomain.com" value="http://ip_address" />
      </appSettings>
      <system.web>
        <httpHandlers>
          <add verb="*" path="*" type="ReverseProxy.ReverseProxy, ReverseProxy"/>
        </httpHandlers>
      </system.web>
    </configuration>

Within my code I am attempting to open the web.config file with 

    System.Configuration.Configuration rootWebConfig =
				System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/ReverseProxy");

After executing the code rootWebConfig.AppSettings.Settings.Count is 0 where it should be 1.
