Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1038781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:01:06+00:00 2026-05-16T15:01:06+00:00

we are hosting a WCF service inside IIS 6. A ServiceHostFactory creates the ServiceHost

  • 0

we are hosting a WCF service inside IIS 6. A ServiceHostFactory creates the ServiceHost when the first request to a service appears. In the OnOpening() Method of the ServiceHost, we load some data into a cache implemented as a static property.

Since loading the data takes about 1 minute we do not want the “first user of the day” to wait for the cache to be filled. The problem is that the ServiceHost and thus the cache are killed with each recycling of the ApplicationPool. Is there any possibility to detect a recycling and refill the cache? Or are there other best practices? I can’t believe we are the only ones with this problem…

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:01:06+00:00Added an answer on May 16, 2026 at 3:01 pm

    For hosting web applications or services with long startup time in IIS 6.0 I always used simple console application which was pinging the web application. This application was run by windows scheduler every few minutes. It is not the nice solution but it was the easiest I found. If you are sure about AppPool recycling time, you can schedule such application to run few minutes after recycling and also add application to startup set.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm hosting my first WCF service in IIS. I have two methods, 1 to
I am having some trouble hosting a WCF service inside a Windows Service. I
When hosting a WCF service on IIS you have an option of manually configuring
I created a wcf service based on ServiceHostFactory, and i'm hosting it in IIS6.
Background: We are hosting a .NET 4.0 Windows Workflow activity inside a WCF service
I am hosting a WCF service inside of a WPF app. I would like
I'm hosting a WCF service inside a winform app. I want to monitor when
Log4Net doesn't write when iis hosting a WCF Service. it works great when i
I am hosting a WCF service in IIS. Randomly lately I have been getting
I was watching a video from plural-sight on hosting a WCF service in IIS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.