I'm just starting to learn ASP.NET. The web page I created using sqlConnection to connect SQL Server(MSDE) database, and the database is running on my local machine. When I create my sqlConnection, I chose to use Windows NT integrated security. I tested my connection after I created, it works fine. However, when I try to display the web page, it gives me following error message:
Login failed for user 'ITL25\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 'ITL25\ASPNET'.
Source Error:
Line 133: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Line 134: 'Put user code to initialize the page here
Line 135: SqlDataAdapter1.Fill(DataSet1)
Line 136: DataGrid1.DataSource = DataSet1
Line 137: DataGrid1.DataBind()
Source File: c:\inetpub\wwwroot\myWebApp\DisplayAuthors.aspx.vb Line: 135
I pretty sure that I have the user "ITL25\ASPNET" as the owner of the database.
Could anyone help me on this situation? Thanks a lot!
Kai