Solution: user 'nt Authority \ Network service' logon Failure ASP. NET Program

Source: Internet
Author: User
Tags management studio sql server management sql server management studio

ASP. NETProgramSolution: User 'nt Authority \ Network service' Logon Failed

In the Asp.net application, Windows authentication is used when connecting to the database. "User 'nt Authority \ Network service' logon Failure" may occur. In SQL Server 2005, the most popular solutions are as follows:

1. Open SQL Server Management studio and connect to the server.

2. Open "security", right-click and select "Login Name", and open "New login name ...".

3. In the pop-up "login name-New" dialog box, on the "General" selection page, click "search..." on the right of "login name ..." Button.

4. In the "select user or group" dialog box that appears, click the "advanced" button.

5. A "select user or group" dialog box is displayed, and click "Search now ".

6. Select an item named "Network Service" in the "search result" list below. Click OK ".

7. Click "OK" again to return to the "Logon Name-New" dialog box. Click OK ".

8. Open the ASP. NET application again. OK.

If not, find the login name nt authority \ Network Service, right-click the attribute, and change the default database and user ing in the displayed interface.

In the user ing window, check the database to be accessed, and then select db_ower in the database role member identity.

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.