#358

Discarded

Error on start: "Value cannot be null"

Reported by Dan on OCTGN · 28/03/2011 05:31:17

Assigned to:
jods
Priority:
Normal
Status:
Discarded
Category:
None
Version:
0.9.*
Issue type:
Bug

I’ve been trying to get this game working for a long time, modifying files and going through many error messages. I’m unsure if this is the last, but for the life of me I just can’t figure this one out. For all I know it could be quite simple.
-——————————————————————————-
System.Windows.Markup.XamlParseException: ‘The invocation of the constructor on type ’Octgn.Play.Gui.TableControl’ that matches the specified binding constraints threw an exception.’ Line number ‘102’ and line position ‘6’. —→ System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

1) Value cannot be null.

Resulting in: An exception occurred while trying to create an instance of type ‘Octgn.Scripting.Engine’.

Resulting in: Cannot activate part ‘Octgn.Scripting.Engine’.
Element: Octgn.Scripting.Engine —> Octgn.Scripting.Engine —> AssemblyCatalog (Assembly=“OCTGN, Version=0.9.3.2, Culture=neutral, PublicKeyToken=null”)

Resulting in: Cannot get export ‘Octgn.Scripting.Engine (ContractName=“Octgn.Scripting.Engine”)’ from part ‘Octgn.Scripting.Engine’.
Element: Octgn.Scripting.Engine (ContractName=“Octgn.Scripting.Engine”) —> Octgn.Scripting.Engine —> AssemblyCatalog (Assembly=“OCTGN, Version=0.9.3.2, Culture=neutral, PublicKeyToken=null”)

Resulting in: Cannot set import ‘Octgn.Play.Gui.GroupControl.scriptEngine (ContractName=“Octgn.Scripting.Engine”)’ on part ‘Octgn.Play.Gui.TableControl’.
Element: Octgn.Play.Gui.GroupControl.scriptEngine (ContractName=“Octgn.Scripting.Engine”) —> Octgn.Play.Gui.TableControl

at System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition) at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch) at System.ComponentModel.Composition.Hosting.CompositionContainer.Compose(CompositionBatch batch) at System.ComponentModel.Composition.AttributedModelServices.ComposeParts(CompositionContainer container, Object[] attributedParts) at Octgn.Game.ComposeParts(Object[] attributedParts) in C:\OCTGN FX\Octgn\Game.cs:line 280 at Octgn.Play.Gui.GroupControl..ctor() in C:\OCTGN FX\Octgn\Play\Gui\GroupControl.cs:line 43 at Octgn.Play.Gui.TableControl..ctor() in C:\OCTGN FX\Octgn\Play\Gui\TableControl.xaml.cs:line 46 - End of inner exception stack trace - at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at Octgn.Play.PlayWindow.InitializeComponent() in c:\OCTGN FX\Octgn\Play\PlayWindow.xaml:line 1 at Octgn.Play.PlayWindow..ctor() in C:\OCTGN FX\Octgn\Play\PlayWindow.xaml.cs:line 42 at Octgn.Launcher.StartGame.Start() in C:\OCTGN FX\Octgn\Launcher\StartGame.xaml.cs:line 71 at Octgn.Launcher.StartGame.StartClicked(Object sender, RoutedEventArgs e) in C:\OCTGN FX\Octgn\Launcher\StartGame.xaml.cs:line 81 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.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 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.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run(Window window) at System.Windows.Application.Run() at Octgn.OctgnApp.Main() in C:\OCTGN FX\Octgn\obj\Debug\App.g.cs:line 0

Attachments

No attachment has been uploaded, yet.


Loading comments...