Login failed for user 'IIS APPPOOL\ASP.NET v4.0'

后端 未结 30 4719
天命终不由人
天命终不由人 2020-11-22 15:52

I have a web project (C# Asp.Net, EF 4, MS SQL 2008 and IIS 7) and I need to migrate it to IIS 7 locally (at the moment works fine with CASSINI).

Locally in IIS I ha

30条回答
  •  被撕碎了的回忆
    2020-11-22 16:12

    You can change the ApplicationPoolIdentity from IIS7 -> Application Pools -> Advanced Settings. AdvancedSettings

    Under ApplicationPoolIdentity you will find local system. This will make your application run under NT AUTHORITY\SYSTEM, which is an existing login for the database by default.

    Edit: Before applying this suggestion you should note and understand the security implications.

提交回复
热议问题