且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

vb.net应用程序未在客户端系统上运行

更新时间:2022-05-19 20:41:47

可能是SQL Server实例的连接字符串不是更正新PC,但可能没有在其LAN上安装SQL服务器,或者它可能需要不同的登录详细信息,或者您尝试使用的数据库尚未安装在要连接的SQL服务器实例上。



你得到的错误信息/异常应该有助于指明你正确的方向,但检查你是否先没有硬编码连接字符串,然后检查在转到其他项目之前,实际字符串是正确的。
Probably, the connection string to the SQL Server instance is not correct for the new PC, but there may be no SQL server installed on it''s LAN, or it may required different login details, or the database you are trying to use has not been installed on the SQL server instance you are connecting to.

The error message / exception you get should help point you in the right direction, but check that you haven''t hardcoded a connection string first, then check the actual string is correct before moving on to the other items.