ظهرت لى الرسالة التالية عند تشغيل الموقع المحلى
Server Error in '/' Application. 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 30: Dim Cmd As New SqlCommand(sql, conn) Line 31: Line 32: conn.Open() Line 33: Line 34:
Source File: C:\inetpub\wwwroot\new\register.aspx Line: 32
Stack Trace:
والكود هو كالتالى
اقتباس
Dim sql As String = "select username from personal where username= '" & username.Text & "'"
Dim Cmd As New SqlCommand(sql, conn)
conn.Open()
Cmd.ExecuteScalar()
conn.Close()
Session("reg_user") = username.Text
If u_result = username.Text Then
conn.Close()
Response.Redirect("add_advertise.aspx")
منتظرة ردكم
وجزاكم الله كل خير :)