Server Error in '/' Application.

Unable to cast object of type 'TS_Base_CL.DigitalLibrary.Subject' to type 'TS_Base_CL.DigitalLibrary.Collection'.

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 'TS_Base_CL.DigitalLibrary.Subject' to type 'TS_Base_CL.DigitalLibrary.Collection'.

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 'TS_Base_CL.DigitalLibrary.Subject' to type 'TS_Base_CL.DigitalLibrary.Collection'.] TS_Main_UI.DigitalLibrary.AdvancedSearch.ItemDataBoundNavigate(Object sender, RepeaterItemEventArgs e) +338 System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +139 System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +193 System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +291 System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +109 System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +81 TS_Main_UI.DigitalLibrary.AdvancedSearch.Subject() +641 TS_Main_UI.DigitalLibrary.AdvancedSearch.GetData(Int32& RowCount) +962 TS_Main_UI.DigitalLibrary.AdvancedSearch.BindData() +68 TS_Main_UI.DigitalLibrary.AdvancedSearch.Page_Load(Object sender, EventArgs e) +19201 System.Web.UI.Control.OnLoad(EventArgs e) +108 System.Web.UI.Control.LoadRecursive() +90 System.Web.UI.Control.LoadRecursive() +185 System.Web.UI.Control.LoadRecursive() +185 System.Web.UI.Control.LoadRecursive() +185 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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