SqlMembershipProvider.GetPasswordWithFormat中的错误

时间:2012-07-19 11:43:39

标签: asp.net-membership

我的asp.net登录页面出现以下错误:

Unable to cast object of type 'System.Int32' to type 'System.String'

堆栈跟踪:

at System.Data.SqlClient.SqlBuffer.get_String()     
   at 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)     
   at System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat)     
   at System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password)     
   at System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e)     
   at System.Web.UI.WebControls.Login.AttemptLogin()     
   at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e)     
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)     
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

每次都不会发生错误。

有什么想法吗?

0 个答案:

没有答案