2010-06-07 87 views
2

我試圖遷移我的Outlook 2007加載到Outlook 2010和Visual Studio 2010中我所做的是在這些文件中所描述的一切:FatalExecutionEngineError在Outlook外接遷移從Outlook 2007年至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. 

回答

0

我終於處理了這個問題。可能不是最好的方式來做到這一點,但它的工作原理,我可以從Visual Studio調試我的應用程序就好了。

在Visual Studio中轉到Debug/Exceptions...。然後找到並取消Thrown複選框爲這些FatalExecutionEngineError設置(在Managed Debugging Assistants分支),就是這樣。