Назад | Перейти на главную страницу

Ошибка пулов приложений IIS после обновления с Windows Server 2013 до Windows Server 2016 (или с Win 8.1 до Win 10)

После обновления моей установки Windows с 8.1 до 10 несколько пулов приложений не запускались, и в средстве просмотра событий отображались следующие записи:

Заявка:

Source: IIS-W3SVC-WP
Event ID: 2307
The worker process for application pool '<app pool name>' encountered an error 'Cannot read configuration file' trying to read configuration data from file '\\?\<EMPTY>', line number '0'. The data field contains the error code.

Система:

Source: WAS
Event ID: 5189
The Windows Process Activation Service failed to generate an application pool config file for application pool '<app pool name>'. The error type is '5'. To resolve this issue, please ensure that the applicationhost.config file is correct and recommit the last configuration changes made. The data field contains the error number.

Source: WAS
Event ID: 5203
A process serving application pool '<app pool name>' reported a failure trying to read configuration during startup. The process id was '4120'.  Please check the Application Event Log for further event messages logged by the worker process on the specific error.  The data field contains the error number.

Я нашел много людей, говорящих о необходимости переустановки IIS / WAS, но даже после этого ошибка не исчезла.

По какой-то причине воссоздание пула приложений с другим именем исправит ошибку, но я не хотел, чтобы это было так. После переименования пула приложений обратно в исходное имя он снова начал давать сбой.

После использования отличного Process Monitor для анализа того, какие файлы Служба активации Windows пытался прочитать / создать, я нашел эти файлы и каталоги в C:\inetpub\temp\apppools что процесс обновления Windows, вероятно, испортился. Я удалил эти старые файлы и каталоги и перезапустил пулы приложений.

Теперь все работает нормально!