Cache Items Live Site Error

Rory Aherne asked on July 23, 2025 14:22

Trying to access the live site cache and it gives me the following error:

No MediaTypeFormatter is available to read an object of type 'IEnumerable`1' from content with media type 'text/html'.

Source Error:

Line 32:     protected async Task ReloadData()
Line 33:     {
Line 34:         var keyList = ShowLiveSiteData ? await new LiveSiteDebugProcessor().GetAllCacheItemsAsync() : CacheHelper.GetCacheItemRows();
Line 35: 
Line 36:         keyList = keyList?.OrderBy(g => g.Key);

Source File: E:\Hosting\dedev-de-k13rah-test\admin\CMS\CMSModules\System\Debug\System_DebugCacheItems.aspx.cs Line: 34

Stack Trace: [UnsupportedMediaTypeException: No MediaTypeFormatter is available to read an object of type 'IEnumerable1' from content with media type 'text/html'.] System.Net.Http.HttpContentExtensions.ReadAsAsync(HttpContent content, Type type, IEnumerable1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken) +933 System.Net.Http.HttpContentExtensions.ReadAsAsync(HttpContent content, Type type, IEnumerable1 formatters, IFormatterLogger formatterLogger) +87 System.Net.Http.HttpContentExtensions.ReadAsAsync(HttpContent content, IEnumerable1 formatters) +100 CMS.Base.Web.UI.

   Please, sign in to be able to submit a new answer.