Star Trek Fan Games
http://bote2.square7.ch/forum/

Unhandled Exception
http://bote2.square7.ch/forum/viewtopic.php?f=13&t=2353
Page 1 of 1

Author:  ceririch [ 01 Jun 2008, 02:13 ]
Post subject:  Unhandled Exception

Hi Mike,

Great looking game - can't wait for the final release.

I get an unhandled exception error followed by a crash after starting a single player game, error log shows following -

Exception has been thrown by the target of an invocation.

at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Object reference not set to an instance of an object.

at Supremacy.Client.ClientApp.ReloadResources() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\ClientApp.xaml.cs:line 160

----------------------------------------

Exception has been thrown by the target of an invocation.

at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Object reference not set to an instance of an object.

at Supremacy.Client.SystemScreen..ctor() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\SystemScreen.cs:line 170
at Supremacy.Client.GameWindow.CreateGameScreens() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GameWindow.xaml.cs:line 858

----------------------------------------

Is this caused by the fact that the folder C:\Users\Mike.... doesn't exist on my machine? Also downloaded the latest version of the game, .Net 3.5 then updated and re-started.

Author:  Eschew_obfuscation [ 01 Jun 2008, 04:13 ]
Post subject:  Re: Unhandled Exception

ceririch, I had this exact same problem. I posted the question in the thread Supremacy Pre-Release Download [26 May 2008], and mstrobel had replied:

Quote:
Are you sure you installed the .NET v3.5 SP1 Beta (and not just .NET v3.5)? Such a mixup could cause precisely the problem you're experiencing


If you go to the first page of the thread, it gives a link to download that program.. I thought I had the right program, but if you go to that thread there is a slightly different link, and it fixed the issue.

Author:  ceririch [ 01 Jun 2008, 23:28 ]
Post subject:  Re: Unhandled Exception

Thanks for help!

Unfortuntely I followed the link on the front page and installed 3.5 SP1 (beta) so don't think this is the issue :(

Any other tips greatly received...

Attachments:
35sp1.JPG
35sp1.JPG [ 16.98 KiB | Viewed 6233 times ]

Author:  firewing [ 26 Jun 2008, 22:11 ]
Post subject:  Re: Unhandled Exception

Hm...I got a similar problem. Just installed 3.5. SP1 Beta



'Supremacy.Client.StringResource' value cannot be assigned to property 'Title' of object 'Supremacy.Client.SplashScreen'. The type initializer for 'Supremacy.Resources.ResourceManager' threw an exception. Error at object 'Supremacy.Client.StringResource' in markup file 'SupremacyClient;component/splashscreen.xaml' Line 18 Position 9.

at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
at System.Windows.Markup.BamlRecordReader.ThrowExceptionWithLine(String message, Exception innerException)
at System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)
at System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object& element, ReaderFlags& flags, Type& delayCreatedType, Int16& delayCreatedTypeId)
at System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
at System.Windows.Markup.TreeBuilder.Parse()
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

The type initializer for 'Supremacy.Resources.ResourceManager' threw an exception.

at Supremacy.Resources.ResourceManager.GetString(String key)
at Supremacy.Client.StringResource.ProvideValue(IServiceProvider serviceProvider) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyWPF\StringResource.cs:line 41
at System.Windows.Markup.BamlRecordReader.ProvideValueFromMarkupExtension(MarkupExtension markupExtension, Object obj, Object member)
at System.Windows.Markup.BamlRecordReader.SetDependencyComplexProperty(Object currentTarget, BamlAttributeInfoRecord attribInfo, Object o)

----------------------------------------

String table file could not be located: D:\Game Downloads\SupremacyTest_20060526b\Resources\Strings\en.txt

at Supremacy.Resources.StringTable.Load(String filename) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyCore\Resources\StringTable.cs:line 58
at Supremacy.Resources.ResourceManager..cctor() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyCore\Resources\ResourceManager.cs:line 71

----------------------------------------

Author:  mstrobel [ 27 Jun 2008, 01:26 ]
Post subject:  Re: Unhandled Exception

firewing wrote:
String table file could not be located: D:\Game Downloads\SupremacyTest_20060526b\Resources\Strings\en.txt
This error indicates that the resource files for Supremacy are not present. Please make sure you properly extract all the contents of the ZIP file that you downloaded.

Author:  firewing [ 27 Jun 2008, 12:54 ]
Post subject:  Re: Unhandled Exception

Apparently, I forgot to save when I set WinRAR to extract full paths..no wonder it didin't work..lol

Great so far mstrobel. I'm impressed. Very impressed.

b.t.w. - you can add my name to the structure images list in credits. Did a few and I can do more ;P

Author:  Matress_of_evil [ 27 Jun 2008, 15:45 ]
Post subject:  Re: Unhandled Exception

Firewing used to be Trashman, Mike. His old forum account was affected by the joomla bug so he reregistered with a new name. Trashman is already in the credits as a modeller, but I forgot about his other contributions. :oops:

Wolfe has been working on the sound effects lately as well. You might want to add him under sound affects along with me and Kenneth.

Author:  firewing [ 27 Jun 2008, 16:16 ]
Post subject:  Re: Unhandled Exception

*Whips out Fruity Loops*

Uuu...haven't fiddled with this in a long time. Might give that a try too...MWHAHAHAHAHA

Author:  mstrobel [ 28 Jun 2008, 00:31 ]
Post subject:  Re: Unhandled Exception

Welcome back, Trashman--I had wondered what happened to you. I'll make sure you are properly credited for your other :mrgreen:.

Author:  Comtraya [ 12 Aug 2008, 15:07 ]
Post subject:  Re: Unhandled Exception

I just recently received this error. I believe this occurred because I downloaded .NET 3.5 SP1 (not beta), but wasn't sure.

Code:
Could not load type 'System.Windows.NameScope' from assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Supremacy.UI.Star2D..ctor(StarType starType)
   at Supremacy.UI.StarSystemPanel.DisplayVisuals(StarSystem system) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 289
   at Supremacy.UI.StarSystemPanel.Refresh() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 195
   at Supremacy.UI.StarSystemPanel.SectorChangedCallback(DependencyObject source, DependencyPropertyChangedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 131
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.Activate(Object item)
   at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Run(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Could not load type 'System.Windows.NameScope' from assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Supremacy.UI.Star2D..ctor(StarType starType)
   at Supremacy.UI.StarSystemPanel.DisplayVisuals(StarSystem system) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 289
   at Supremacy.UI.StarSystemPanel.Refresh() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 195
   at Supremacy.UI.StarSystemPanel.SectorChangedCallback(DependencyObject source, DependencyPropertyChangedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 131
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.Data.BindingExpression.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.DependentList.InvalidateDependents(DependencyObject source, DependencyPropertyChangedEventArgs sourceArgs)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Supremacy.UI.GalaxyGridPanel.set_SelectedSector(Sector value) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\GalaxyGridPanel.cs:line 531
   at Supremacy.Client.GalaxyScreen.RefreshScreen() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GalaxyScreen.cs:line 770
   at Supremacy.Client.GameScreen.GameScreen_Loaded(Object sender, RoutedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GameScreen.cs:line 146
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Could not load type 'System.Windows.NameScope' from assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Supremacy.UI.Star2D..ctor(StarType starType)
   at Supremacy.UI.StarSystemPanel.DisplayVisuals(StarSystem system) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 289
   at Supremacy.UI.StarSystemPanel.Refresh() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 195
   at Supremacy.Client.SystemScreen.RefreshScreen() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\SystemScreen.cs:line 688
   at Supremacy.Client.GameScreen.GameScreen_Loaded(Object sender, RoutedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GameScreen.cs:line 146
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------


Author:  mstrobel [ 12 Aug 2008, 17:00 ]
Post subject:  Re: Unhandled Exception

Comtraya wrote:
I just recently received this error. I believe this occurred because I downloaded .NET 3.5 SP1 (not beta), but wasn't sure.

Code:
Could not load type 'System.Windows.NameScope' from assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Supremacy.UI.Star2D..ctor(StarType starType)
   at Supremacy.UI.StarSystemPanel.DisplayVisuals(StarSystem system) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 289
   at Supremacy.UI.StarSystemPanel.Refresh() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 195
   at Supremacy.UI.StarSystemPanel.SectorChangedCallback(DependencyObject source, DependencyPropertyChangedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 131
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.Activate(Object item)
   at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Run(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Could not load type 'System.Windows.NameScope' from assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Supremacy.UI.Star2D..ctor(StarType starType)
   at Supremacy.UI.StarSystemPanel.DisplayVisuals(StarSystem system) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 289
   at Supremacy.UI.StarSystemPanel.Refresh() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 195
   at Supremacy.UI.StarSystemPanel.SectorChangedCallback(DependencyObject source, DependencyPropertyChangedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 131
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.Data.BindingExpression.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.DependentList.InvalidateDependents(DependencyObject source, DependencyPropertyChangedEventArgs sourceArgs)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Supremacy.UI.GalaxyGridPanel.set_SelectedSector(Sector value) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\GalaxyGridPanel.cs:line 531
   at Supremacy.Client.GalaxyScreen.RefreshScreen() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GalaxyScreen.cs:line 770
   at Supremacy.Client.GameScreen.GameScreen_Loaded(Object sender, RoutedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GameScreen.cs:line 146
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Could not load type 'System.Windows.NameScope' from assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Supremacy.UI.Star2D..ctor(StarType starType)
   at Supremacy.UI.StarSystemPanel.DisplayVisuals(StarSystem system) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 289
   at Supremacy.UI.StarSystemPanel.Refresh() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 195
   at Supremacy.Client.SystemScreen.RefreshScreen() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\SystemScreen.cs:line 688
   at Supremacy.Client.GameScreen.GameScreen_Loaded(Object sender, RoutedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GameScreen.cs:line 146
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------


The .NET Framework 3.5 SP1 RTM was just released yesterday. I haven't had the chance to test a recent build of the game with it. It's possible that it will break. If so, I'll try to hook up a .NET upgrade to the Supremacy updater or display a message telling the user to upgrade.

Author:  Matress_of_evil [ 12 Aug 2008, 19:26 ]
Post subject:  Re: Unhandled Exception

Would notification messages be enough for some people, Mike? Flashing arrows haven't been enough of a notification so far... :roll: :lol:

Author:  mstrobel [ 13 Aug 2008, 03:55 ]
Post subject:  Re: Unhandled Exception

Matress_of_evil wrote:
Would notification messages be enough for some people, Mike? Flashing arrows haven't been enough of a notification so far... :roll: :lol:
I might be able to just make the problem go away by rewriting the one small section of code that gets broken by the compatibility issue. I'll check into it tomorrow.

Author:  jigalypuff [ 15 Aug 2008, 22:18 ]
Post subject:  Re: Unhandled Exception

got this, i only just updated .net + game so i`m guessing it is the wrong version for the game?
Code:
Could not load type 'System.Windows.NameScope' from assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Supremacy.UI.Star2D..ctor(StarType starType)
   at Supremacy.UI.StarSystemPanel.DisplayVisuals(StarSystem system) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 289
   at Supremacy.UI.StarSystemPanel.Refresh() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 195
   at Supremacy.UI.StarSystemPanel.SectorChangedCallback(DependencyObject source, DependencyPropertyChangedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 131
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.Activate(Object item)
   at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Run(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Could not load type 'System.Windows.NameScope' from assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Supremacy.UI.Star2D..ctor(StarType starType)
   at Supremacy.UI.StarSystemPanel.DisplayVisuals(StarSystem system) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 289
   at Supremacy.UI.StarSystemPanel.Refresh() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 195
   at Supremacy.UI.StarSystemPanel.SectorChangedCallback(DependencyObject source, DependencyPropertyChangedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 131
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.Data.BindingExpression.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.DependentList.InvalidateDependents(DependencyObject source, DependencyPropertyChangedEventArgs sourceArgs)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Supremacy.UI.GalaxyGridPanel.set_SelectedSector(Sector value) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\GalaxyGridPanel.cs:line 531
   at Supremacy.Client.GalaxyScreen.RefreshScreen() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GalaxyScreen.cs:line 770
   at Supremacy.Client.GameScreen.GameScreen_Loaded(Object sender, RoutedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GameScreen.cs:line 146
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Could not load type 'System.Windows.NameScope' from assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Supremacy.UI.Star2D..ctor(StarType starType)
   at Supremacy.UI.StarSystemPanel.DisplayVisuals(StarSystem system) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 289
   at Supremacy.UI.StarSystemPanel.Refresh() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyUI\StarSystemPanel.cs:line 195
   at Supremacy.Client.SystemScreen.RefreshScreen() in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\SystemScreen.cs:line 688
   at Supremacy.Client.GameScreen.GameScreen_Loaded(Object sender, RoutedEventArgs e) in C:\Users\Mike Strobel\Workspace\supremacy\Mainline\SupremacyClient\GameScreen.cs:line 146
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Author:  Matress_of_evil [ 15 Aug 2008, 23:05 ]
Post subject:  Re: Unhandled Exception

It sounds like it is .Net that is at fault Jig, not the game; I just updated it myself, without updating .Net, and the game is running fine. The update I downloaded was two files, a total of 3.3mb.

Mike hasn't released the update that makes the game compatible with .Net 3.5 SP1 RTM yet; you still need .Net 3.5 SP1 Beta.

Author:  Prongs [ 23 Aug 2008, 16:38 ]
Post subject:  Re: Unhandled Exception

Could you give me the link to the prior .Net SP1 version? I tried everyone on windows.com, but none are working with Supremacy. I even tried deinstalling all .Net installations and then reinstall the one from November 07 (i believe), since it is the one I found before the August 08 .Net.

Author:  Matress_of_evil [ 24 Aug 2008, 00:03 ]
Post subject:  Re: Unhandled Exception

I'm afraid I can't, Prongs. You can't find the download because Micro$oft have pulled it from their site; they've released the non-beta version, which in their eyes is superior, and therefore the older beta version is no longer needed. Any links you do find redirect you to the new RTM version. You're unfortunately going to have to wait until Mike fixes his computer and has had a chance to release the game update. :(

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/