« Previous Next »

Answered Thread: Can autostart WCF thru IIS 6.0 rather than message-based activation?

Last post 07-10-2009 4:18 PM by tomkmvp. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 07-10-2009, 2:10 PM

    Can autostart WCF thru IIS 6.0 rather than message-based activation?

    One feature of IIS 6 is message-based activation.  We would like to host a WCF service thru IIS 6 that has a long-running thread component that needs to run all the time, in addition to accepting http SSL web requests.  This does not seem to be possible, since IIS 6 seems to only run in message-activation mode, there is no mode where IIS will automatically start a hosted WCF service when the containing web application starts.  Or, is there?  It seems without it, IIS is only a web container, not a larger-scope service container. And we then cannot make use of IIS's reliability features (process recycling, health monitoring) that make IIS the advertised preferred platform for WCF services.

    Implementing a "hack" of an external process to poke the service (send a request) to make IIS activate the hosted WCF service is not an acceptable option. The whole point of using IIS is to make it reliable enterprise solution.

    Would like to know if we are missing something in this picture..

  • 07-10-2009, 4:18 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,244
    • IIS MVPs

    Answered Re: Can autostart WCF thru IIS 6.0 rather than message-based activation?

    WCFHacker:
    We would like to host a WCF service thru IIS 6 that has a long-running thread component that needs to run all the time

    That's not really what web servers do.

    WCFHacker:
    IIS is only a web container, not a larger-scope service container

    Correct.

    WCFHacker:
    Would like to know if we are missing something in this picture

    I think what you're missing is that the whole http model is stateless and not designed for long running processes. 

Page 1 of 1 (2 items)
Microsoft Communities