Server Error in '/' Application.

Unable to cast object of type 'WarcDataObjects.ArticleContentItem' to type 'WarcDataObjects.NewsContentItem'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type 'WarcDataObjects.ArticleContentItem' to type 'WarcDataObjects.NewsContentItem'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidCastException: Unable to cast object of type 'WarcDataObjects.ArticleContentItem' to type 'WarcDataObjects.NewsContentItem'.]
   System.Linq.<CastIterator>d__97`1.MoveNext() +207
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +463
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +69
   WARC.ContentURLHandler.GetNewRedirectUrl(String guid) in E:\Program Files\TeamCity\buildAgent\work\7a5eed923f4de0a\Website\Classes\URLHandlers\ContentURLHandler.cs:304
   WARC.ContentURLHandler.ProcessRequest(HttpContext context) in E:\Program Files\TeamCity\buildAgent\work\7a5eed923f4de0a\Website\Classes\URLHandlers\ContentURLHandler.cs:232
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +3359
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +9777


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0