Я запускаю эту ошибку на одном хосте IIS, но не на другом хосте IIS. Пул приложений на обоих IIS настроен таким же образом и использует ApplicationPoolIdentity. У пула приложений, у которого есть ошибка, свойство «Включить 32-битные приложения» установлено равным false, тогда как свойство в другом IIS установлено равным true. Windows Server Application Log имеет следующее предупреждение:Пул приложений IIS не смог создать токен пользователя 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)