Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7.5, App pool not in applicationHost.config

Tags:

iis-7.5

I am running IIS 7.5 on Windows Server 2008 R2 x64. I added a new app pool via the iis manager and wanted to set the autostart and startmode options in the applicationHost.config file. However, the new app pool is not appearing in either of the applicationHost config files (%WINDIR%\System32\inetsrv\Config and %WINDIR%\SysWOW64\inetsrv\config). The app pool has an application added to it (the application is still listed under the old app pool in the config files, though it is correct in the iis management snap-in). I have run iisreset several times and completely restarted the server.

Does anyone know if these config files are cached somewhere else that may not be refreshing or anything else that may cause this behavior?

like image 840
JMorgan Avatar asked Oct 03 '11 15:10

JMorgan


People also ask

How do I enable 32-bit application pool in IIS 7?

Go to Websites & Domains > Dedicated IIS Application Pool for Website. Select the “Enable 32-bit applications” checkbox and then click OK.

Where is ApplicationHost config for IIS?

The configuration files for IIS 7 and later are located in your %WinDir%\System32\Inetsrv\Config folder, and the primary configuration files are: ApplicationHost. config - This configuration file stores the settings for all your Web sites and applications.


2 Answers

I opened the file using notepad++ with "Run as Administrator". I spent nearly an hour trying to figure out what was going on. I just couldn't see the binding. Turns out, the only way to edit applicationHost.config is to start Notepad (not notepad++) using "Run as Administrator" and open the file. Only then you will see the actual content of the file.

like image 57
Oxon Avatar answered Nov 16 '22 19:11

Oxon


I'm not sure why this would occur, but I accessed the applicationHost.config from another machine via the admin share and the information was there and editable.

like image 20
JMorgan Avatar answered Nov 16 '22 18:11

JMorgan