Applicationhost.config does not show changes

We have a web server hosted in Microsoft Azure. This is a version of Windows Server 2008 R2 Datacenter, 64 bit.

For a website hosted on this computer, I need to make changes to the applicationhost.config file. However, recent changes made by IIS are not displayed in the config. I added a new application pool and added this particular website to this application pool. I restarted the website, updated the "Date modified" file, but the application pool is missing.

Now I am editing the file in C:\Windows\System32\inetsrv\config, but there is also one in C:\Windows\SysWOW64\inetsrv\Config, but the latter has not been updated for several months.

Am I looking at the wrong file? Have the changes changed right away? Do I need to completely restart IIS, and not just the corresponding website?

+3
source share
2 answers

The solution was to restart IIS as @RickStrahl, but even if it seems , you can open and edit it correctly applicationHost.configusing Notepad ++ or Visual Studio installed on the server and configured to open the .configfiles, it does not show you the correct content! .

I installed Notepad2 x64, and then I saw the application pool that I was looking for.

Bloody brilliant Microsoft ...: [

+5
source

The real problem is that there are two inetsvr directories: one for 32 bits and the other for 64 bits. The 32-bit version, probably sleeping and not updated, is under SysWOW64 !!!

%SystemDrive%\Windows\System32\inetsrv 32- , Windows , , %SystemDrive%\Windows\SysWOW64\inetsrv, , . ?

64- , Notepad ++, "" .

() 64- , 32- (, Visual Studio).

cd /d "%SystemDrive%\Windows\SysWOW64\inetsrv"
move Config Config.OLD
mklink /d Config "%SystemDrive%\Windows\System32\inetsrv\Config"
+4

All Articles