IIS网页无法加载

时间:2016-01-03 20:02:34

标签: .net asp.net-mvc iis

我在尝试在我的猫鼬安装中加载网页时遇到问题。导航到URL时,我收到以下消息。我希望有人能指出我正确的方向。

Server Error in '/WSWebClient' Application.

配置错误 说明:

处理为此请求提供服务所需的配置文件时发生错误。请查看下面的具体错误详细信息并相应地修改配置文件。

Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

来源错误:

Line 13:         <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 14:         <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 15:    <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 16:         <!-- Nevron (Diagram) Assemblies -->
Line 17:         <add assembly="Nevron.Diagram.WebForm, Version=9.3.24.12, Culture=neutral, PublicKeyToken=95BCC3D41B0512E9"/> 

Source File: C:\inetpub\wwwroot\WSWebClient\web.config    Line: 15 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.


=== Pre-bind state information ===
LOG: User = IIS APPPOOL\ASP.NET v4.0
LOG: DisplayName = System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/inetpub/wwwroot/WSWebClient/
LOG: Initial PrivatePath = C:\inetpub\wwwroot\WSWebClient\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\inetpub\wwwroot\WSWebClient\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/wswebclient/c0740cfa/5af5eef5/System.Web.Mvc.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/wswebclient/c0740cfa/5af5eef5/System.Web.Mvc/System.Web.Mvc.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/WSWebClient/bin/System.Web.Mvc.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/WSWebClient/bin/System.Web.Mvc/System.Web.Mvc.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/wswebclient/c0740cfa/5af5eef5/System.Web.Mvc.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/wswebclient/c0740cfa/5af5eef5/System.Web.Mvc/System.Web.Mvc.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/WSWebClient/bin/System.Web.Mvc.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/WSWebClient/bin/System.Web.Mvc/System.Web.Mvc.EXE.



--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 `

1 个答案:

答案 0 :(得分:0)

错误状态:程序集加载跟踪:以下信息有助于确定程序集'System.Web.Mvc,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'无法加载的原因。通常,您将其部署到您网站的垃圾箱。在这种情况下,它没有找到它,所以它去尝试在其他路径中查找它,如日志中所示。

检查您的网站bin文件夹中是否有System.Web.Mvc.dll。如果您有,并且仍然收到错误,请检查它是否是正确的版本。