IntelliTrace:类型初始化期间未捕获的异常

IntelliTrace: Uncaught exception during type initialization

Visual Studio 2015 企业更新 3.
.Net 3.5 SP1, AnyCPU

今天我的项目经常出现这个错误:

Microsoft Visual Studio

Process:
D:\projects\vs-2015\sharp_sandbox\sharp_sandbox\bin\Debug\sharp_sandbox.vshost.exe
Automatically attaching to support this behavior was not completely successful.

Successfully attached these type(s) of code: Managed

Failed to attach to these type(s) of code:
IntelliTrace: Uncaught exception during type initialization.

我该如何解决这个问题?

尝试check/uncheck 启用本机代码调试 配置选项。您将在项目属性的 Debug 选项卡中的 Enable Debuggers 部分找到它。