I’m not sure where to put this.
Open Rails runs just fine, but when I click on options on the main screen, I get an unhandled exception has occurred… Value of ‘27000’ is not valid for ‘Value.’ If you need the exception text let me know and I will copy it into this thread. Thanks
Options error
#2
Posted 25 July 2014 - 12:19 AM
A value can be anything, but it would be important to know, which value it was that was invalid. So, the exception text would help for sure. Otherwise one can just guess, which will not help very much.
Cheers, Markus
Cheers, Markus
#3
Posted 25 July 2014 - 12:48 AM
Please can you include a copy of your OpenRailsLog.txt - one of your settings must be set to a bogus value and that will tell us which one.
#4
Posted 25 July 2014 - 01:07 AM
James and Markus, it only appears when I click the Options button on the Open Rails menu screen. The text is as follows for what it is giving me:
************** Exception Text **************
System.ArgumentOutOfRangeException: Value of '27000' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
at ORTS.OptionsForm..ctor(UserSettings settings, UpdateManager updateManager) in c:\Users\James\Documents\Coding\Jenkins\workspace\Open Rails Experimental\Source\Menu\Options.cs:line 38
at ORTS.MainForm.buttonOptions_Click(Object sender, EventArgs e) in c:\Users\James\Documents\Coding\Jenkins\workspace\Open Rails Experimental\Source\Menu\MainForm.cs:line 445
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5477 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Menu
Assembly Version: 0.0.5312.31924
Win32 Version: 0.0.5312.31924
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.5468 (Win7SP1GDR.050727-5400)
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.5467 (Win7SP1GDR.050727-5400)
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.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ORTS.Common
Assembly Version: 0.0.5312.31914
Win32 Version: 0.0.5312.31914
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.5420 built by: Win7SP1
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
ORTS.Updater
Assembly Version: 0.0.5312.31922
Win32 Version: 0.0.5312.31922
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Updater.DLL
----------------------------------------
ORTS.Menu
Assembly Version: 0.0.5312.31922
Win32 Version: 0.0.5312.31922
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Menu.DLL
----------------------------------------
ORTS.Formats
Assembly Version: 0.0.5312.31915
Win32 Version: 0.0.5312.31915
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Formats.DLL
----------------------------------------
MSTS.Formats
Assembly Version: 0.0.5312.31915
Win32 Version: 0.0.5312.31915
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/MSTS.Formats.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ORTS.Settings
Assembly Version: 0.0.5312.31915
Win32 Version: 0.0.5312.31915
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Settings.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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
----------------------------------------
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
----------------------------------------
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
----------------------------------------
ORTS.Content
Assembly Version: 0.0.5312.31915
Win32 Version: 0.0.5312.31915
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Content.DLL
----------------------------------------
Newtonsoft.Json
Assembly Version: 4.5.0.0
Win32 Version: 5.0.6.16206
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Newtonsoft.Json.DLL
----------------------------------------
MSTS.Parsers
Assembly Version: 0.0.5312.31913
Win32 Version: 0.0.5312.31913
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/MSTS.Parsers.DLL
----------------------------------------
System.ComponentModel.DataAnnotations
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------
System.Runtime.Serialization
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.5452 (Win7SP1GDR.030729-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
************** Exception Text **************
System.ArgumentOutOfRangeException: Value of '27000' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
at ORTS.OptionsForm..ctor(UserSettings settings, UpdateManager updateManager) in c:\Users\James\Documents\Coding\Jenkins\workspace\Open Rails Experimental\Source\Menu\Options.cs:line 38
at ORTS.MainForm.buttonOptions_Click(Object sender, EventArgs e) in c:\Users\James\Documents\Coding\Jenkins\workspace\Open Rails Experimental\Source\Menu\MainForm.cs:line 445
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5477 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Menu
Assembly Version: 0.0.5312.31924
Win32 Version: 0.0.5312.31924
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.5468 (Win7SP1GDR.050727-5400)
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.5467 (Win7SP1GDR.050727-5400)
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.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ORTS.Common
Assembly Version: 0.0.5312.31914
Win32 Version: 0.0.5312.31914
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.5420 built by: Win7SP1
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
ORTS.Updater
Assembly Version: 0.0.5312.31922
Win32 Version: 0.0.5312.31922
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Updater.DLL
----------------------------------------
ORTS.Menu
Assembly Version: 0.0.5312.31922
Win32 Version: 0.0.5312.31922
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Menu.DLL
----------------------------------------
ORTS.Formats
Assembly Version: 0.0.5312.31915
Win32 Version: 0.0.5312.31915
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Formats.DLL
----------------------------------------
MSTS.Formats
Assembly Version: 0.0.5312.31915
Win32 Version: 0.0.5312.31915
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/MSTS.Formats.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ORTS.Settings
Assembly Version: 0.0.5312.31915
Win32 Version: 0.0.5312.31915
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Settings.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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
----------------------------------------
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
----------------------------------------
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
----------------------------------------
ORTS.Content
Assembly Version: 0.0.5312.31915
Win32 Version: 0.0.5312.31915
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Content.DLL
----------------------------------------
Newtonsoft.Json
Assembly Version: 4.5.0.0
Win32 Version: 5.0.6.16206
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Newtonsoft.Json.DLL
----------------------------------------
MSTS.Parsers
Assembly Version: 0.0.5312.31913
Win32 Version: 0.0.5312.31913
CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/MSTS.Parsers.DLL
----------------------------------------
System.ComponentModel.DataAnnotations
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------
System.Runtime.Serialization
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.5452 (Win7SP1GDR.030729-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
#5
Posted 25 July 2014 - 07:24 AM
Please can I have OpenRailsLog.txt? The exception text unfortunately doesn't identify which setting it is.
#6
Posted 25 July 2014 - 09:28 AM
#7
Posted 25 July 2014 - 10:28 AM
It seems that:
BrakePipeChargingRate = (user set) 27000
is a bit ( or two) too high.
Regards.
BrakePipeChargingRate = (user set) 27000
is a bit ( or two) too high.
Regards.
#8
Posted 25 July 2014 - 10:36 AM
#9
Posted 25 July 2014 - 10:48 AM
REGEDIT
HKEY_CURRENT_USER ----- Software ------- OpenRails ------ ORTS -------- BrakePipeChargingRate
and put it at say 1C ( hex value )
Regards
HKEY_CURRENT_USER ----- Software ------- OpenRails ------ ORTS -------- BrakePipeChargingRate
and put it at say 1C ( hex value )
Regards