代码之家  ›  专栏  ›  技术社区  ›  RaYell

Outlook加载项中的FatalExecutionEngineerRor已从Outlook 2007迁移到2010

  •  2
  • RaYell  · 技术社区  · 15 年前

    我正在尝试将我的Outlook 2007外接程序迁移到Outlook 2010和Visual Studio 2010。我已经完成了这些文档中描述的所有工作:

    Required Changes to Run Office Projects that You Migrate to the .NET Framework 4

    Updating Form Regions in Outlook Projects that You Migrate to the .NET Framework 4

    Updating Ribbon Customizations in Office Projects that You Migrate to the .NET Framework 4

    所有的东西都在.NET 4.0中生成,没有错误。但是当我将插件加载到Outlook(使用从vs运行)时,它会显示第一个屏幕(我的加载项在第一次运行时会显示一种启动屏幕),并在它给我之后立即显示 FatalExecutionEngineError . 因此,该外接程序在Outlook中加载良好,但在启动后不久就会崩溃。

    错误消息没有提供太多细节,我不知道应该从哪里开始调试。似乎此错误不是由特定代码行引起的,因为Visual Studio无法显示其源代码。

    完整错误消息:

    FatalExecutionEngineError was detected
    The runtime has encountered a fatal error. The address of the error was at 
    0xede42270, on thread 0xc48. The error code is 0xc0000005. This error may be a 
    bug in the CLR or in the unsafe or non-verifiable portions of user code. 
    Common sources of this bug include user marshaling errors for COM-interop or 
    PInvoke, which may corrupt the stack.
    
    1 回复  |  直到 15 年前
        1
  •  0
  •   RaYell    15 年前

    我终于解决了这个问题。可能不是最好的方法,但它可以工作,我可以从Visual Studio调试我的应用程序。

    在Visual Studio中,转到 Debug/Exceptions... . 然后查找并取消标记 Thrown 这些的复选框 FatalExecutionEngineError 设置(in) Managed Debugging Assistants 分支)就是这样。