Parameters for WebConfigurationManager.OpenWebConfiguration(RootVDir, SiteNumber)

I needed to open web.config file from the external application(setup utility).

I decided to use WebConfigurationManager.OpenWebConfiguration(path,site) function. 

In the documentation it is not clear, that path should started with “\“ , e.g “\MyWebApp“.Passing “MyWebApp“ without leading “\” causes error.

If I want to use metabase site path (e.g "/LM/W3SVC/1") instead of  name of the application Web site, I can to pass “1“ as site parameter and it is fully acceptable(but not documented). 

posted @ Tuesday, March 28, 2006 12:27 PM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 8 and 7 and type the answer here:
 

Live Comment Preview:

 
«September»
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011