【发布时间】:2012-06-28 14:28:03
【问题描述】:
我以前遇到过这个问题,但我需要做的就是清理并重建项目。现在这似乎不再起作用了。当我启动我的 Asp.Net MVC3 项目调试器时,该站点在我的浏览器中打开。我没有在浏览器中显示第一页,而是收到以下错误:
Parser Error Message: Could not load file or assembly 'System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 31: <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 32: <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 33: <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 34: </assemblies>
Line 35: </compilation>
我似乎无法弄清楚如何解决这个问题。有什么想法吗?
【问题讨论】:
-
清理,关闭工作室,再次打开项目。
-
System.Web.WebPages 在您的项目引用中吗?
-
是的!无法清洁和关闭
-
尝试删除现有的引用并再次引用它?
-
我试过了,没有任何区别:/
标签: c# asp.net-mvc-3