检测到DisconnectedContext:可以为项目设置异常设置吗?

时间:2014-12-11 13:41:59

标签: vb.net visual-studio-2010

当我运行我的一个vb项目时,我收到以下警告信息。

DisconnectedContext was detected
Message: Context 0x21b448' is disconnected.  Releasing the interfaces from the current context (context 0x21b2d8).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the applicationis completely done with the RuntimeCallableWrappers that represent COM components that liveinside them.

快速谷歌搜索给了我一些结果,就像它可以通过禁用异常“disconnectedContext”来解决。所以我在menu-> debug->异常中,在manage debug assistants下取消选择了disconnectedContext,它也解决了这个问题。

但是这个设置不是项目明智或视觉工作室明智的。我发现这个设置保存在.suo文件中。现在我希望这个设置可供所有使用该项目的用户使用。因此,如何设置项目明智,以便使用该项目的所有用户都能够禁用disconnectedContext设置

0 个答案:

没有答案