类型或命名空间ActionExecutingContext或ActionFilterAttribute

Tan*_*ova 3 asp.net-mvc

你好突然我的mvc应用程序开始给出例外:

rror    36  The type or namespace name 'ActionExecutingContext' could not be found (are you missing a using directive or an assembly reference?)    C:\Users\TMM\Desktop\04.09\BEAWEB_WITH_LANG - Copy\MvcBeaWeb\MvcBeaWeb\Filters\InitializeSimpleMembershipAttribute.cs   18  48  MvcBeaWeb
Error   22  The type or namespace name 'ActionFilterAttribute' could not be found (are you missing a using directive or an assembly reference?) C:\Users\TMM\Desktop\04.09\BEAWEB_WITH_LANG - Copy\MvcBeaWeb\MvcBeaWeb\Filters\NoCacheAttribute.cs  9   36  MvcBeaWeb
Error   30  The type or namespace name 'ActionFilterAttribute' could not be found (are you missing a using directive or an assembly reference?) C:\Users\TMM\Desktop\04.09\BEAWEB_WITH_LANG - Copy\MvcBeaWeb\MvcBeaWeb\Filters\InitializeSimpleMembershipAttribute.cs   12  63  MvcBeaWeb
Error   39  The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?)  C:\Users\TMM\Desktop\04.09\BEAWEB_WITH_LANG - Copy\MvcBeaWeb\MvcBeaWeb\Controllers\AccountsController.cs    24  16  MvcBeaWeb
Run Code Online (Sandbox Code Playgroud)

我甚至重新安装了visual studio 2012!

最好的祝福,

use*_*723 9

Mika的回答对我有用.那个窗户更新到底是怎么回事??!"你可以做的只是你的mvc web应用程序的参考文件夹 - 删除对System.Web.Mvc的引用,然后再次 - 添加对System.Web.Mvc的引用.这解决了我的问题!是的问题是因为更新"