I have built an application in C# . I intend to make a msi installer file using install shield . The application installs and runs fine on my PC when I try to install it somewhere else it gives me a bad error
"Object Reference not set to an instance of an object at run time ."
For the purpose of clarity I would like to explain the first form is a login form . The application runs on my native PC means it is fine running application. But I don't know why does it cause so much trouble.
The Connection String is :
<connectionStrings>
<add name="ConString" connectionString="Data Source=(LocalDB)\v11.0;Initial Catalog=test; AttachDBFileName=D:\test.mdf; Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
For the purpose of ease I have not added any usernames and passwords yet.
I tried many times changing the destination of attached DBFILENAME to |DataDirectory|test.mdf...etc but on the client PC that didn't work either.
Does it mean that I have to install SSMS(SQL Server Management Studio)? That is the only thing I didn't install on the client PC.