Tuesday, 20 August 2013

vb Cannot run program on another computer

vb Cannot run program on another computer

I have made a program using visual basic 2010, which contains a database.
When I copy my program across to another computer and attempt to debug it,
I get the following error message:
An unhandled exception of type 'System.Data.SqlClient.SqlException'
occurred in System.Data.dll
Additional information: Login failed for user 'Aaron\Aaron'.
And the following line of code is highlighted within the form load sub:
Me.Table1TableAdapter.Fill(Me.Database1DataSet1.Table1)
When I publish the program it also fails to run on any computer other than
the one I created it on.
Any help would be much appreciated as I'm still very new to programming,
thank you.

No comments:

Post a Comment