(JIT)调试 错误 求解决方法

pop82 2004-07-27 02:37:50
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参阅此消息的结尾。

************** 异常文本 **************
System.Runtime.InteropServices.COMException (0x8004E004): 没有 MTS 对象上下文
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at System.EnterpriseServices.Thunk.ContextThunk.SetAbort()
at System.EnterpriseServices.ContextUtil.SetAbort()
at ChengDuTest.Form1.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



************** JIT 调试 **************
计算机的配置文件(machine.config)的
system.windows.forms 节中必须设置 jitDebugging 值。
编译应用程序时还必须启用\r\n调试。\r\n\r\n例如: \r\n\r\n<configuration>\r\n <system.windows.forms jitDebugging="true" />\r\n</configuration>\r\n\r\n启用 JIT 调试后,任何未处理的异常\r\n都将被发送到此计算机上注册的 JIT 调试器,\r\n而不是由此对话框处理。\r\n



如何解决啊!!!

程序中加入事物就出错


...全文
1811 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
phoenixsharp 2004-07-27
  • 打赏
  • 举报
回复
你还没有为Windows 窗体启用实时调试
将 machine.config 或 application.exe.config 文件(system.windows.forms 节)中的 jitDebugging 的值设置为 true。例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>


李洪喜 2004-07-27
  • 打赏
  • 举报
回复
你设置一下断点,跟踪一下错误,看一看是程序的那一行出错了.
看你的提示信息,不好确定错误的.

gkwww 2004-07-27
  • 打赏
  • 举报
回复

安装.net时有没有出错。

要么重装.net FrameWork试试。

110,567

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧