我收到的操作可能会破坏测试机器上的运行时错误消息,但不会在本地或生产服务器上发生。我得到的错误是不具体的,没有给我任何线索。我已经在网上搜索了一个解决方案,但对于这个特定案例没有任何成功。任何建议将不胜感激。
该项目是一个简单的 MVC 4 应用程序,所有 dll 都部署到 bin 文件夹中。
Operation could destabilize the runtime.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[VerificationException: Operation could destabilize the runtime.]
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +17
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1177
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +305