桌面程序在Win 7中运行,但在Win 8中不运行

时间:2013-10-13 16:44:17

标签: c# .net wpf windows

我和https://stackoverflow.com/a/18645026/2876276中的Elec0有同样的问题。我的程序是在Win 7机器上的VS 2012 for Desktop中开发的,使用.Net 4.5和WPF将无法在Win 8机器上运行。我尝试了AppDomain.CurrentDomain.UnhandledException解决方案(在MainWindow.xaml.cs中),但程序仍然在Win 8机器上崩溃而没有报告错误。

Elec0报告问题是他的Win 8机器上没有“VisualBasic东西”。这些东西是什么,或者是C#中的等价物?

任何其他建议将不胜感激。

DebugDiag报告:

In MyProgram__PID__1072__Date__10_13_2013__Time_06_21_18PM__19__Second_Chance_Exception_C000041D.dmp the assembly instruction at 0x00000000 which does not correspond to any known native module in the process has caused a CLR Exception on thread 0 with the following error information:

    Type:   NOT_FOUND 
    Message:   NOT_FOUND 
...
.NET Call Stack



Function 
MS.Win32.UnsafeNativeMethods.ShowWindow(System.Runtime.InteropServices.HandleRef, Int32) 
MS.Win32.UnsafeNativeMethods.ShowWindow(System.Runtime.InteropServices.HandleRef, Int32) 
MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) 
MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) 


Full Call Stack



Function     Arg 1     Arg 2     Arg 3     Arg 4   Source 
KERNELBASE!RaiseException+68     00000041`aaf894b8     00000041`aaf893f8     00000041`ad3580a8     00000041`aaf8a800    
clr!RaiseTheExceptionInternalOnly+28b     00000000`00000000     000007fa`641092d8     00000000`00000000     00000000`00000001    
clr!IL_Rethrow+98     000007fa`6095e770     00000041`000000f1     00000041`aaffcc48     00000041`aaf8a100    
PresentationCore_ni+c9c794     00000041`aafffdf0     000007fa`6095e770     00000041`aaffcbb0     00000041`aafffdf0    
clr!ExceptionTracker::CallHandler+c5     00000041`aaffcbb0     000007fa`614ec770     00000041`aaf8c000     00000041`aaffcc48    
clr!ExceptionTracker::CallCatchHandler+7c     00000041`aaf8c000     00000041`aaf899f0     00000041`aaf8b230     00000000`00000002    
clr!ProcessCLRException+2e2     00000041`aaf8b500     00000041`aaf8c000     00000000`00000000     00000041`aaf899f0    

我还在Windows日志中有一个WER,其中包含已加载模块的详细信息。

0 个答案:

没有答案