I tried start Open Rails but show this message: Unable to cast object of type 'System.Configuration.Internal.ConfigurationManagerInternal' to type 'System.Configuration.Internal.FileVersion'.

Bug #1777497 reported by Martin Ľupták
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Open Rails
New
Undecided
Unassigned

Bug Description

I really like this game and want to play it but I have one error

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'System.Configuration.Internal.ConfigurationManagerInternal' to type 'System.Configuration.Internal.FileVersion'.
   at System.Configuration.ConfigurationManagerInternalFactory.get_Instance()
   at System.Diagnostics.DiagnosticsConfiguration.Initialize()
   at System.Diagnostics.DiagnosticsConfiguration.get_IndentSize()
   at System.Diagnostics.TraceInternal.InitializeSettings()
   at System.Diagnostics.TraceInternal.WriteLine(String message)
   at System.Diagnostics.Debug.WriteLine(String message)
   at GNU.Gettext.WinForms.Localizer.IterateControlHandler(LocalizableObjectAdapter adapter, IterateMode mode)
   at GNU.Gettext.WinForms.Localizer.IterateControls(Control control, IterateMode mode)
   at GNU.Gettext.WinForms.Localizer.IterateControls(Control control, IterateMode mode)
   at GNU.Gettext.WinForms.Localizer.Localize()
   at GNU.Gettext.WinForms.Localizer.Localize(Control control, GettextResourceManager catalog, ObjectPropertiesStore originalTextStore)
   at GNU.Gettext.WinForms.Localizer.Localize(Control control, GettextResourceManager catalog)
   at ORTS.MainForm.LoadLanguage() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Menu\MainForm.cs:line 328
   at ORTS.MainForm.MainForm_Shown(Object sender, EventArgs e) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Menu\MainForm.cs:line 139
   at System.Windows.Forms.Form.OnShown(EventArgs e)
   at System.Windows.Forms.Form.CallShownEvent()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Menu
    Assembly Version: 0.0.6231.39156
    Win32 Version: 0.0.6231.39156
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Menu.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ORTS.Common
    Assembly Version: 0.0.6231.39143
    Win32 Version: 0.0.6231.39143
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Common.DLL
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.8931 built by: WinRelRS4
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
ORTS.Menu
    Assembly Version: 0.0.6231.39155
    Win32 Version: 0.0.6231.39155
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Menu.DLL
----------------------------------------
Orts.Formats.OR
    Assembly Version: 0.0.6231.39146
    Win32 Version: 0.0.6231.39146
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Orts.Formats.OR.DLL
----------------------------------------
Orts.Formats.Msts
    Assembly Version: 0.0.6231.39145
    Win32 Version: 0.0.6231.39145
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Orts.Formats.Msts.DLL
----------------------------------------
GNU.Gettext
    Assembly Version: 1.1.5151.39896
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/GNU.Gettext.DLL
----------------------------------------
ORTS.Updater
    Assembly Version: 0.0.6231.39155
    Win32 Version: 0.0.6231.39155
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Updater.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ORTS.Settings
    Assembly Version: 0.0.6231.39147
    Win32 Version: 0.0.6231.39147
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Settings.DLL
----------------------------------------
Microsoft.Xna.Framework
    Assembly Version: 3.1.0.0
    Win32 Version: 3.1.10527.0 built by: xnabldr
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/Microsoft.Xna.Framework/3.1.0.0__6d5c3888ef60e27d/Microsoft.Xna.Framework.dll
----------------------------------------
GNU.Gettext.WinForms
    Assembly Version: 1.0.5151.39911
    Win32 Version: 1.0.5151.39911
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/GNU.Gettext.WinForms.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.