Hi all
I am doing the exercise in asp.net Databases (Chapter 3 of Beginning ASP.NET Databases using
VB.Net )where we connect to an MSDE database. However, I have SQL Server 2000 installed, and I am getting an error as detailed here
The web config contents include :-
Web.config
<appSettings>
<add key="Nwind"
value="server=(local);database=northwind;integrate d security=true;"/>
</appSettings> etc etc
Error message
Login failed for user 'STN1\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 'STN1\ASPNET'.
Source Error:
Line 32: Dim objCommand As New SQLCommand(strSQL, objConnection)
Line 33:
Line 34: objConnection.Open()
Line 35:
Line 36: Response.Write("ServerVersion: " & objConnection.ServerVersion & _
================================================== =============
The ASP page produces an error :-
Source File: C:\BegASPNETdb\webroot\ch03\SQLServer_connection.a spx Line: 34
Stack Trace:
[SqlException: Login failed for user 'STN1\ASPNET'.]
System.Data.SqlClient.SqlConnection.Open() +761
ASP.SQLServer_connection_aspx.Page_Load(Object Source, EventArgs E) in C:\BegASPNETdb\webroot\ch03\SQLServer_connection.a spx:34
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724
================================================== ===========
I am wondering why the user has failed to log in when the security in the web.config is set to Integrated?
Any ideas anyone ?
Many Thanks
Ray