Login failed for user "NT AUTHORITY \ NETWORK SERVICE"

I tried to open the website from a browser. The project is deployed to the IIS server.

I get this exception:

Exception Information:

Exception Type: SqlException

Exception message: Cannot open the database "TestDB" requested by the login. Login failed.

Login failed for user "NT AUTHORITY \ NETWORK SERVICE".

Any solution?

+3
source share
1 answer

IIS application runs under NT AUTHORITY \ NETWORK SERVICE account

You can use Windows authentication and impersonation http://msdn.microsoft.com/en-us/library/aa292118%28VS.71%29.aspx

Windows ( NT AUTHORITY\NETWORK SERVICE SQL Server, IIS ).

SQL ( ) web.config

+3

Source: https://habr.com/ru/post/1739971/


All Articles