Server Error in '/' Application.

Unable to cast object of type 'HyperCore.Business.BaseObject' to type 'HyperWeb.Business.Objects.BaseWebObject'.

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 'HyperCore.Business.BaseObject' to type 'HyperWeb.Business.Objects.BaseWebObject'.

Source Error:


Line 31:         WorksCollection WorksCol = new WorksCollection();
Line 32:         WorksCol.FillBy(Convert.ToInt32(Request.QueryString["id"]));
Line 33:         WorksCol[0].FillCollaborators();
Line 34: 
Line 35:         lblText.Text = WorksCol[0].Text;        

Source File: c:\ClientSites\intraway.gr\pvkcompany.gr\Work.aspx.cs    Line: 33

Stack Trace:


[InvalidCastException: Unable to cast object of type 'HyperCore.Business.BaseObject' to type 'HyperWeb.Business.Objects.BaseWebObject'.]
   HyperWeb.Business.Collection.BaseWebCollection.get_Item(Int32 index) +147
   Hyperware.Websites.Pvk.WorksCollection.get_Item(Int32 index) +124
   Work.LoadPage() in c:\ClientSites\intraway.gr\pvkcompany.gr\Work.aspx.cs:33
   HyperWeb.GUI.BasePage.OnLoad(EventArgs e) +54
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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