I almost finished my program, it runs fine on my computer. However when I try it on virtual machine (Win7) I'm getting error, Here's a screenshot:
UPDATE 2:
UPDATE 1: Here's full error output: https://gist.github.com/nikel/1356be52475e4515707638ed97402790
And this error:
Object reference not set to an instance of an object
I defined attachdbfilename like this:
private void Form1_Load(object sender, EventArgs e)
{
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder();
builder.DataSource = @"(LocalDB)\MSSQLLocalDB";
builder.AttachDBFilename = @"|DataDirectory|\database\gazi_db.mdf";
builder.IntegratedSecurity = true;
builder.ConnectTimeout = 30;
sqlConnection = new SqlConnection(builder.ConnectionString);
...
How can I fix this?