訪問我有IIS6舉辦一系列網站,其中之一是一個VB/.NET2網站WinSrv2k3框。在這裏我創建了一個虛擬目錄,並將其指向一個非常簡單的C#/。NET3.5站點的目錄。我期待的網站,讓我查看的頁面作爲一個正常的網站(只有一個虛擬目錄ASMX),但是從瀏覽器訪問該頁面時,我得到:IIS6虛擬目錄不是一個應用程序
Server Error in '/TestVbSite' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'IMSControls' or one of its dependencies. The system cannot find the file specified. (D:\sites\TestVbSite\web.config line 211)
Source Error:
Line 209: </httpHandlers>
Line 210: <httpModules>
Line 211: <add name="UrlRewritingModule" type="IMS.Controls.HttpModules.UrlRewritingModule, IMSControls" />
Line 212: </httpModules>
Line 213: </system.web>
Source File: D:\sites\TestVbSite\web.config Line: 211
我看到的問題在那裏,是拋出異常的web.config似乎是父網站的.config,而不是虛擬目錄中的web.config。但我不明白爲什麼。
當訪問網站內的常規頁面(不在虛擬目錄下)時,它們呈現並正常執行,表明IMSControls DLL無法從虛擬目錄加載,但我不明白爲什麼會這樣做甚至參與這個過程。