When i upload my asp.net and database files to the server and try to open the website

it works on my laptop but when i upload it on the server does not work and say this :

  The network path was not found
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: The network path was not found

 Source Error:


 Line 58:             using (SqlCommand cmd1 = new SqlCommand("Select word_text from words where word_id = 1", con))
Line 59:             {
 Line 60:                 con.Open(); "That show in red"
 Line 61:                 SqlDataReader dr = cmd1.ExecuteReader();
 Line 62:                 if (dr.Read())

That is my connection string from server:

      Connection string:    workstation id=textdatabase.mssql.somee.com;packet size=4096;user id=Naeemh_SQLLogin_1;pwd=t7xtp3wlad;data source=textdatabase.mssql.somee.com;persist security info=False;initial catalog=textdatabase

That the connection where was in my laptop:

Connection string:Data Source=Q-PC;Initial Catalog=Text;Integrated Security=True

Answers


I forget to change my

connection string in the ASP.NET files

Need Your Help

If Row 2 contains row 1 then copy row 2

excel-vba excel-formula excel-2010 vba excel

I have large spreadsheet from where i want to retain only unique row value and remove the redundant data. This will give me unique combinations of rows using which i have to create DFD