Я создал программу в visual studio 2008 с несколькими окнами. В одном из окон используется элемент управления ленты Windows. Теперь программа прекрасно работает на моем компьютере (Windows XP), но когда я хочу запустить ее на другом компьютере, только что установленном с установленным .net 3.5 SP1, я могу запустить программу, но у меня происходит сбой при открытии окна с ленточным управлением.
Это ошибка, которую я получаю, когда пытаюсь поймать catch:
System.Windows.Markup.XamlParseException: возникла исключительная ситуация
целью вызова. Ошибка на объекте
'System.Windows.Data.Binding. --->
System.Reflection.TargetInvocationException: было сгенерировано исключение
целью вызова. --->
System.ComponentModel.Win32Exception:
HRESULT_FROM_WIN32 (ERROR_NOT_FOUND) в
Standard.HRESULT.ThrowIfFailed (String message) в
Standard.NativeMethods.GetCurrentThemeName (String & themeFileName,
Строка и цвет, строка и размер) в
Microsoft.Windows.Shell.SystemParameters2._InitializeThemeInfo () в
Microsoft.Windows.Shell.SystemParameters2..ctor () в
Microsoft.Windows.Shell.SystemParameters2.get_Current () --- Конец
внутренняя трассировка стека исключений --- в
System.RuntimeMethodHandle._InvokeMethodFast (Цель объекта, Объект []
аргументы, SignatureStruct & sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner) в
System.RuntimeMethodHandle.InvokeMethodFast (Цель объекта, Объект []
аргументы, подпись sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner) в
System.Reflection.RuntimeMethodInfo.Invoke (Object obj, BindingFlags
invokeAttr, Binder Binder, Object [] параметры, CultureInfo культура,
Boolean skipVisibilityChecks) в
System.Reflection.RuntimeMethodInfo.Invoke (Object obj, BindingFlags
invokeAttr, Binder Binder, Object [] параметры, CultureInfo culture)
в System.Reflection.RuntimePropertyInfo.GetValue (Object obj,
BindingFlags invokeAttr, Binder binder, Object [] index, CultureInfo
культура) в System.Reflection.RuntimePropertyInfo.GetValue (Object
obj, Object [] index) в
System.Windows.Markup.StaticExtension.ProvideValue (IServiceProvider
serviceProvider) в
System.Windows.Markup.BamlRecordReader.GetStaticExtensionValue (Int16
memberId) в
System.Windows.Markup.BamlRecordReader.GetExtensionValue (IOptimizedMarkupExtension
optimizedMarkupExtensionRecord, String propertyName) в
System.Windows.Markup.TemplateBamlRecordReader.ReadPropertyWithExtensionRecord (BamlPropertyWithExtensionRecord
bamlPropertyRecord) в
System.Windows.Markup.BamlRecordReader.ReadRecord (BamlRecord
bamlRecord) --- конец трассировки стека внутренних исключений --- в
System.Windows.Markup.XamlParseException.ThrowException (String
сообщение, исключение innerException, Int32 lineNumber, Int32
linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds,
XamlObjectIds contextXamlObjectIds, Тип objectType) в
System.Windows.Markup.XamlParseException.ThrowException (ParserContext
parserContext, Int32 lineNumber, Int32 linePosition, строковое сообщение,
Исключение innerException) в
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 (Boolean
singleRecord) в
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, XamlObjectIds contextXamlObjectIds, Object
dictionaryKey) в
System.Windows.ResourceDictionary.CreateObject (Int32 valuePosition,
Ключ объекта) в
System.Windows.ResourceDictionary.RealizeDeferContent (ключ объекта,
Object & value, Boolean & canCache) в
System.Windows.ResourceDictionary.GetValueWithoutLock (ключ объекта,
Boolean & 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
есть
System.Windows.FrameworkElement.OnPropertyChanged (DependencyPropertyChangedEventArgs
есть
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, Стиль oldThemeStyle, Стиль
newThemeStyle, Стиль стиля) в
System.Windows.StyleHelper.UpdateThemeStyleCache (FrameworkElement fe,
FrameworkContentElement fce, Стиль oldThemeStyle, Стиль newThemeStyle,
Style & themeStyleCache) в
System.Windows.FrameworkElement.OnThemeStyleChanged (DependencyObject
d, Object oldValue, Object newValue) в
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 (Объект и элемент)
в System.Windows.Markup.BamlRecordReader.ReadElementEndRecord (Boolean
fromNestedBamlRecordReader) в
System.Windows.Markup.BamlRecordReader.ReadRecord (BamlRecord
bamlRecord) в System.Windows.Markup.BamlRecordReader.Read (Boolean
singleRecord) в
System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment () в
System.Windows.Markup.TreeBuilder.Parse () в
System.Windows.Markup.XamlReader.LoadBaml (Потоковый поток, ParserContext
parserContext, Object parent, Boolean closeStream) в
System.Windows.Application.LoadComponent (Объектный компонент, Uri
resourceLocator) в
Waak.WeegschaalProgramma.WeegAuteurWindow.InitializeComponent () в
Waak.WeegschaalProgramma.WeegAuteurWindow..ctor (WeegschaalProcessor
weegschaalProcessor)
Кто-нибудь видел эту ошибку раньше или есть какие-нибудь советы, чтобы помочь мне? Я уже удалил .net и полностью переустановил.