Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

help!!! Login failed for user .

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken - 01 Feb 2008 20:18 GMT
I used two datasource but same connectionstring.
When I used to retrieve data then it works fine (impersonation correctly).
However, when I used login asp.net control, it returned an error (below).
"Login failed for user 'USERNAME'".

Anyone has idea why I got this???

================

 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject) +437
  System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
owningConnection) +82
  System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory) +105
  System.Data.SqlClient.SqlConnection.Open() +111
  System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context,
Boolean revertImpersonate) +84
  System.Web.DataAccess.SqlConnectionHelper.GetConnection(String
connectionString, Boolean revertImpersonation) +197
  System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String
username, Boolean updateLastLoginActivityDate, Int32& status, String&
password, Int32& passwordFormat, String& passwordSalt, Int32&
failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount,
Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate)
+1121
  System.Web.Security.SqlMembershipProvider.CheckPassword(String username,
String password, Boolean updateLastLoginActivityDate, Boolean
failIfNotApproved, String& salt, Int32& passwordFormat) +105
  System.Web.Security.SqlMembershipProvider.CheckPassword(String username,
String password, Boolean updateLastLoginActivityDate, Boolean
failIfNotApproved) +42
  System.Web.Security.SqlMembershipProvider.ValidateUser(String username,
String password) +83
  System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e)
+160
  System.Web.UI.WebControls.Login.AttemptLogin() +105
  System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e)
+99
  System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
  System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
+163
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +7
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +11
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
  System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Peter Bromberg [C# MVP] - 02 Feb 2008 00:15 GMT
Well, you haven't provided any information about either what your connection
string looks like or what kind of authentication you are using. But one thing
is for sure - whatever credentials you are getting from the login control,
they aren't getting you into your database. So the solution should be
self-evident.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com 

> I used two datasource but same connectionstring.
> When I used to retrieve data then it works fine (impersonation correctly).
[quoted text clipped - 46 lines]
>    System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.