Hello,
I'm trying to get the example at
http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-application-initialization to work on my Win7/IIS 7.5 machine. According to Shaun:The Application Initialization feature requires IIS 8.0 to be installed. However, elsewhere I've read that it was compatible with IIS 7.5. I was able to install the Application Initialization feature, and it shows up in Internet Information Services
Manager / Web Platform Installer as Application Initialization 1.0. I also installed URL Rewrite 2.0 and it shows up as being installed.
I didn't have a pre-existing ".NET v4.5" application pool, so I created one that targets .NET Framework v4.0.30319 and using Integrated pipeline mode. to my applicationHost.config file I added:
<add name=".NET v4.5" autoStart="true" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated" />
and
<application path="/appinit" applicationPool=".NET v4.5"> <virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\appinit" /> </application>
and
<rewrite>
<allowedServerVariables>
<add name="SKIP_MANAGED_MODULES" />
</allowedServerVariables>
</rewrite>
In my web.config I added:
<applicationInitialization
remapManagedRequestsTo="Startup.htm"
skipManagedModules="true" >
<add initializationPage="/default.aspx" />
</applicationInitialization>
So, at this point, I believe that my site should match the example just above the "Configuring overlapped process recycling" section.
However, if I hit http://localhost/appinit/default.aspx, I get a 500.19 - Internal Server Error (Error Code: 0x8007000d).
If I comment out the applicationInitialization stuff in my web.config like so:
<!--
<applicationInitialization
remapManagedRequestsTo="Startup.htm"
skipManagedModules="true" >
<add initializationPage="/default.aspx" />
</applicationInitialization>
-->
I see the http://localhost/appinit/default.aspx just fine. I've been doing most of my .config file editing in Notepad++, however if I open the web.config in Visual Studio 2012, it complains about the <rewrite>
tag, saying:
The element system.webServer has invalid child element rewrite. List of possible elements expected: asp, caching, cgi, defaultDocument, directoryBrowse, globalModules, handlers, httpCompression, webSocket, httpErrors, httpLogging, httpProtocol, httpRedirect,
httpTracing, isapiFilters, modules, applicationlnitialization, odbcLogging, security, serverRuntime,, serverSidelnclude, staticContent,, tracing, uriCompression, validation, management.
Oddly, if I uncomment out the <applicationInitialization> stuff it doesn't complain about that, although that's causing my website to throw the 500.19 that I wrote about above.
I looked in my C:\Windows\System32\inetsrv\config\schema directory and I see both appwarmup_schema.xml and rewrite_schema.xml.
-Lance