IIS Error after importing from IIS 7 to IIS 10

I have attempted to migrate sites from an old IIS 7 server onto a new IIS 10 server by using the following appcmd's:

Commands ran to export from IIS 7

appcmd list site /config /xml > "h:\temp\iis export\sites.xml"
appcmd list apppool /config /xml > "h:\temp\iis export\apppools.xml"

Commands ran to import to IIS 10

appcmd add apppool /in < "h:\temp\iis export\apppools.xml
appcmd add site /in < "h:\temp\iis export\sites.xml"

This ran without errors, and the new IIS 10 listed all of the old sites. The configuration files were also altered to reflect a change in file paths and local IPs which were updated without problems.

The problem is that whenever I select a site within IIS, and go to any of the properties (in the below example logging), it throws an error stating that it cannot find the file path for the web.config.

The file path is correct, but there appears to be a \\?\ prepended to the file path. I don't know if this is the reason why this error is occurring, nor how to correct this.

Any suggestions would be grateful! Thanks, Radderz

enter image description here

1
задан 19 June 2017 в 17:34
1 ответ

В этом случае выяснилось, что модуль перезаписи URL для IIS не был установлен.

К сожалению, сообщение об ошибке, выдаваемое, если файл конфигурации содержит элемент, который не установлен, является просто он не может прочитать файл конфигурации, а не то, какой тег был причиной.

2
ответ дан 3 December 2019 в 20:21

Теги

Похожие вопросы