开发者

ASP MVC3 - Operation could destabilize the runtime

开发者 https://www.devze.com 2023-02-08 11:39 出处:网络
I created a stock, empty ASP.NET MVC3 project, deployed it to my local machine, and when I pull it up in the browser I see the error below.This is a project with no code written by me (yet) so I assum

I created a stock, empty ASP.NET MVC3 project, deployed it to my local machine, and when I pull it up in the browser I see the error below. This is a project with no code written by me (yet) so I assume it has to do with my environment. 开发者_StackOverflowAt one point this machine had an old version of ASP.NET MVC installed, but it has since been uninstalled. Skimming through the project references, every .dll is at v4.0.30319.

System.Security.VerificationException: Operation could destabilize the runtime.

[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

Any help would be appreciated.

Tom


It's possible IIS does not have the proper Handler Mappings for .cshtml files. Check out this solution

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号