Try using ‘HttpContext.Current.Cache’ instead of just ‘Cache’ in your code. The compiler probably wasn’t able to resolve the Cache type.
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.
Share with