Windows Vista Input string was not in a correct format error from .net framework

  • Thread starter Thread starter daissy
  • Start date Start date
D

daissy

Guest
Hi,

Can someone pls advise me how to get rid of the following error message
which appears every time when I plug in or unplug the comp and at start-up
when it is unplugged. I am just a regular user of Sony Vaio VGN-TZ150N with
Win Vista Business and Sony help directs me to Microsoft and Microsoft to
Sony and so on... so I'd appreciate help so I can start enjoying using my
brand new computer finally:)

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

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options,
NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseSingle(String value, NumberStyles options,
NumberFormatInfo numfmt)
at System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToSingle(String value)
at Sony.VAIO.Utility.OPS.BalloonClew.BalloonClew_Load(Object sender,
EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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.312 (rtmLHS.050727-3100)
CodeBase:
file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
OPT Drive Power Saving
Assembly Version: 2.0.0.15130
Win32 Version: 2.0.00.15130
CodeBase:
file:///C:/Program%20Files/Sony/VAIO%20Power%20Management/OPT%20Drive%20Power%20Saving.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
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.312 (rtmLHS.050727-3100)
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.312 (rtmLHS.050727-3100)
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll"


--
/daissy
 
Re: Input string was not in a correct format error from .netframework

Re: Input string was not in a correct format error from .netframework

On Mon, 17 Sep 2007 09:02:06 -0700, daissy wrote:

> Hi,
>
> Can someone pls advise me how to get rid of the following error message
> which appears every time when I plug in or unplug the comp and at
> start-up when it is unplugged. I am just a regular user of Sony Vaio
> VGN-TZ150N with Win Vista Business and Sony help directs me to Microsoft
> and Microsoft to Sony and so on... so I'd appreciate help so I can start
> enjoying using my brand new computer finally:)


Well it appears that you have some software installed that is somehow
related to managing / displaying the power/battery state of your laptop
and that is software is written using the .Net Framework.

The error message you are seeing, as it states, occurs when whoever wrote
the software tries to convert a text that isn't a number to a number.

This can happen due to multiple reasons.

Most common reason is that it's just a plain wrong string. Ie the string
"abcd" would be difficult to convert to a number. Unless they have a
severe bug in their software though, I find that to be unlikely.

Now the next thing that comes to my mind which can also cause these kinds
of problems are cultural differences.

Germany for instances writes 1,000.00 as 1.000,00. The , and . are
reversed. So passing 1.000,00 to StringToNumber would cause the exception
below on a US system, while passing 1,000.00 would cause the exception
below on many european systems.

Some kind of a difference along those lines is most likely to be the
issue of what's going on here.

Now what can you do to actually solve the problem?

If it's just a monitoring app that simply monitors and shows your battery
state and you don't really need it, I'd simply not run it. One way to
solve the issue.

The other way to, "maybe" solve the problem is to check your regional
settings. If indeed it is a cultural representation problem, then
adjusting your regional setting to match what that utility expects can
resolve the issue...but can in turn then cause problems with other
programs. Probably not the best way to go about it.

Another option would be to look for an update for said utility and if
there is an update for it, see if that fixes the problem.

--
Stephan
2003 Yamaha R6

君のこと思い出す日なんてないのは
君のこと忘れたときがないから
 
Re: Input string was not in a correct format error from .net frame

Re: Input string was not in a correct format error from .net frame

Thank you Stephan. That might be indeed the cultral differences problem as I
bought the laptop with OS in the US and use it in Europe.
Sony support told me today that they encountered similar problems on
previous OS and asked me to send detials to them so the patch for Vista can
be created. It will take a while till it is written it but this error
fortunately does not cause yet any other issues visible to me apart from the
fact that error message is displayed.
--
/daissy


"Stephan Rose" wrote:

>
> Well it appears that you have some software installed that is somehow
> related to managing / displaying the power/battery state of your laptop
> and that is software is written using the .Net Framework.
>
> The error message you are seeing, as it states, occurs when whoever wrote
> the software tries to convert a text that isn't a number to a number.
>
> This can happen due to multiple reasons.
>
> Most common reason is that it's just a plain wrong string. Ie the string
> "abcd" would be difficult to convert to a number. Unless they have a
> severe bug in their software though, I find that to be unlikely.
>
> Now the next thing that comes to my mind which can also cause these kinds
> of problems are cultural differences.
>
> Germany for instances writes 1,000.00 as 1.000,00. The , and . are
> reversed. So passing 1.000,00 to StringToNumber would cause the exception
> below on a US system, while passing 1,000.00 would cause the exception
> below on many european systems.
>
> Some kind of a difference along those lines is most likely to be the
> issue of what's going on here.
>
> Now what can you do to actually solve the problem?
>
> If it's just a monitoring app that simply monitors and shows your battery
> state and you don't really need it, I'd simply not run it. One way to
> solve the issue.
>
> The other way to, "maybe" solve the problem is to check your regional
> settings. If indeed it is a cultural representation problem, then
> adjusting your regional setting to match what that utility expects can
> resolve the issue...but can in turn then cause problems with other
> programs. Probably not the best way to go about it.
>
> Another option would be to look for an update for said utility and if
> there is an update for it, see if that fixes the problem.
>
> --
> Stephan
> 2003 Yamaha R6
>
> 君のこと思い出す日なんてないのは
> 君のこと忘れたときがないから
>
 
Back
Top