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

  • Home
  • SEARCH
  • 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 6050413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:41:08+00:00 2026-05-23T07:41:08+00:00

I have a WCF service that’s hosted on IIS 7 using a basicHttpBinding .

  • 0

I have a WCF service that’s hosted on IIS 7 using a basicHttpBinding. The service is acting as a controller for other services distrubted on several machines, known as clients.
The service is configured to be Single ContextMode with Multiple ConurrecnyMode. So that it would keep the state of the object. My problem is after a certain period of inactivity, I see the service invoking the constructor again and thus it loses all its state! Any suggestions to make this service live forever?

Thanks!

  • 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-23T07:41:08+00:00Added an answer on May 23, 2026 at 7:41 am

    It sounds like IIS is recycling your service. Keep this in mind (excerpted from Internet Information Services Hosting Best Practices):

    The IIS hosting environment is
    optimized for services that do not
    maintain local state in memory. IIS
    recycles the host process in response
    to a variety of external and internal
    events, causing any volatile state
    stored exclusively in memory to be
    lost. Services hosted in IIS should
    store their state external to the
    process (for example, in a database)
    or in an in-memory cache that can
    easily be re-created if an application
    recycle event occurs.

    While it is possible to disable recycling, if you you need to be IIS-hosted and you care about state, you should probably put it in a durable location.

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

Sidebar

Related Questions

I have WCF service that is IIS-hosted and I have to send binary data
I have a WCF service that is hosted in a windows application. The service
I have a WCF service that uses basicHttpbinding in development. Now in product we
I have a WCF service that is using a custom ServiceAuthorizationManager . The custom
I have a WCF service that is hosted in IIS6. The important part of
I have a WCF service that's consumed via an iPhone application. All other methods
I have a WCF service that is hosted on a c# console application. Is
I have a WCF service that I would like to host in IIS 7.5.
I have a WCF service that is hosted inside a Windows Service. The Windows
I have setup a WCF service that i am running on IIS 7 that

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.