无法加载文件或程序'System.Web.Mvc“ [英] Could not load file or assembly 'System.Web.Mvc'
问题描述
我的新的ASP.NET MVC Web应用程序的工作原理我的开发工作站上,但没有我的Web服务器上运行...
My new ASP.NET MVC Web Application works on my development workstation, but does not run on my web server...
说明:此请求提供服务所需的配置文件的处理过程中发生错误。请检查下面的特定错误详细信息并适当地修改配置文件。
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.
分析器错误信息:无法加载文件或程序'System.Web.Mvc,版本= 1.0.0.0,文化=中性公钥= 31bf3856ad364e35或它的一个依赖。该系统找不到指定的文件。
Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
源错误:
Line 44: <add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 45: <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 46: <add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 47: <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 48: <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
源文件: C:\\的Inetpub \\ www.example.org \\ web.config中订单: 46
Source File: C:\inetpub\www.example.org\web.config Line: 46
程序集加载跟踪:下列信息有助于确定程序集System.Web.Mvc,版本= 1.0.0.0,文化=中性公钥= 31bf3856ad364e35'无法加载。
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
版本信息: Microsoft .NET Framework版本:2.0.50727.3053; ASP.NET版本:2.0.50727.3053
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
我是否需要安装的 AspNetMVCBeta-的的setup.msi服务器上的?或者是有服务器不同的安装?
Do I need to install the AspNetMVCBeta-setup.msi on the server? Or is there a different installer for servers?
推荐答案
我刚写了一篇博客文章解决该问题。你可以在服务器上安装ASP.NET MVC或者你可以在这里按照步骤。
I just wrote a blog post addressing this. You could install ASP.NET MVC on your server OR you can follow the steps here.
编辑:(由jcolebrand)我通过这个环节去了,然后有同样的问题,因为维克多 <一个href=\"http://stackoverflow.com/questions/267006/could-not-load-file-or-assembly-system-web-mvc/5481834#5481834\">below,所以我建议你也添加这些:
(by jcolebrand) I went through this link, then had the same issue as Victor below, so I suggest you also add these:
* Microsoft.Web.Infrastructure
* System.Web.Razor
* System.Web.WebPages.Deployment
* System.Web.WebPages.Razor
这篇关于无法加载文件或程序'System.Web.Mvc“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!