This project has moved and is read-only. For the latest updates, please go here.


Exception thrown at statup for cultural settings that do not use a period as decimal mark


In the error message below it says that 0.1 is not a valid number. This is caused by the language setting on the computer not being set to use a period "." as a decimal place. A temportary fix can be made by editing the configuration file, typically located here:
            C:\Program Files\PMU Connection Tester\PMUConnectionTester.exe.config
Edit the file (running editor as admin on newer Windows systems) and change the following XML value:
It is set to 0.1 by default, you can change this to "0,1" for example if your computer assumes a comma "," as a decimal place.
Example exception:
Application Domain: PMUConnectionTester.exe
Assembly Codebase: c:/program files/pmu connection tester/pmuconnectiontester.exe
Assembly Full Name: PMUConnectionTester, Version=, Culture=neutral, PublicKeyToken=null
Assembly Version:
Assembly Build Date: 2010-07-06 09:19:32
.Net Runtime Version: 2.0.50727.3615
Exception Source: mscorlib
Exception Type: System.FormatException
Exception Message: Input string was not in a correct format.
Exception Target Site: StringToNumber
---- Stack Trace ----
System.Number.StringToNumber(str As String, options As NumberStyles, number As NumberBuffer&, info As NumberFormatInfo, parseDecimal As Boolean)
   PMUConnectionTester.exe: N 7470007 
System.Number.ParseSingle(value As String, options As NumberStyles, numfmt As NumberFormatInfo)
   PMUConnectionTester.exe: N 00115 
System.Single.Parse(s As String, style As NumberStyles, info As NumberFormatInfo)
   PMUConnectionTester.exe: N 00192 
System.ComponentModel.SingleConverter.FromString(value As String, formatInfo As NumberFormatInfo)
   PMUConnectionTester.exe: N 00053 
System.ComponentModel.BaseNumberConverter.ConvertFrom(context As ITypeDescriptorContext, culture As CultureInfo, value As Object)
   PMUConnectionTester.exe: N 00376
Closed Jan 22, 2011 at 5:59 PM by ritchiecarroll
Closed with check-in 67243