Exception details: System. Data. SqlClient. SqlException: user & #39; nt authority \ IUSR & #39; logon Failure solution, ntauthorityiusr

Source: Internet
Author: User

Exception details: System. Data. SqlClient. SqlException: User 'nt AUTHORITY \ iusr' logon Failure solution, ntauthorityiusr

Recently. net project, because I used to do a lot of java, so. net is not familiar with, after the project is completed deployed to the IIS server, there are many problems, one of the above, if there is time, in the update of other problems solution!

  

Exception details: System. data. sqlClient. sqlException: User 'nt AUTHORITY \ iusr' logon failed or exception details: System. data. sqlClient. sqlException: User 'sa 'logon failed,

 

For various methods, such as web. if the user name and password configured in config are correct, or if windows Identity Authentication in IIS manager is enabled, try the following method.

(Note: If the IIS service of win10 Home edition control panel is not installed with windows identity authentication, you must upgrade the professional edition or above.

 

My solutions are as follows:

I am using Sqlserver 2015. After connecting to the database, double-click NT AUTHORITY \ SYSTEM in security-> Logon Name and set its attributes.

In the following user ing, select the database you want to connect to (my database is Teacher), and then check db_owner at the bottom to confirm.

        

 

If sa fails to log on, make sure that IIS's windows identity authentication is enabled. If you can't solve it, don't draw circles and curse me. Continue searching. After all, there is no problem with one of my two different computers, and the other is the ton problem! The exception persists.

 

 

 

  

 

Related Article

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.