2011-02-05 2 views
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 

어떤 도움

주시면 감사하겠습니다.

+0

Visual Studio의 개발 서버에서 응용 프로그램을 실행할 경우이 예외가 발생합니까? 참조하고있는 System.Web.Mvc 어셈블리의 파일 버전은 무엇입니까? –

+0

감사합니다. Darin - 예, 그냥 사용해 보았습니다. IIS가 아닌 개발 서버에서 작동합니다. 두 서버 모두에서 dll 버전은 3.0.20105.0입니다. 그러나 IIS에서는 GAC에서로드되며 dev 서버에서는 "NativeImages"에서로드됩니다. IIS : C : \ Windows \ Microsoft.Net \ assembly \ GAC_MSIL \ System.Web.Mvc \ v4.0_3.0.0.0__31bf3856ad364e35 \ System.Web.Mvc.dll Dev : C : \ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Web.Mvc \ d96f7e57b756969ce922e83fcf05936d \ System.Web.Mvc.ni.dll –

+0

이미 아이디어가 있으십니까? 나는 똑같은 문제를 겪고있다! –

답변

0

그건 가능한 IIS는 .cshtml 파일에 대한 적절한 처리기 매핑이 없습니다. 체크 아웃 this solution

관련 문제