Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The new Application Initialization 1.0 is not working for Win 2008 r2, IIS 7.5

Tags:

iis-7.5

I tried using Application Initialization on both Win 2008 R2, IIS 7.5 and Windows 7, IIS 7. Its not working as expected. I downloaded the x64 version.

Source from applicationhost.config:

<applicationPools>     
    <add name="MyApp" autoStart="true" 
        startMode="AlwaysRunning" 
        managedRuntimeVersion="v4.0"> 
</applicationPools>

<sites> 
    <site name="Default Web Site" id="1" serverAutoStart="true">
        <application path="/MyApp" applicationPool="MyApp"
            preloadEnabled="true">
    </site>
</sites>

Application web.config file:

<system.webServer>
    <applicationInitialization remapManagedRequestsTo="loading.html" 
        skipManagedModules="true">
        <add initializationPage="/default.aspx" />
    </applicationInitialization>
</system.webServer>

Its not having any effect. When I restart IIS and loaded the URL in browser (localhost/.../default.aspx) it didnt showed the loading.html page, neither it looks like the appPool is always running\warmed up.

Also, it didnt showed the multiple instances of w3p process. Its not working.

A small video for configuring Application Initialization module on Windows 7, IIS 7 or Windows 2008 R2, IIS 7.5 would be helpful, because maybe I have missed something.

like image 630
user1233802 Avatar asked Aug 03 '12 12:08

user1233802


2 Answers

We've found that when it is installed it causes a HTTP 500 error on the first request to the web site when the app pool has been restarted on Windows Server 2008 R2 with IIS 7.5

Pretty disappointing, I was hoping that this would be a good module to use but it does seem flaky and we've stopped using it

like image 57
Andrew Hatch Avatar answered Oct 22 '22 22:10

Andrew Hatch


Try this tool:

Application Initialization UI for IIS 7.5

It worked for me (I needed to activate a Web application hosting a WCF service that used net.Tcp, the first call to the service would not activate it since it was not coming on top of the HTTP protocol...so I needed something external to start it up and execute some custom code within App_… event handlers)

like image 45
user2160450 Avatar answered Oct 22 '22 21:10

user2160450