this is the DSN connection string in web.confi
<add key="DSN" value="server=l ocalhost;databa se=userDB;Integ rated Security=SSPI" /
any idea regarding what is causing this following error message when the connection object trys to open
tia
d
Server Error in '/FormsAuth' Application
-------------------------------------------------------------------------------
Login failed for user 'CHODRON\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.Sql Client.SqlExcep tion: Login failed for user 'CHODRON\ASPNET '
Source Error:
Line 95: strCn=System.Co nfiguration.Con figurationSetti ngs.AppSettings["DSN"].ToString()
Line 96: SqlConnection cn=new SqlConnection(s trCn)
Line 97: cn.Open()
Line 98: tr
Line 99:
Source File: c:\inetpub\wwwr oot\formsauth\u serdb.cs Line: 97
Stack Trace:
[SqlException: Login failed for user 'CHODRON\ASPNET '.
System.Data.Sql Client.Connecti onPool.GetConne ction(Boolean& isInTransaction
System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledConn ection(SqlConne ctionString options, Boolean& isInTransaction
System.Data.Sql Client.SqlConne ction.Open(
FormsAuth.UserD B.SaveNewUser(S tring UserName, String LastName, String FirstName, String email, String PasswordHash, String Salt, Boolean MustChangePassw ord) in c:\inetpub\wwwr oot\formsauth\u serdb.cs:9
FormsAuth.User. SaveNewUser(Str ing UserName, String LastName, String FirstName, String email, String Password, Boolean MustChangePassw ord) in c:\inetpub\wwwr oot\formsauth\u ser.cs:16
FormsAuth.Regis ter.Button1_Cli ck(Object sender, EventArgs e) in c:\inetpub\wwwr oot\formsauth\r egister.aspx.cs :7
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +10
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring eventArgument) +5
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +1
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +3
System.Web.UI.P age.ProcessRequ estMain() +127
<add key="DSN" value="server=l ocalhost;databa se=userDB;Integ rated Security=SSPI" /
any idea regarding what is causing this following error message when the connection object trys to open
tia
d
Server Error in '/FormsAuth' Application
-------------------------------------------------------------------------------
Login failed for user 'CHODRON\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.Sql Client.SqlExcep tion: Login failed for user 'CHODRON\ASPNET '
Source Error:
Line 95: strCn=System.Co nfiguration.Con figurationSetti ngs.AppSettings["DSN"].ToString()
Line 96: SqlConnection cn=new SqlConnection(s trCn)
Line 97: cn.Open()
Line 98: tr
Line 99:
Source File: c:\inetpub\wwwr oot\formsauth\u serdb.cs Line: 97
Stack Trace:
[SqlException: Login failed for user 'CHODRON\ASPNET '.
System.Data.Sql Client.Connecti onPool.GetConne ction(Boolean& isInTransaction
System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledConn ection(SqlConne ctionString options, Boolean& isInTransaction
System.Data.Sql Client.SqlConne ction.Open(
FormsAuth.UserD B.SaveNewUser(S tring UserName, String LastName, String FirstName, String email, String PasswordHash, String Salt, Boolean MustChangePassw ord) in c:\inetpub\wwwr oot\formsauth\u serdb.cs:9
FormsAuth.User. SaveNewUser(Str ing UserName, String LastName, String FirstName, String email, String Password, Boolean MustChangePassw ord) in c:\inetpub\wwwr oot\formsauth\u ser.cs:16
FormsAuth.Regis ter.Button1_Cli ck(Object sender, EventArgs e) in c:\inetpub\wwwr oot\formsauth\r egister.aspx.cs :7
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +10
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring eventArgument) +5
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +1
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +3
System.Web.UI.P age.ProcessRequ estMain() +127
Comment