在Win XP Home Edition上运行WPF C#应用程序

时间:2015-09-02 14:31:53

标签: c# .net wpf windows

我在WPF C#中有一个应用程序,兼容在带有.NET 4.0的Win XP中运行。我解决了在安装时运行安装.NET 4.0和更新.NET 4.0的问题,在Win XP Professional中一切都运行良好,但该软件在Win XP Home Edition上不起作用。显然有相同的包(SP3),任何建议我如何搜索解决方案?该程序没有记录任何内容,我唯一的提示是系统中存在错误事件。

记录消息

Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID:. 1026
Date: 02/09/2015
Time: 09:30:17
User: N / A
Computer: GB1-C0139
Description:
Application: TestSat.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException
Stack:
   at TestSat.MainWindow.butConSerial_Click (System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler (System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl (System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.RaiseEventImpl (System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
   at System.Windows.UIElement.RaiseEvent (System.Windows.RoutedEventArgs)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick ()
   at System.Windows.Controls.Button.OnClick ()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk (System.Object, System.Windows.Input.MouseButtonEventArgs)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler (System.Delegate, System.Object)
   at System.Windows.RoutedEventArgs.InvokeHandler (System.Delegate, System.Object)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler (System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl (System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.ReRaiseEventAs (System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
   at System.Windows.UIElement.OnMouseUpThunk (System.Object, System.Windows.Input.MouseButtonEventArgs)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler (System.Delegate, System.Object)
   at System.Windows.RoutedEventArgs.InvokeHandler (System.Delegate, System.Object)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler (System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl (System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.RaiseEventImpl (System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
   at System.Windows.UIElement.RaiseTrustedEvent (System.Windows.RoutedEventArgs)
   at System.Windows.UIElement.RaiseEvent (System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.Input.InputManager.ProcessStagingArea ()
   at System.Windows.Input.InputManager.ProcessInput (System.Windows.Input.InputEventArgs)
   at System.Windows.Input.InputProviderSite.ReportInput (System.Windows.Input.InputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput (IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage (IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
   at System.Windows.Interop.HwndSource.InputFilterMessage (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation (System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen (System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.InvokeImpl (System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc (IntPtr, Int32, IntPtr, IntPtr)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage (System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl (System.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.PushFrame (System.Windows.Threading.DispatcherFrame)
   at System.Windows.Application.RunDispatcher (System.Object)
   at System.Windows.Application.RunInternal (System.Windows.Window)
   at System.Windows.Application.Run (System.Windows.Window)
   at TestSat.App.Main ()


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

0 个答案:

没有答案