iis 6 - IIS6 Virtual Directory not accessible as an app -


There is a WinSrv2k3 box hosting one of the many sites with IIS6, one of which is the VB / .NET2 site. I

"post-text" itemprop = "text">

Inside I have a virtual directory And it's a very simple C # /. NET3.5 is indicated in the site's directory. I was expecting the site to allow me to see pages as a normal site (there is only one ASMX in the virtual directory), but when I access the page from the browser, I get:

server '/ TestVbSite' application. Description: An error occurred during the process of configuring the required configuration files for the service of this configuration. Please review the specific error details below and modify your configuration file properly. Parser error message: One of the files or assemblies 'IMSControls' or its dependencies could not be loaded, the system failed to detect the specified file. (D: \ sites \ TestVbSite \ web.config line 211) Source error: Line 20 9: & lt; / HttpHandlers & gt; Line 210: & lt; HttpModules & gt; Line 211: & lt; Add name = "UrlRewritingModule" type = "IMS controls .httpModules.UrlRewritingModule, IMSControls" /> Line 212: & lt; / HttpModules & gt; Line 213: & lt; /system.web> The source file: D: \ sites \ TestVbSite \ web.config line: 211

The issue I see is that the exception handling web The config appears to be the original web site. Config does not have web.config in the virtual directory, but I do not understand why.

When accessing regular pages within the website (not under the virtual directory), they normally present and show that IMSControls are unable to load from the DLL virtual directory, but again, me It does not understand why this process is involved.

OK, okay, after some false start, heavy Google has the right thing to look at me. Given: web.config inheritance.

Basically, the virtual directory is to its web site's web site. Config (and hence its a problem) Web site of the parent site. In the config, its & lt; System.web & gt; element needs to be wrapped in a new tag (for me):

  & lt; Location Path = "." InheritInChildApplications = "false" & gt; & Lt; System.web & gt; ... & lt; /system.web> & Lt; / Location & gt;  

Useful links:


Comments