今天收到一個江湖告急
Server Error in '/hqjjc_cs' 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: File or assembly name URLRewriter, or one of its dependencies, was not found.
Source Error:
Line 47:
Line 48: <httpModules>
Line 49: <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
Line 50: </httpModules>
Line 51:
Source File: E:\www\web.config Line: 49
Assembly Load Trace: The following information can be helpful to determine why the assembly 'URLRewriter' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = URLRewriter
(Partial)
LOG: Appbase = file:///E:/hqjjc_cs
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: URLRewriter
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/hqjjc_cs/da6bbee5/37b14d61/URLRewriter.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/hqjjc_cs/da6bbee5/37b14d61/URLRewriter/URLRewriter.DLL.
LOG: Attempting download of new URL file:///E:/hqjjc_cs/bin/URLRewriter.DLL.
LOG: Attempting download of new URL file:///E:/hqjjc_cs/bin/URLRewriter/URLRewriter.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/hqjjc_cs/da6bbee5/37b14d61/URLRewriter.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/hqjjc_cs/da6bbee5/37b14d61/URLRewriter/URLRewriter.EXE.
LOG: Attempting download of new URL file:///E:/hqjjc_cs/bin/URLRewriter.EXE.
LOG: Attempting download of new URL file:///E:/hqjjc_cs/bin/URLRewriter/URLRewriter.EXE.
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
分析了一下,很明顯可以猜出IIS的預設網站是放在E:\www下面,用了URLRewriter
網管在此網站下建立了一個虛擬目錄,放在E:/hqjjc_cs ,結果導致URL被重寫,網頁不能訪問。
讓網管建立了一個網站,就不受影響了