複数のウィンドウを持つビジュアルスタジオ2008でプログラムを作成しました。ウィンドウの 1 つは、ウィンドウ リボン コントロールを使用します。現在、プログラムは私のコンピューター (Windows XP) で正常に動作しますが、.net 3.5 SP1 がインストールされた状態で新たにインストールされた別のコンピューターでプログラムを実行したい場合、プログラムを起動できますが、リボン コントロールでウィンドウを開くとクラッシュします。これは、catch を試行したときに表示されるエラー ファイルです。
System.Windows.Markup.XamlParseException: 呼び出しのターゲットによって例外がスローされました。オブジェクト 'System.Windows.Data.Binding' でエラーが発生しました。---> System.Reflection.TargetInvocationException: 呼び出しのターゲットによって例外がスローされました。---> System.ComponentModel.Win32Exception: Microsoft.Windows.Shell.SystemParameters2._InitializeThemeInfo の Standard.NativeMethods.GetCurrentThemeName(String& themeFileName, String& color, String& size) の Standard.HRESULT.ThrowIfFailed(String メッセージ) で HRESULT_FROM_WIN32(ERROR_NOT_FOUND) () Microsoft.Windows.Shell.SystemParameters2..ctor() at Microsoft.Windows.Shell.SystemParameters2.get_Current() --- 内部例外スタック トレースの終了 --- System.RuntimeMethodHandle._InvokeMethodFast(Object target,
System.Reflection.RuntimePropertyInfo.GetValue (オブジェクト obj、BindingFlags invokeAttr、バインダー バインダー、オブジェクト [] インデックス、CultureInfo カルチャ) で System.Reflection.RuntimePropertyInfo.GetValue (オブジェクト obj、オブジェクト [] インデックス) で System.Windows.Markup。 System.Windows.Markup.BamlRecordReader.GetStaticExtensionValue(Int16 memberId) の StaticExtension.ProvideValue(IServiceProvider serviceProvider) bamlPropertyRecord) at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord) --- 内部例外スタック トレースの終了 --- System.Windows.Markup で。System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext、Int32 lineNumber、Int32 linePosition、String message 、 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord) で System.Windows.Markup.TemplateBamlRecordReader.ReadNonContentRecord(BamlRecord bamlRecord) で例外 innerException) System.Windows.Markup.TemplateBamlRecordReader.ReadRecord(BamlRecord bamlRecord) で System.Windows System.Windows.Markup の System.Windows.Markup.TemplateTreeBuilderBamlTranslator.ParseFragment() の .Markup.BamlRecordReader.Read(Boolean singleRecord)。System.Windows.Markup.XamlTemplateSerializer.ConvertBamlToObject(BamlRecordReader リーダー、BamlRecord bamlRecord、ParserContext コンテキスト) の TreeBuilder.Parse() System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord) の System.Windows.Markup.BamlRecordReader.ReadRecord( System.Windows.Markup.BamlRecordReader.ReadElement(Int64 startPosition, XamlObjectIds contextXamlObjectIds, Object dictionaryKey) の BamlRecord bamlRecord) System.Windows.ResourceDictionary.CreateObject(Int32 valuePosition, Object key) の System.Windows.ResourceDictionary.RealizeDeferContent(Object key, System.Windows.ResourceDictionary の System.Windows.ResourceDictionary.GetValueWithoutLock(オブジェクト キー、ブール値& canCache) の Object& value、Boolean& canCache)。GetValue(Object key, Boolean& canCache) at System.Windows.DeferredThemeResourceReference.GetValue(BaseValueSourceInternal valueSource) at System.Windows.DependencyPropertyChangedEventArgs.get_NewValue() at 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 メタデータ、EffectiveValueEntry oldEntry、EffectiveValueEntry& newEntry、Boolean coerceWithDeferredReference、OperationType operationType) System.Windows.StyleHelper.ApplyStyleOrTemplateValue(FrameworkObject fo、DependencyProperty dp) で System.Windows.StyleHelper.InvalidateContainerDependents(DependencyObject コンテナー、FrugalStructList)1& exclusionContainerDependents, FrugalStructList
1& oldContainerDependents, FrugalStructList`1& newContainerDependents) System.Windows.StyleHelper.DoThemeStyleInvalidations(FrameworkElement fe, FrameworkContentElement fce, Style oldThemeStyle, Style newThemeStyle, Style style) at System.Windows.StyleHelper.UpdateThemeStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldThemeStyle, System.Windows.FrameworkElement.OnThemeStyleChanged(DependencyObject d, Object oldValue, Object newValue) のスタイル newThemeStyle, Style& themeStyleCache) System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) の System.Windows.FrameworkElement.UpdateThemeStyleProperty() でSystem.Windows.FrameworkElement.OnInitialized(EventArgs e) System.Windows.Controls.MenuItem で。OnInitialized(EventArgs e) で System.Windows.FrameworkElement.TryFireInitialized() で System.Windows.FrameworkElement.EndInit() で System.Windows.Controls.ItemsControl.EndInit() で System.Windows.Markup.BamlRecordReader.ElementEndInit(Object& element ) System.Windows.Markup.BamlRecordReader.ReadElementEndRecord(Boolean fromNestedBamlRecordReader) で System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord) で System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord) で System.Windows.Markup. System.Windows.Markup.XamlReader.LoadBaml での System.Windows.Markup.TreeBuilder.Parse() での TreeBuilderBamlTranslator.ParseFragment() (ストリーム ストリーム、ParserContext parserContext、オブジェクトの親、ブール値の closeStream) での System.Windows.Application.LoadComponent(Object)成分、URI resourceLocator) at Waak.WeegschaalProgramma.WeegAuteurWindow.InitializeComponent() at Waak.WeegschaalProgramma.WeegAuteurWindow..ctor(WeegschaalProcessor weegschaalProcessor)
誰かがこのエラーを以前に見たことがありますか、または私を助けるためのヒントはありますか? すでに .net を削除して、完全に再インストールしました。