【问题标题】:Operation could destabilize the runtime. MVC App操作可能会破坏运行时的稳定性。 MVC 应用程序
【发布时间】:2013-04-30 18:09:02
【问题描述】:

我收到的操作可能会破坏测试机器上的运行时错误消息,但不会在本地或生产服务器上发生。我得到的错误是不确定的,没有给我任何线索。我已经在网上搜索了一个解决方案,但对于这个特定的案例没有任何成功。任何建议将不胜感激。

该项目是一个简单的 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

【问题讨论】:

  • 如果您提供一个可以重现问题的简洁代码示例,这将非常有帮助。
  • 问题是没有特定的代码行或 url 路由导致这种情况.. 发生在任何页面/url 加载。这就是为什么它如此令人费解和难以解决的原因

标签: asp.net-mvc asp.net-mvc-4


【解决方案1】:

我也有同样的问题。但仅在我们客户的服务器上。 在我们自己的网络服务器(具有相同的软件组件)上,它的工作方式类似于 魅力。

非常令人沮丧的问题,因为似乎没有解决方案。

【讨论】:

    猜你喜欢
    • 2010-09-27
    • 1970-01-01
    • 2010-12-25
    • 1970-01-01
    • 2012-09-15
    • 1970-01-01
    • 1970-01-01
    • 2014-12-01
    • 1970-01-01
    相关资源
    最近更新 更多