-2
내 노트북에서 작동하지만 난이 서버에 업로드 할 때 작동이 말을하지 않는 열려고하면 :난 서버에 내 asp.net 및 데이터베이스 파일을 업로드하고 웹 사이트
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())
에게 그 서버에서 내 연결 문자열입니다 :
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
그건 내 노트북에 있던 연결 :
Connection string:Data Source=Q-PC;Initial Catalog=Text;Integrated
Security=True
그것은 수 있습니다 해당 데이터베이스 연결이 올바르지 않습니다 변경하는 것을 잊지. – Win
확실합니다. – Naeem
그것은 con.Open()를 씁니다; 서버에서 열면 빨간색으로 나타납니다. – Naeem