visual studio编译的应用程序无法在xp上运行

时间:2012-11-28 08:06:58

标签: vb.net visual-studio-2008 runtime

我有两个桌面应用程序(比如'x'和'y')。两者都用visual studio 2008 vb.net语言编写。两者都有相同的引用,相同的所有设置(逐步检查),都在同一台机器上编译(w7),但只有一个('x')在所有其他机器上工作(和w7和xp)另一台(' y')仅在w7上工作。我错过了什么?我在xp上遇到错误('y'),例如我们An unhandled exception ('System.InvalidOperationException') occurred in OVA.exe [4020]. Just-In-Time debugging this exception failed with the following error: No installed debugger has Just-In-Time debugging enabled. In Visual Studio, Just-In-Time debugging can be enabled from Tools/Options/Debugging/Just-In-Time. 正如我所说的设置是相同的(名称和源位置除了几个文件夹不同)。启用即时调试。我甚至评论了应用程序'y'中的所有代码,只留下了没有事件处理的表单。

1 个答案:

答案 0 :(得分:0)

根据http://msdn.microsoft.com/en-us/library/system.invalidoperationexception.aspx

"The exception that is thrown when a method call is invalid for the object's current state."  

看到你注释掉只留下表单的事件处理程序。它可能是其中一个控件的初始化。或者你在New()函数中做了什么特别的事情?如果是这样,你可以在这里粘贴吗?