gpt4 book ai didi

asp.net-mvc - 类型或命名空间 ActionExecutingContext 或 ActionFilterAttribute

转载 作者:行者123 更新时间:2023-12-02 15:23:20 27 4
gpt4 key购买 nike

你好,突然我的 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

我什至重新安装了 Visual Studio 2012!

最诚挚的问候,

最佳答案

米卡的回答对我有用。 Windows 更新到底是什么? “您可以做的就是在 mvc Web 应用程序的引用文件夹中 - 删除对 System.Web.Mvc 的引用,然后再次添加对 System.Web.Mvc 的引用。这解决了我的问题!是的,问题是因为更新”

关于asp.net-mvc - 类型或命名空间 ActionExecutingContext 或 ActionFilterAttribute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26378533/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com