Difference between revisions of "InvalidCastException - Conversion from string "x.y" to type 'Double' is not valid"

From TimeSnapper
(Conversion from string type Double is not valid)
 
(No difference)

Revision as of 15:39, 5 April 2019

If you get a "Conversion from string "0.6" to type 'Double' is not valid" when opening the Day Browser, follow these steps to fix the problem:


This is related to the Day browsers Zoom level! Currently it set to 0.6 but due to regional settings changes (probably), it should be 0,6 (comma instead of a dot).

To fix it, follow the following steps:

Restart TimeSnapper

Go to Help -> About

Right click the TimeSnapper logo and select "Run Command"

Paste in the following line into the dialog box that just opened:

Update options set val = '1' where name = 'DayBrowserZoomLevel'

And click OK.

Now you should be able to open the day browser again!




ERROR: InvalidCastException (Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble) V3.9 Message=Conversion from string "0.6" to type 'Double' is not valid. Data=System.Collections.ListDictionaryInternal InnerException=System.FormatException: Input string was not in a correct format.

 at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
 at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)

Message=Input string was not in a correct format. Data=System.Collections.ListDictionaryInternal

Assemblies:

 mscorlib, 2.0.0.0
 TimeSnapper, 3.9.0.3
 System.Windows.Forms, 2.0.0.0
 System, 2.0.0.0
 System.Drawing, 2.0.0.0
 Microsoft.VisualBasic, 8.0.0.0
 System.Xml, 2.0.0.0
 TSLib, 1.0.5703.17933
 FirebirdSql.Data.FirebirdClient, 2.1.0.0
 System.Data, 2.0.0.0
 System.Transactions, 2.0.0.0
 FB_965910463_Assembly, 0.0.0.0
 System.Configuration, 2.0.0.0
 System.EnterpriseServices, 2.0.0.0
 System.Deployment, 2.0.0.0
 TSControls, 1.0.5703.17932
 ITimeSnapperPlugIn, 1.0.5703.17931
 AnimatedGifPlugin, 1.0.0.0
 reqfdfij, 1.0.0.0
 System.Management, 2.0.0.0
 Accessibility, 2.0.0.0
 BugzScoutDotNet, 1.0.3481.18143