Catel示例与System.Windows.Markup.XamlParseException崩溃

时间:2014-09-22 23:24:12

标签: wpf catel

我无法运行WPF示例,并且应用程序错误日志显示System.Windows.Markup.XamlParseException。

我做了一个干净的重建但仍然得到了错误。 我假设这是基本的,因为它发生在所有的WPF示例中。 有什么想法吗?

干杯 杰夫

Application: Catel.Examples.WPF.MasterDetail.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.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
   at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
   at System.Windows.Application.LoadComponent(System.Object, System.Uri)
   at Catel.Examples.WPF.MasterDetail.App.InitializeComponent()
   at Catel.Examples.WPF.MasterDetail.App.Main()

似乎与我安装的最新版本和之前版本之间存在一些不匹配。不知道是什么。

退出Visual Studio 2013,加载了早期版本(3.9)的示例,并被要求更新我所做的NuGet引用。举几个例子。退出VS。

重新运行NuGet脚本,告诉我一切都是最新的。 重新打开VS中的最新示例并运行Catel.Examples.WPF.MasterDetail,它最终会加载,但只有在我暂停调试器然后“继续”

如果我从构建中运行早期或最新的示例,它会崩溃。

最奇特的。

我还发现日志中有两个错误。一个是上面提到的.Net运行时错误。 第二个是应用程序错误

Faulting application name: Catel.Examples.WPF.MasterDetail.exe, version: 1.0.0.0, time stamp: 0x542235b4
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x5315a05a
Exception code: 0xe0434352
Fault offset: 0x000000000000940d
Faulting process id: 0x1fec
Faulting application start time: 0x01cfd7a4db30449c
Faulting application path: H:\Frameworks\Catel\catelexamples-e5397fd24414\catelexamples_e5397fd24414\src\Catel.Examples.WPF.MasterDetail\obj\Debug\Catel.Examples.WPF.MasterDetail.exe
Faulting module path: G:\Windows\system32\KERNELBASE.dll
Report Id: 190e501e-4398-11e4-a86f-005056c00008

1 个答案:

答案 0 :(得分:0)

我刚试过这个,它可以在我的机器上运行。我已将所有NuGet软件包更新到最新版本并推送它,也许您可​​以重试。

WPF示例是.NET 4.5,请确保已安装(但可能已经是这种情况,否则您无法首先运行示例)。

相关问题