我使用SQL Server和IIS的本地实例在Visual Studio中开发MVC项目。我现在已准备好将它推送到我们的测试网站,但我无法获得包裹。我已经升级了几乎所有这些,因此需要将它们转移到服务器上。
我尝试将软件包DLL复制到服务器上的bin
目录,与项目DLL的位置相同,但是我收到了以下错误(看起来它看起来像是在尝试查看在我的本地目录中,即使它在服务器上)。如何更正此错误?
Could not load file or assembly 'System.Web.Mvc, Version=5.2.0.0, /
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its /
dependencies. The located assembly's manifest definition does not /
match the assembly reference. (Exception from HRESULT: 0x80131040)
详见:
[FileLoadException: Could not load file or assembly 'System.Web.Mvc, /
Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one/
of its dependencies. The located assembly's manifest definition does not /
match the assembly reference. (Exception from HRESULT: 0x80131040)]
ProjectName.Admin.MvcApplication.Application_Start() in /
C:\Users\myUsername\Documents\ProjectName\Branches\Dev\Presentation\ProjectName.Admin\Global.asax.cs:117