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 8922871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:57:29+00:00 2026-06-15T06:57:29+00:00

We have an existing asp.net 4.0 website that uses the HttpRuntime.Cache for a lot

  • 0

We have an existing asp.net 4.0 website that uses the HttpRuntime.Cache for a lot of things. It was created like this before I started working on it and now we’re having problems with the cache being cleared and the website falling over because it always expects the cache to be there (I know… what did they think a cache was!?).

So what I need is a replacement cache that is permanent so I can swap it for the HttpRuntime.Cache with no impact to the website. I’ve looked at serialization but not all the objects are serializable and it’s not an option to make them all serializable (there are way too many of them scattered all over).

Is there a way to save any in memory object/variable/whatever to disk, and read it later, without having to serialize it?

Update:

Thanks for your comments and answer so far. Starting with your ideas I did some more Googling and came across this article that demonstrates (with an example solution you can download) how to use your own custom caching provider in .Net 4.0. I haven’t been able to integrate it into our web application and give it a proper test yet (hopefully later today I’ll be able to) but I thought I’d put it here to see if you have any thoughts about it… so what do you think, any caveats I should be aware of? Or is this a viable (and very temporary) solution?

File-Based Cache for Web and non-Web Apps plus Extend ASP.NET 4.0 OutputCacheProvider

  • 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-06-15T06:57:30+00:00Added an answer on June 15, 2026 at 6:57 am

    This link did work, so it’s going to be my answer. Thanks for everyone’s help!

    File-Based Cache for Web and non-Web Apps plus Extend ASP.NET 4.0 OutputCacheProvider

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

Sidebar

Related Questions

I have an existing asp.net mvc website that uses basic forms authentication. The site
I have an existing ASP.NET website that I would like to port to Azure
I have an existing Web Site that uses multiple ASP .Net Web Forms projects.
I have an existing ASP.NET website which I would like to painlessly add CMS
I have an existing ASP.NET website with some custom routing, within a Solution that
I have a problem with an existing ASP.Net Mobile Website that current renders correctly
I am having trouble adding ajax functionality to existing asp.net 4 website. I have
I have an existing 32-bit ASP.NET application that used 32-bit unmanaged DLLs. If I
I have a silverlight application that I am embedding in an existing ASP.NET web
I am working with an existing ASP.NET/C# website that has a new requirement: when

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.