C# 由于WPFToolKit中的日期选择器而导致XamlParseException

C# 由于WPFToolKit中的日期选择器而导致XamlParseException,c#,wpf,visual-studio-2008,wpftoolkit,xamlparseexception,C#,Wpf,Visual Studio 2008,Wpftoolkit,Xamlparseexception,错误:未处理的异常:System.Windows.Markup.XamlParseException:'/WPFToolkit;无法将component/DataGrid/Themes/Luna.NormalColor.xaml值分配给对象“System.Windows.ResourceDictionary”的属性“Source” Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembl

错误:未处理的异常:System.Windows.Markup.XamlParseException:'/WPFToolkit;无法将component/DataGrid/Themes/Luna.NormalColor.xaml值分配给对象“System.Windows.ResourceDictionary”的属性“Source”

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'.
我一直得到以下例外。从发布文件夹运行应用程序exe时出现异常。通常在VisualStudio中调试应用程序时,我根本不会遇到异常。我已经计算出异常是因为我正在使用的DatePicker控件——就好像我删除了该控件(构建并再次运行release exe)一样,异常会消失

我究竟怎样才能知道这里出了什么问题


datepicker看起来好多了,但是为了解决这个问题,我可能倾向于切换文本框,当按下submit按钮时,我会验证这个文本框!这个问题是由于测试机使用的是.Net Framework 3.5而不是3.5 SP1。升级到3.5 SP1修复了该问题。

我认为可能是.Net framework版本问题-我没有提到我在一台机器上通过VS进行调试,然后将发布版本移动到另一台机器进行测试-这就是问题所在。