G
Guest
I am a beginner in web developtment in asp.net using visual basic.net. i was trying to access data in SQL 2000 and display it in a datagrid/listbox, but I kept on getting the same message from the browser :
Server Error in '/Sample2' Application.
--------------------------------------------------------------------------------
Login failed for user '7117FHGZ0411\ASPNET'.
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.Data.SqlClient.SqlException: Login failed for user '7117FHGZ0411\ASPNET'.
Source Error:
Line 111: ("SELECT Lname FROM Employess", SqlConnection1)
Line 112: Dim drCities As SqlDataReader
Line 113: SqlConnection1.Open()
Line 114: drCities = cmdCities.ExecuteReader()
Line 115: lstcities.DataSource = drCities
Server Error in '/Sample2' Application.
--------------------------------------------------------------------------------
Login failed for user '7117FHGZ0411\ASPNET'.
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.Data.SqlClient.SqlException: Login failed for user '7117FHGZ0411\ASPNET'.
Source Error:
Line 111: ("SELECT Lname FROM Employess", SqlConnection1)
Line 112: Dim drCities As SqlDataReader
Line 113: SqlConnection1.Open()
Line 114: drCities = cmdCities.ExecuteReader()
Line 115: lstcities.DataSource = drCities