运行VB2008 Exe(.Net Framework)时出错 [英] Error Running VB2008 Exe( .Net Framework)

查看:102
本文介绍了运行VB2008 Exe(.Net Framework)时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将vb 2008的exe复制到必须运行的另一台PC上,但是显示有关.NET Framework的错误,然后我将.NET Framework 4下载并安装到该PC,安装后,我随后尝试运行是,还是仍然出现相同的错误?

I copied a exe of my vb 2008 to another pc a had to run, but an error regarding .NET Framework shows, I then downloaded and installed .NET Framework 4 to that pc, after Installing, i then tried to run my Exe but still, the same error Appeared?

推荐答案

您的应用程序中发生了未处理的异常.

填充:SelectCommand.连接属性尚未初始化"


这意味着您尝试打开SqlCommand对象时未建立SqlConnection并先将两者绑定在一起:这与在PC上安装.NET无关!
看看MSDN-它向您展示如何正确执行操作:填充来自DataAdapter的数据集 [ ^ ]
"Unhandled Exception has occurred in your application.

Fill: SelectCommand. Connection Property has not been initialized"


This means that you have tried to open a SqlCommand object without establishing a SqlConnection and tying the two together first: it has nothing to do with installing .NET on your PC!

Have a look at MSDN - it shows you how to do it properly: Populating a DataSet from a DataAdapter[^]


这篇关于运行VB2008 Exe(.Net Framework)时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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