Hi,

Did anyone encountered the error below? any

I was adding some JS to the template pages, and started getting the error below.

I removed all the Javascript code but still getting this error even after restarting IIS

ASPDNS version is ML 8.0.1.2/8.0.1.2


Server Error in '/' Application.

Unable to cast object of type 'ASP.skins_skin_1_templatelanding_ascx' to type 'AspDotNetStorefront.TemplateBase'.

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.skins_skin_1_templatelanding_ascx' to type 'AspDotNetStorefront.TemplateBase'.

Source Error:


Line 574: }
Line 575: }
Line 576: m_Template = (TemplateBase)LoadControl(_url);
Line 577: }
Line 578: if (m_Template != null)

Source File: c:\inetpub\vhosts\afcaresourcecenter.com\httpdocs\ App_Code\SkinBase.cs Line: 576

Stack Trace:


[InvalidCastException: Unable to cast object of type 'ASP.skins_skin_1_templatelanding_ascx' to type 'AspDotNetStorefront.TemplateBase'.]
AspDotNetStorefront.SkinBase.LoadSkinTemplate() in c:\inetpub\vhosts\afcaresourcecenter.com\httpdocs\ App_Code\SkinBase.cs:576
AspDotNetStorefront.SkinBase.OnPreInit(EventArgs e) in c:\inetpub\vhosts\afcaresourcecenter.com\httpdocs\ App_Code\SkinBase.cs:303
AspDotNetStorefront._default.OnPreInit(EventArgs e) in c:\inetpub\vhosts\afcaresourcecenter.com\httpdocs\ default.aspx.cs:57
System.Web.UI.Page.PerformPreInit() +31
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282