As part of the proof of concept using the application initialization module for IIS 7.5 to increase the initialization speed of web applications, I created a simple web application hosted on IIS 7.5 (Windows Server 2008 R2) with SSL enabled. The following are global and local settings.
If I understand correctly how the application initialization module works, I expect IIS to issue an appinit.aspx request ( https://localhost/alwaysrunning/appinit.aspx ) to initialize the web application. This, however, never happens.
Any ideas?
What is the purpose of the initializationPage attribute?
Any help with this would be greatly appreciated.
EDIT: When I turn off SSL, the application initialization module issues the appinit.aspx request, as expected. I need to get this to work with SSL support though.
Zen
Global settings in applicationHost.config file:
<add name="appinit" autoStart="true" startMode="AlwaysRunning"> <recycling logEventOnRecycle="Time, Requests, Schedule, Memory, IsapiUnhealthy, OnDemand, ConfigChange, PrivateMemory"> <periodicRestart requests="0" time="00:05:00"> <schedule> <clear /> </schedule> </periodicRestart> </recycling> <processModel identityType="NetworkService" idleTimeout="00:00:00" /> </add> <application path="/alwaysrunning" preloadEnabled="true" applicationPool="appinit"> <virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\alwaysrunnig" /> </application>
Local settings in the web.config application file:
<applicationInitialization remapManagedRequestsTo="splashscreen.htm" skipManagedModules="true" > <add initializationPage="/appinit.aspx" /> </applicationInitialization>
Unclezen
source share