Click here to Skip to main content
15,745,973 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
When I try to run my 2010 project I get the error.

"System.InvalidOperationException occured in PCDoctor.exe

Additional Inormation: An error occured creating the form. See Exception.InnerException for details. The error is: Conversion from string "" to type Double is not valid.

I even tried placing break points in the startup form but this error happens before any of the startup form code is excecuted.

The project was working fine before I added code to a form. I even removed this new code and tried to run the project. but still doesn't work.

Please help!!!
Updated 13-May-21 3:11am
Sergey Alexandrovich Kryukov 13-Sep-11 19:27pm    
Not enough information. What makes you using PCDoctor at all? Why are you so sure this is an exception in PCDoctor.exe? Did you debug this application? And how?
TRK3 13-Sep-11 19:38pm    
Is PCDoctor.exe the name of your program -- or is that something else in your system? If it's something else in your system, turn it off, disable it, or uninstall it and try again.
obhasha07 13-Sep-11 20:07pm    
In the error message there are two buttons. Continue and Break. When I press break. It opens a tab in VS saying no source available. In that tab there is Call Stack location: mscoreei.dll!6f0455ab()
obhasha07 13-Sep-11 19:39pm    
Yeah. PC doctor is the project. When I try to run it using Visual Studio I get this error. The proejct builds fine. So this error is a runtime error. But I can't determine where it's coming from.
Sergey Alexandrovich Kryukov 13-Sep-11 20:00pm    
You should understand that without seeing your code it's too hard to fix it :-). The error comes from System.Double.Parse or equivalent Convert method. Do you use one of those? It can implicitly come from, say, serialization, but... it probably happens when you have no data, right? Maybe some data file is assumed?

1 solution

This problem occurs because multiple threads in the application call the Hashtable.Insert method at the same time.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900