User Jb51net Login failed. Reason: The password for this account must be changed _mssql

Source: Internet
Author: User
Tags stack trace management studio

Server error in '/' Application. User ' Jb51net ' login failed. Reason: The password for this account must be changed.
Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.

Exception Details: System.Data.SqlClient.SqlException: User ' jb51net ' login failed. Reason: The password for this account must be changed.

SOURCE Error:

An unhandled exception was generated during the execution of the current WEB request. You can use the following exception stack trace to determine information about the cause of the exception and where it occurred.
Stack trace:

[SqlException: User ' jb51net ' login failed. Reason: The password for this account must be changed. ] System.Data.SqlClient.ConnectionPool.GetConnection (boolean& isintransaction) +552 System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection (sqlconnectionstring options, boolean& isintransaction) +372 System.Data.SqlClient.SqlConnection.Open () +384 BoojobNet.Components.Systems.System_ Parameter_title (String Subid) BoojobNet.Person.Index.efb3613fecfd25e8 () BoojobNet.Person.Index.de97676d01739ced ( Object e0292b9ed559da7d, EventArgs FBF34718E704C6BC) System.Web.UI.Control.OnLoad (EventArgs e) +67 System.Web.UI.Control.LoadRecursive () +35 System.Web.UI.Page.ProcessRequestMain () +750 reasons and resolutions are as follows:
SQL Server 2005 , the 2008 User security mechanism has been upgraded.


When you create a user, if you choose SQL Server Authentication, you add 3 optional policies.
1, the enforcement of password policy,
2, mandatory password expiration,
3, the user must change the password at the next login
Are these policies similar to the user policies of Windows Server?
Create a user is, these policies by default tick, if you remove these policies, created by users directly to the site, there will be the title of the error mentioned: Reason: The account password must be changed.
Fixing this error is simple:
1, through Management Studio to modify the user password (need to use the creation of the account password login, can not use the Windows Authentication login after the change, if not login to take the next step)
2, SA or Windows login to re-create the new user name (must be a new username, previously used are not used), and the password 3 policy options are all canceled, so there will not be to modify the user password problem, you can directly access the


In addition: the system login password and database password can not be the same.

If it's still not working. Suggested reference to this article: http://www.jb51.net/article/70809.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.