无法调试基于 .NET 的 PowerPoint 加载项 [英] Cannot debug .NET-based PowerPoint add-in

查看:31
本文介绍了无法调试基于 .NET 的 PowerPoint 加载项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 .NET Framework 4.0/C#/VSTO 开发的 PowerPoint 插件.当我手动启动 PowerPoint 时,加载项加载良好,但是当我在 Visual Studio 中按 F5 时,PowerPoint 启动屏幕会显示一小段时间,然后 PowerPoint 关闭.Visual Studio 输出窗口仅显示以下几行:

I have a PowerPoint add-in developed with .NET Framework 4.0/C#/VSTO. The add-in loads fine when I manually launch PowerPoint, but when I press F5 in Visual Studio, the PowerPoint splash screen shows for a short period and then PowerPoint closes. The Visual Studio output window shows only the following lines:

'powerpnt.exe'(CLR v4.0.30319:DefaultDomain):加载'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'.跳过加载符号.模块已优化,调试器选项仅我的代码"已启用.程序[6016] powerpnt.exe:程序跟踪"已退出,代码为 0 (0x0).程序[6016] powerpnt.exe"已退出,代码为 -2146233082 (0x80131506).

'powerpnt.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. The program '[6016] powerpnt.exe: Program Trace' has exited with code 0 (0x0). The program '[6016] powerpnt.exe' has exited with code -2146233082 (0x80131506).

我尝试了以下方法:

  • 硬盘扫描
  • 重新安装了 VSTO

您有其他建议可以解决此问题吗?

Do you have other suggestions to fix this issue?

推荐答案

我已经卸载了 EMET 4.1,在系统重新启动几次后,我已经能够再次调试.现在我不能肯定 EMET 是罪魁祸首,因为我之前已经能够在安装 EMET 的情况下进行调试.如果可能,我会重新安装 EMET.

I've uninstalled EMET 4.1 and, after a few reboots of the system, I've been able to debug again. Now I cannot say for sure that EMET was the culprit, since I've been able to debug before with EMET installed. I'll install EMET back when possible.

这篇关于无法调试基于 .NET 的 PowerPoint 加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆