Search code examples
iiswindows-server-2008application-poolapplicationhost

Applicationhost.config not showing changes


We have a webserver hosted in Microsoft Azure. It's a Windows Server 2008 R2 Datacenter edition, 64 bit.

For a website hosted on this machine, I need to make changes to the applicationhost.config file. However, changes I made to IIS recently are not shown in the config. I've added a new application pool and added this specific website to that application pool. I restarted the website, the 'Date Modified' of the file is updated, but the application pool is not present.

Right now I'm editing the file in C:\Windows\System32\inetsrv\config, but there's also one in C:\Windows\SysWOW64\inetsrv\Config, but the latter hasn't updated for months.

Am I looking at the wrong file? Are changes not saved right away? Do I need to restart IIS completely and not just the relevant website?


Solution

  • The solution was to restart IIS as @RickStrahl mentioned, but even though it seems you can properly open and edit the applicationHost.config with Notepad++ or the Visual Studio installed on the server and configured to open .config files, it's not actually showing you the correct content!.

    I installed Notepad2 x64 and then I could see the application pool I was looking for.

    Bloody brilliant Microsoft... :[