Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WPF-程序崩溃Eror System.Windows.Markup.XamlParse_C#_Wpf_Crash - Fatal编程技术网

C# WPF-程序崩溃Eror System.Windows.Markup.XamlParse

C# WPF-程序崩溃Eror System.Windows.Markup.XamlParse,c#,wpf,crash,C#,Wpf,Crash,在调试和构建VisualStudio时,我用C#开发了一个应用程序,没有显示任何错误并构建它。在我自己的电脑上,它工作正常,没有问题,但当我在另一台装有Windows7&8的电脑上试用时,它崩溃了 Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: app.exe Problem Signature 02: 1.0.0.0 Problem Signature 03: 57

在调试和构建VisualStudio时,我用C#开发了一个应用程序,没有显示任何错误并构建它。在我自己的电脑上,它工作正常,没有问题,但当我在另一台装有Windows7&8的电脑上试用时,它崩溃了

Problem signature:
  Problem Event Name:    CLR20r3
  Problem Signature 01:    app.exe
  Problem Signature 02:    1.0.0.0
  Problem Signature 03:    57247396
  Problem Signature 04:    mscorlib
  Problem Signature 05:    4.0.30319.18408
  Problem Signature 06:    52310b91
  Problem Signature 07:    10eb
  Problem Signature 08:    6f
  Problem Signature 09:    System.Windows.Markup.XamlParse
  OS Version:    6.1.7601.2.1.0.256.1
  Locale ID:    1065
  Additional Information 1:    0a9e
  Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:    0a9e
  Additional Information 4:    0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  <a href="http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409" target="_blank">http://go.microsoft.com/fwlink/?link...8&clcid=0x0409</a>

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt
问题签名:
问题事件名称:CLR20r3
问题签名01:app.exe
问题签名02:1.0.0.0
问题签名03:57247396
问题签名04:mscorlib
问题签名05:4.0.30319.18408
问题签名06:52310b91
问题签名07:10eb
问题签名08:6f
问题签名09:System.Windows.Markup.XamlParse
操作系统版本:6.1.7601.2.1.0.256.1
地区识别码:1065
附加信息1:0a9e
附加信息2:0a9e372d3b4ad19135b953a78882e789
附加信息3:0a9e
附加信息4:0a9e372d3b4ad19135b953a78882e789
在线阅读我们的隐私声明:
如果在线隐私声明不可用,请离线阅读我们的隐私声明:
C:\Windows\system32\en US\erofflps.txt
==================================

Application: app.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Windows.Markup.XamlParseException
Stack:
   at System.Windows.Markup.WpfXamlLoader.Load(System.Xa  ml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(Syste  m.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
   at System.Windows.Markup.XamlReader.LoadBaml(System.I  O.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
   at System.Windows.Application.LoadBamlStreamWithSyncI  nfo(System.IO.Stream, System.Windows.Markup.ParserContext)
   at System.Windows.Application.LoadComponent(System.Ur  i, Boolean)
   at System.Windows.Application.DoStartup()
   at System.Windows.Application.<.ctor>b__1(System.Obje  ct)
   at System.Windows.Threading.ExceptionWrapper.Internal  RealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCat  chWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.Invok  eImpl()
   at System.Windows.Threading.DispatcherOperation.Invok  eInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(Syst  em.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threa  ding.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threa  ding.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.DispatcherOperation.Invok  e()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(In  tPtr, 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.Internal  RealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCat  chWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeIm  pl(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(Syste  m.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(  System.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.PushFrame(Syst  em.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(System.Ob  ject)
   at System.Windows.Application.RunInternal(System.Wind  ows.Window)
   at System.Windows.Application.Run(System.Windows.Wind  ow)
   at System.Windows.Application.Run()
   at BendingTest.App.Main()
应用程序:app.exe
框架版本:v4.0.30319
描述:由于未处理的异常,进程已终止。
异常信息:System.Windows.Markup.XamlParseException
堆栈:
在System.Windows.Markup.wpfxamloader.Load(System.Xaml.XamlReader、System.Xaml.IXamlObjectWriterFactory、Boolean、System.Object、System.Xaml.XamlObjectWriterSettings、System.Uri)
位于System.Windows.Markup.wpfxamloader.LoadBaml(Syste m.Xaml.XamlReader,布尔值,System.Object,System.Xaml.Permissions.XamlAccessLevel,System.Uri)
位于System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream、System.Windows.Markup.ParserContext、System.Object、Boolean)
位于System.Windows.Application.LoadBamlStreamWithSyncI Info(System.IO.Stream、System.Windows.Markup.ParserContext)
位于System.Windows.Application.LoadComponent(System.Ur i,布尔值)
在System.Windows.Application.DoStartup()中
在System.Windows.Application.b___1(System.Obje-ct)上
位于System.Windows.Threading.ExceptionWrapper.Internal RealCall(System.Delegate、System.Object、Int32)
位于MS.Internal.Threading.ExceptionFilterHelper.TryCat chWhen(System.Object、System.Delegate、System.Object、Int32、System.Delegate)
在System.Windows.Threading.DispatcherOperation.Invoke eImpl()处
位于System.Windows.Threading.DispatcherOperation.Invoke eInSecurityContext(System.Object)
位于System.Threading.ExecutionContext.RunInternal(Syst em.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔值)
在System.Threading.ExecutionContext.Run(System.Threa.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔值)
在System.Threading.ExecutionContext.Run(System.Threa.ExecutionContext,System.Threading.ContextCallback,System.Object)处
在System.Windows.Threading.DispatcherOperation.Invoke()处
在System.Windows.Threading.Dispatcher.ProcessQueue()中
位于System.Windows.Threading.Dispatcher.WndProcHook(在tPtr、Int32、IntPtr、IntPtr、Boolean ByRef中)
位于MS.Win32.hwndwapper.WndProc(IntPtr、Int32、IntPtr、IntPtr、Boolean ByRef)
位于MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
位于System.Windows.Threading.ExceptionWrapper.Internal RealCall(System.Delegate、System.Object、Int32)
位于MS.Internal.Threading.ExceptionFilterHelper.TryCat chWhen(System.Object、System.Delegate、System.Object、Int32、System.Delegate)
位于System.Windows.Threading.Dispatcher.LegacyInvokeIm pl(System.Windows.Threading.DispatcherPriority,System.TimeSpan,System.Delegate,System.Object,Int32)
在MS.Win32.HwndSubclass.SubclassWndProc(IntPtr,Int32,IntPtr,IntPtr)
位于MS.Win32.unsafentivemethods.DispatchMessage(Syste m.Windows.Interop.MSG ByRef)
位于System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
在System.Windows.Threading.Dispatcher.PushFrame(Syst em.Windows.Threading.DispatcherFrame)上
在System.Windows.Threading.Dispatcher.Run()中
在System.Windows.Application.RunDispatcher(System.Object)上
位于System.Windows.Application.RunInternal(System.Wind ows.Window)
在System.Windows.Application.Run(System.Windows.Wind)
在System.Windows.Application.Run()处
在BendingTest.App.Main()中

这表示您的XAML代码有问题。请看这里,我建议您添加处理程序。它可以帮助您获得有关异常的更多详细信息。