Applicationhost.config未显示更改

问题描述:

我们在Microsoft Azure中托管了一个网络服务器。它是Windows Server 2008 R2 Datacenter版本,64位。

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

对于在此计算机上托管的网站,我需要更改applicationhost.config文件。但是,我最近对IIS所做的更改未显示在配置中。我添加了一个新的应用程序池,并将此特定网站添加到该应用程序池中。我重新启动了网站,文件的修改日期已更新,但应用程序池不存在。

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.

现在我正在 C:\ Windows \ System32 \inetsrv\config ,但 C中还有一个:C:\ Windows \ SysWOW64 \inetsrv \配置,但后者几个月没有更新。

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.

我看错了文件吗?变更是否立即保存?我是否需要完全重新启动IIS而不仅仅是相关网站?

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?

解决方案是以 @RickStrahl 提到,但即使它似乎你也可以用Notepad ++正确打开和编辑 applicationHost.config 或者Visual Studio安装在服务器上并配置为打开 .config 文件,它实际上并没有显示正确的内容!

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!.

我已安装 Notepad2 x64 然后我可以看到我正在寻找的应用程序池。

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

血腥辉煌的微软......:[

Bloody brilliant Microsoft... :[