[已解决]如何修复System.InvalidOperationException错误?无法运行VB 2010项目. [英] [Solved] How to fix the System.InvalidOperationException error? Can't run VB 2010 project.

查看:1166
本文介绍了[已解决]如何修复System.InvalidOperationException错误?无法运行VB 2010项目.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行VB.net 2010项目时,出现错误.

When I try to run my VB.net 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!!!

推荐答案

之所以会出现此问题,是因为应用程序中的多个线程同时调用了Hashtable.Insert方法.
This problem occurs because multiple threads in the application call the Hashtable.Insert method at the same time.


这篇关于[已解决]如何修复System.InvalidOperationException错误?无法运行VB 2010项目.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆