2
我创建了一个库存,清空ASP.NET MVC3项目,将其部署到我的本地机器,当我在浏览器中将其拉出时,我看到下面的错误。这是一个没有我写的代码的项目(但),所以我认为它与我的环境有关。有一次,这台机器安装了旧版本的ASP.NET MVC,但之后它已被卸载。浏览项目引用,每个.dll都在v4.0.30319。ASP MVC3 - 操作可能会破坏运行时的稳定性
System.Security.VerificationException:操作可能会破坏运行时。
[VerificationException: Operation could destabilize the runtime.]
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +404
System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +125
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +640
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +312
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +704
System.Web.Mvc.Controller.ExecuteCore() +162
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +123
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +66
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +20
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +382
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +233
任何帮助,将不胜感激。
汤姆
如果您在Visual Studio的开发服务器中运行应用程序,是否会得到此异常?什么是您引用的System.Web.Mvc程序集的文件版本? – 2011-02-05 10:04:18