IIS 应用程序池无法根据配置文件中指定的凭据创建 Windows 用户令牌

IIS Application pool could not create Windows user token from credentials specified in the config file

我 运行 在一台 IIS 主机上遇到了这个错误,但在另一台 IIS 主机上却没有。两个 IIS 上的应用程序池以相同的方式配置并使用 ApplicationPoolIdentity。出现错误的应用程序池将 "Enable 32-BitApplications" 属性 设置为 false,而另一个 IIS 中的 属性 设置为 true。 Windows 服务器应用程序日志有以下警告:

Event time (UTC): 1/10/2017 9:01:04 PM 
Event ID: 7bf7aa022bc742228e4618bb0f156496 
Event sequence: 2 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/4/ROOT/CMT-12-131285556603923859 
    Trust level: Full 
    Application Virtual Path: /MyApp 
    Application Path: E:\Staging\MyApp\ 
    Machine name: WebServerName 
 
Process information: 
    Process ID: 3048 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\Staging 
 
Exception information: 
    Exception type: ConfigurationErrorsException 
    Exception message: An error occurred executing the configuration section handler for system.web/identity.
   at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
   at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)

Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'The user name or password is incorrect.
' (E:\Staging\myApp\web.config line 144)

抱歉发帖。我忽略了 web.config 中的凭据。已解决。