Unable to cast object of type 'ASP.cmstemplates_echn_charitablegiving_homepage_dev_aspx' to type 'CMS.UIControls.TemplatePage'.

Server Error in '/' Application.

Unable to cast object of type 'ASP.cmstemplates_echn_charitablegiving_homepage_dev_aspx' to type 'CMS.UIControls.TemplatePage'.

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 'ASP.cmstemplates_echn_charitablegiving_homepage_dev_aspx' to type 'CMS.UIControls.TemplatePage'.

Source Error:


Line 36:         base.OnPreRender(e);
Line 37: 
Line 38:         this.ltlTags.Text = this.HeaderTags;
Line 39:         
Line 40: 

Source File: d:\webfolder\echn\html\CMSTemplates\ECHN\Main.master.cs    Line: 38

Stack Trace:


[InvalidCastException: Unable to cast object of type 'ASP.cmstemplates_echn_charitablegiving_homepage_dev_aspx' to type 'CMS.UIControls.TemplatePage'.]
   CMS.UIControls.TemplateMasterPage.get_TemplatePage() +36
   CMS.UIControls.TemplateMasterPage.get_HeaderTags() +8
   TemplateMaster_Main.OnPreRender(EventArgs e) in d:\webfolder\echn\html\CMSTemplates\ECHN\Main.master.cs:38
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5483