SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE

前端 未结 7 2220
无人及你
无人及你 2021-02-08 12:42


When I run web application via VS 2008, the application is able to log onto Sql server and check credentials ( user name and password ) entered by the user, but whe

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-08 13:19

    I recommend creating a service account and have your IIS 7 process run as that account. Make sure that account has proper access to the DB (if it just reads then DB-REader) (if it reads and updates then DB-Reader and DB-Writer).

提交回复
热议问题