Quantcast
Channel: Application Initialization Module
Viewing all 109 articles
Browse latest View live

doAppInitAfterRestart and initializationPage not working on IIS 8.5

$
0
0

I'm use asp.net mvc6 on IIS 8.5, set the app pool to Always running. set the website to auto preload = true already.

but only when the IIS recycle , it will fired the Application_Start() on global.asax.

but when I start, restart website or modify web.config. it not fired Application_Start() on global.asax. 

even I set the initializationPage and doAppInitAfterRestart=true.  it newer send fake request when start, restart, or modify web.config.

<applicationInitialization doAppInitAfterRestart="true">
<add initializationPage="/a=initial_auto" />
</applicationInitialization>

I really don't understand. Why we should wait the user send first request?  You guys all know, the IIS first request will take very very long time.  Why we just don't let it auto send a request , then user access more fast after that.

I just want to it firing the Application_Start() on global.asax.  because I can add some fake request myself. I even don't need IIS send fake request.   I just want to website no matter start , restart, or modify web.config. or rebuild, recycle . it always can firing Application_Start().

Why the Microsoft don't do that? wake up Microsoft.


How To: Using Application Initialization for Multi-Server Environment with IIS 7.5

$
0
0

Hello Forum,

I have a meduim SharePoint 2013 environment (2 Application Servers & 4 Web Front-End Servers) which all are running on Windows Server 2008 R2 and IIS 7.5

I have been doing some research to optmize the performance of my SharePoint sites, and I come accross this interesting article: http://blog.concentra.co.uk/2013/04/23/iis-application-initialisation-sharepoint-2013/

Which explains the benefits of using Application Initialization.

I think, I would like to use it. Nevertheless, I am using IIS 7.5 which means I guess I have to download Application Initialization Module for IIS 7.5 from: http://www.iis.net/downloads/microsoft/application-initialization

My questions are:

1) Should I download and install the Application Initialization Module for IIS 7.5 on ALL my 6 servers ? Or, Just one? Or, How?

2) Any experiences to share about using it for SharePoint environment? Does it really help significantly?

I would greatly appreciate your inputs !

Using Application Initialization for warming up WCF service

$
0
0

Hi,

We are currently using AppFabric Auto-Start feature for warming up applications that contain WCF web services.

Since this is the only AppFabric feature we are using and we are upgrading to IIS  8.0, we would like to use the Application Initialization instead.

1) Would be happy to know if there are any known differences between these solutions.

2) I was able to set up initialization for the example project: http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-application-initialization. But when I set the same settings for my WCF service there is no warmup. I think this is because the warmup is done by issuing a request tohttp://localhost/MyService/ and this doesn't actually reach the service. I need the warmup request to be done tohttp://localhost/MyService/Service.svc - is there a way to configure this?

Thanks.

Is Application Initialization not support .net 4.5.1 ?

$
0
0

exactly same config setting.  but my .net 4.5 website will initial (firing application_start() method) when IIS recylce.

but another website .net 4.5.1 mvc5 + ef 6  can't .... I don't understand why. I already check it a lot of time.

Is that a BUG?

I'm use windows server 2012 r2 + IIS8.5

Application Initialization isn't working

$
0
0

I have been trying to solve this problem for a while. I can't get this feature to work correctly.

SSL is not set on this site. There are bindings to both the SSL and the regular port.  I have a log that records when the Application_Start() method has finished. I don't see the site being hit.

The pool is configure to always run, and the site has the Preload Enabled set to True. The first option in the Default Page is set to the initializing Page.

I am running IIS 8.5.

This is the one configuration line that I have   <applicationInitialization >
      <add initializationPage="Accounts/Start" />
    </applicationInitialization>

web.config does not recognize tag

$
0
0

Hi,

I'm trying to use application initialization with IIS 7.5  running on windows 7.

I was following the step-by-step instructions that Shaun Eagan posted here: http://learn.iis.net/page.aspx/1089/iis-80-application-initialization/,

and yet, it seems that nothing's really happening. The app init tag is not recognized in the web.config file of the application i use.

My local site is available and loads the first page, but there is no initialization, that supposed to be called in a different page.

Of course, I installed the 64 bit version of the app init msi, that matches my platform.

what indicators can I look for locally, to know that the module was integrated successfully into the system and the IIS?

Thanks,

 Danny

 

Why does IIS Express Restart my App Pool in MVC Application

$
0
0

I have a fairly complex MVC Application which must initialize when the Application starts. I am trying to diagnose why the App pool is restarting after the first MVC page is rendered. To diagnose this issue, I put break points on Application_Start and Application_End. Applicaiton_Start is called as expected. At the end of the first returned HTML/Razor page from my application, Application_End is called. On the next page request, Application_Start get called again, and then seems to run as expected without restarting.

I thought this was caused by Razor compiling the views at runtime, which would then updating the BIN foldee.  I know that IIS and IIS Express restart the APP pool when the BIN folder is updated, so I assumed this MVC Razor compllation was causing the IIS process to restart the app pool. To mitigate this, I followed the instructions here: https://chrismckee.co.uk/asp-net-mvc-compiled-views/ to pre-compile my Razor views. I know that the vies are now pre-compiled, as this did locate several compile issues [compile errors] that would not have been found until runtime without these configuration changes resulting in the pre-complication of the Razor views.

So the question is this:

1) How Can I diagnose why the app pool is restarting?

2) Does anyone know why this happens in and MVC application running in IISExpress?

   [... and obviously, how to prevent it from happening]

Thanks

jloper

Why does replacing IIS website not preload?

$
0
0

I 'm trying to establish IIS 8 new feature Application Initialization

All configuration items for IIS preload have been set.

I have set startmode = AlwaysRunning, doAppinitAfterRestart=true

skipManagedManagedModules=false

but my code in Global.asax does not run even if i replaced my web.config

which seems not triggering a real re-init after i changed my binary of my website in disk

why???

My environment is window server 2012 ,iis8.0


Why does IIS Express Restart my App Pool in MVC Application

$
0
0

I have a fairly complex MVC Application which must initialize when the Application starts. I am trying to diagnose why the App pool is restarting after the first MVC page is rendered. To diagnose this issue, I put break points on Application_Start and Application_End. Applicaiton_Start is called as expected. At the end of the first returned HTML/Razor page from my application, Application_End is called. On the next page request, Application_Start get called again, and then seems to run as expected without restarting.

I thought this was caused by Razor compiling the views at runtime, which would then updating the BIN foldee.  I know that IIS and IIS Express restart the APP pool when the BIN folder is updated, so I assumed this MVC Razor compllation was causing the IIS process to restart the app pool. To mitigate this, I followed the instructions here: https://chrismckee.co.uk/asp-net-mvc-compiled-views/ to pre-compile my Razor views. I know that the vies are now pre-compiled, as this did locate several compile issues [compile errors] that would not have been found until runtime without these configuration changes resulting in the pre-complication of the Razor views.

So the question is this:

1) How Can I diagnose why the app pool is restarting?

2) Does anyone know why this happens in and MVC application running in IISExpress?

   [... and obviously, how to prevent it from happening]

Thanks

jloper

Viewing all 109 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>