Home » FAQ » ASP.NET » Output Caching » Why do I get the error message ‘Exception Details: System.Web.HttpException: Cache is not available ‘
Try using ‘HttpContext.Current.Cache’ instead of just ‘Cache’ in your code. The compiler probably wasn’t able to resolve the Cache type.
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with