Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/299.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应用程序功能区崩溃_C#_.net_Ribbon Control - Fatal编程技术网

C# WPF应用程序功能区崩溃

C# WPF应用程序功能区崩溃,c#,.net,ribbon-control,C#,.net,Ribbon Control,我在VisualStudio2008中创建了一个带有多个窗口的程序。其中一个窗口使用windows功能区控件。现在,该程序在我的计算机(windows XP)上运行良好,但当我想在另一台新安装了.net 3.5 SP1的计算机上运行它时,我可以启动该程序,但当我使用ribbon控件打开窗口时,程序崩溃。 这是我尝试捕获时得到的错误文件: System.Windows.Markup.XamlParseException:已引发异常 通过调用的目标。对象错误 “System.Windows.Data

我在VisualStudio2008中创建了一个带有多个窗口的程序。其中一个窗口使用windows功能区控件。现在,该程序在我的计算机(windows XP)上运行良好,但当我想在另一台新安装了.net 3.5 SP1的计算机上运行它时,我可以启动该程序,但当我使用ribbon控件打开窗口时,程序崩溃。 这是我尝试捕获时得到的错误文件:

System.Windows.Markup.XamlParseException:已引发异常 通过调用的目标。对象错误 “System.Windows.Data.Binding.”--> System.Reflection.TargetInvocationException:已引发异常 通过调用的目标。--> System.ComponentModel.Win32异常: HRESULT\u来自位于的\u WIN32(未找到错误) 标准.HRESULT.ThrowIfFailed(字符串消息)位于 Standard.NativeMethods.GetCurrentThemeName(字符串和themeFileName, 字符串和颜色、字符串和大小) Microsoft.Windows.Shell.SystemParameters 2.\u在 Microsoft.Windows.Shell.SystemParameters2..ctor()位于 Microsoft.Windows.Shell.SystemParameters 2.get_Current()---结束 内部异常堆栈跟踪---在 System.RuntimeMethodHandle.\u InvokeMethodFast(对象目标,对象[]) 参数、SignatureStruct&sig、MethodAttributes、MethodAttributes、, RuntimeTypeHandle类型所有者)位于 System.RuntimeMethodHandle.InvokeMethodFast(对象目标,对象[]) 参数、签名sig、MethodAttributes、MethodAttributes、, RuntimeTypeHandle类型所有者)位于 System.Reflection.RuntimeMethodInfo.Invoke(对象obj,BindingFlags invokeAttr,绑定器绑定器,对象[]参数,CultureInfo区域性, 布尔skipVisibilityChecks)在 System.Reflection.RuntimeMethodInfo.Invoke(对象obj,BindingFlags invokeAttr,Binder Binder,对象[]参数,CultureInfo区域性)
在System.Reflection.RuntimePropertyInfo.GetValue(对象obj, BindingFlags invokeAttr、Binder Binder、对象[]索引、CultureInfo 区域性)位于System.Reflection.RuntimePropertyInfo.GetValue(对象 obj,对象[]索引)位于 System.Windows.Markup.StaticExtension.ProvideValue(IServiceProvider 服务提供商)在 System.Windows.Markup.BamlRecordReader.GetStaticExtensionValue(Int16 memberId)在 System.Windows.Markup.BamlRecordReader.GetExtensionValue(IOptimizedMarkupExtension 优化MarkupExtensionRecord,字符串propertyName)位于 System.Windows.Markup.TemplateBamlRecordReader.ReadPropertyWithExtensionRecord(BamlPropertyWithExtensionRecord bamlPropertyRecord)位于 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)---内部异常堆栈跟踪的结束----at System.Windows.Markup.XamlParseException.ThroweException(字符串 消息,异常innerException,Int32行号,Int32 linePosition、Uri baseUri、XamlObjectId CurrentXamlObjectId、, XamlObjectIds contextXamlObjectIds,类型objectType)位于 System.Windows.Markup.XamlParseException.ThroweException(ParserContext parserContext、Int32 lineNumber、Int32 linePosition、字符串消息、, 异常(内部异常)位于 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)在 System.Windows.Markup.TemplateBamlRecordReader.ReadNonContentRecord(BamlRecord bamlRecord)在 System.Windows.Markup.TemplateBamlRecordReader.ReadRecord(BamlRecord bamlRecord)在System.Windows.Markup.BamlRecordReader.Read(布尔值)中 单记录)在 System.Windows.Markup.TemplateTreeBuilderBamlTranslator.ParseFragment() 位于System.Windows.Markup.TreeBuilder.Parse()的 System.Windows.Markup.XamlTemplateSerializer.ConvertBamlToObject(BamlRecordReader 读卡器,BamlRecord BamlRecord,ParserContext上下文)位于 System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)在 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)在 System.Windows.Markup.BamlRecordReader.ReadElement(Int64 startPosition,XamlObjectId上下文XamlObjectId,对象 字典(Y)在 System.Windows.ResourceDictionary.CreateObject(Int32 valuePosition, 对象键)在 System.Windows.ResourceDictionary.RealizedFerContent(对象键, 对象和值、布尔值和canCache)位于 System.Windows.ResourceDictionary.GetValueWithoutLock(对象键, 布尔值&canCache)在 System.Windows.ResourceDictionary.GetValue(对象键,布尔值& canCache)在 System.Windows.DeferredThemeResourceReference.GetValue(BaseValueSourceInternal valueSource)位于 System.Windows.DependencyPropertyChangedEventArgs.get_NewValue()位于 System.Windows.Controls.Control.OnTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)位于 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex、DependencyProperty dp、PropertyMetadata、, 有效值条目oldEntry、有效值条目&新条目、布尔值 位于的强制WithDeferredReference,OperationType(操作类型) System.Windows.StyleHelper.ApplyStyleOrTemplateValue(FrameworkObject fo,DependencyProperty dp)位于 System.Windows.StyleHelper.InvalidateContainerDependents(DependencyObject 容器,FrugalStructList
1和ExclutionContainerDependents,
FrugalStructList
1&oldContainerDependents,FrugalStructList`1& 新容器附件)位于 System.Windows.StyleHelper.DothemestyleInvalizations(FrameworkElement fe,框架内容元素fce,样式旧主题样式,样式 新诗风格,风格) System.Windows.StyleHelper.UpdateTimeStyleCache(FrameworkElement fe, 框架内容元素fce,样式旧主题样式,样式新主题样式