Recently we have started getting InvalidCastException and FormatException errors on 3 clients out of > 100 that are in use. We believe it is caused by the upgrade of our application from .Net 1.1 to .Net 2.0. In one case we get the following message -
System.InvalidCastException: Conversion from string "0" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format.
In this particular case the error happened when user A was logged in but not when user B was logged in. Both users used the same PC.
Even though this looks like a bug I suspect that there is some configuration item that is causing this. We did not have this problem with .Net 1.1. Any ideas about what is going on here and how to fix it
Thanks, Jay

Inconsistent InvalidCastException and FormatException errors
J-rod
Have you had any feedback, we got the following, almost identical error:
Conversion from string "1" to type 'Integer' is not valid.
One user, me has no problem, other user gets error - both on the same PC. Obviously "1" should convert to integer.
.Net v2.0 coming from Microsoft.VisualBasic
asisurfer
We did get a solution for this working with Microsoft. There is some situation which they do not have a handle on yet which can cause the registry key HKEY_CURRENT_USER\Control Panel\International\sPositiveSign to become corrupted. If there is anything in it clear it out. Even if it appears there is nothing in it click on okay instead of cancel. We have created a .reg file from a user that did not have problems and then edited it to only include the sPositiveSign key. Running that seems to fix the problem also.
Good luck,
Jay