不是什么技术都可以随便乱用的

今天收到一个江湖告急

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被重写,网页不能访问。
让网管新建了一个网站,就不受影响了

原文地址:https://www.cnblogs.com/tongzhenhua/p/180397.html