错误:System.Windows.ResourceDictionary:'/WPFToolkit;component/DataGrid/Themes/Luna.NormalColor.xaml‘值不能分配给对象’UnhandledException‘的属性’System.Windows.Markup.XamlParseException‘。
Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Error at object 'System.Windows.ComponentResourceKey' in markup file 'WPFToolkit;component/DataGrid/Themes/Luna.NormalColor.xaml'. Error at object 'System.Windows.ResourceDictionary'. --->
System.Windows.Markup.XamlParseException: Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Error at object 'System.Windows.ComponentResourceKey' in markup file 'WPFToolkit;component/DataGrid/Themes/Luna.NormalColor.xaml'. --->
System.TypeLoadException: Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.我一直收到以下异常。当我从Release文件夹运行应用程序exe时,我得到了异常。在Visual Studio中正常调试应用程序时,我根本不会得到异常。我发现异常是由于我正在使用的一个DatePicker控件引起的--就像我移除该控件(构建并再次运行release exe )一样,异常就消失了。
我怎么才能找出这里出了什么问题呢?
datepicker看起来好多了,但为了解决这个问题,我可能倾向于切换到一个文本框,当按下submit按钮时,我会验证这个文本框!令人失望..。
发布于 2010-04-14 07:18:32
这个问题是由于测试机器使用的是.Net Framework3.5而不是3.5 SP1。升级到3.5 SP1解决了这个问题。
https://stackoverflow.com/questions/2626986
复制相似问题