andycharger
Well-known member
- Joined
- Apr 2, 2003
- Messages
- 152
Hi.
Im trying to connect to my SQL SERVER database and im having some troubles.
I get the following message when I press a button on an ASP form to connect.
Server Error in /inet1 Application.
--------------------------------------------------------------------------------
Login failed for user ADMINIT1\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 ADMINIT1\ASPNET.
Source Error:
Line 51: Dim cnSQL As New SqlConnection()
Line 52: cnSQL.ConnectionString = strSql
Line 53: cnSQL.Open()
Line 54:
Line 55: End Sub
Source File: c:\inetpub\wwwroot\inet1\logon.aspx.vb Line: 53
Stack Trace:
[SqlException: Login failed for user ADMINIT1\ASPNET.]
System.Data.SqlClient.SqlConnection.Open()
inet1.logon.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\inet1\logon.aspx.vb:53
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
So there seems to be a problem with my access to the database. I thought i had al lof the permissions set. Can anyone shed any lights as to what it may be.
Im trying to connect to my SQL SERVER database and im having some troubles.
I get the following message when I press a button on an ASP form to connect.
Server Error in /inet1 Application.
--------------------------------------------------------------------------------
Login failed for user ADMINIT1\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 ADMINIT1\ASPNET.
Source Error:
Line 51: Dim cnSQL As New SqlConnection()
Line 52: cnSQL.ConnectionString = strSql
Line 53: cnSQL.Open()
Line 54:
Line 55: End Sub
Source File: c:\inetpub\wwwroot\inet1\logon.aspx.vb Line: 53
Stack Trace:
[SqlException: Login failed for user ADMINIT1\ASPNET.]
System.Data.SqlClient.SqlConnection.Open()
inet1.logon.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\inet1\logon.aspx.vb:53
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
So there seems to be a problem with my access to the database. I thought i had al lof the permissions set. Can anyone shed any lights as to what it may be.