Using Application Initialization for warming up WCF serviceRSS

5 replies

Last post Dec 23, 2014 04:07 AM by tamarel

  • Using Application Initialization for warming up WCF service

    Mar 19, 2013 08:37 AM|tamarel|LINK

    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 to http://localhost/MyService/ and this doesn't actually reach the service. I need the warmup request to be done to http://localhost/MyService/Service.svc - is there a way to configure this?

    Thanks.

  • Re: Using Application Initialization for warming up WCF service

    Mar 20, 2013 10:12 AM|Perkinsville|LINK

    Hi,

    Create a URL Rewrite rule that will look for the request http://localhost/MyService and redirect it to http://localhost/MyService/Service.svc .

    HTH, Benjamin

  • Re: Using Application Initialization for warming up WCF service

    Apr 10, 2013 03:38 AM|tamarel|LINK

    Perkinsville

    Create a URL Rewrite rule that will look for the request http://localhost/MyService and redirect it to http://localhost/MyService/Service.svc .

    This works. Thanks.

  • Re: Using Application Initialization for warming up WCF service

    Jun 03, 2014 09:44 AM|TBoe|LINK

    Hi,

    I have an issue similar to the one described above: I want to make a call to a WCF containing my application warmup logic. My web.config looks like this:

        <applicationInitialization skipManagedModules="true" >
          <add initializationPage="ApplicationWarmup/ApplicationWarmupService.svc" />
        </applicationInitialization>   
    

    I put the warmup into the constructor of the ApplicationWarmup.cs as I could not find a way to adress a mthod within the class to be called by the warmup module. However, the warmup never occurs. Could anyone spare ma sone details on how to invoke warmup logic contained in a WCF service?

    Thanks.

  • Re: Using Application Initialization for warming up WCF service

    Dec 17, 2014 02:02 PM|bhagzilla|LINK

    HeyCan I know how u achieved it via url rewrite and exactly in which function did you put the warmup code in the service.svc.cs file?

    real problem here in implementing the same. Thanks in advance Smile

    wcf ApplicationInitialization IIS8.0

  • Re: Using Application Initialization for warming up WCF service

    Dec 23, 2014 04:07 AM|tamarel|LINK

    Hi,

    This was a while ago and even though we got it to work, we felt it was not a straigt-forward solution so we stuck with AppFabric warmup.

    As written above, we directed http:\\server\service to http:\\server\service\service.svc.

    We put the warmup code in the service constructor.

    Hope this helps.

    wcf ApplicationInitialization IIS8.0