在本地运行Asp.NetMVC应用程序时,一切正常,但在服务器上部署应用程序时,出现此错误。Couldnotloadfileorassembly'WebGrease,Version=1.5.1.25624,Culture=neutral,PublicKeyToken=31bf3856ad364e35'oroneofitsdependencies.Thelocatedassembly'smanifestdefinitiondoesnotmatchtheassemblyreference.(ExceptionfromHRESULT:0x80131040)我最近刚刚通过使用WebGrease
这个问题有很多解决方案,请阅读下面的所有答案,它们也可能会帮助您解决问题。如果您找到解决此问题的新方法,请在您的答案中记录我正在尝试将System.Web.Optimization添加到我的ASP.NETWeb窗体解决方案中。我通过NuGet包添加了MicrosoftASP.NETWeb优化框架。它在引用中添加了Microsoft.Web.Infrastracture和WebGrease(1.5.2)。但是,当我运行运行时出错Couldnotloadfileorassembly'WebGrease,Version=1.5.1.25624,Culture=neutral,PublicKe
这个问题有很多解决方案,请阅读下面的所有答案,它们也可能会帮助您解决问题。如果您找到解决此问题的新方法,请在您的答案中记录我正在尝试将System.Web.Optimization添加到我的ASP.NETWeb窗体解决方案中。我通过NuGet包添加了MicrosoftASP.NETWeb优化框架。它在引用中添加了Microsoft.Web.Infrastracture和WebGrease(1.5.2)。但是,当我运行运行时出错Couldnotloadfileorassembly'WebGrease,Version=1.5.1.25624,Culture=neutral,PublicKe
当我运行我的MVC4Web应用程序时,出现以下错误:Couldnotloadfileorassembly'WebGrease'oroneofitsdependencies.Thelocatedassembly'smanifestdefinitiondoesnotmatchtheassemblyreference.(ExceptionfromHRESULT:0x80131040)Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktrace
当我运行我的MVC4Web应用程序时,出现以下错误:Couldnotloadfileorassembly'WebGrease'oroneofitsdependencies.Thelocatedassembly'smanifestdefinitiondoesnotmatchtheassemblyreference.(ExceptionfromHRESULT:0x80131040)Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktrace