我正在运行webapi并收到以下错误,
{
"Message": "An error has occurred.",
"ExceptionMessage": "Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.",
"ExceptionType": "System.IO.FileNotFoundException",
"StackTrace": null
}
我在本地运行MVC4,VS.NET 2012没有问题,在我的web.config中,我也重定向了
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
我有其他网络API,但它运行正常,这是唯一一个给我带来问题的方法,也没有什么特别的方法。任何想法或类似的经历?