ASPX templates
Version 6.x > ASPX templates > Parser Error View modes: 
User avatar
Member
Member
hungquang_itsyad-yahoo.com - 1/15/2012 11:52:55 PM
   
Parser Error
When i create news page with News Page template use NewPage.aspx, I have error:

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'CMSApp.CMSTemplates.Test.NewPage'.

Source Error:


Line 1: <%@ Page Language="C#" MasterPageFile="~/CMSTemplates/Test/Sitemaster.Master"
Line 2: AutoEventWireup="true" CodeBehind="NewPage.aspx.cs" Inherits="CMSApp.CMSTemplates.babyclick.NewPage" %>
Line 3:

Source File: /CMSTemplates/Test/NewPage.aspx Line: 1




How to fix this error?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 1/16/2012 2:32:07 AM
   
RE:Parser Error
Hello.

Could you please make sure that class name (type) corresponds with "Inherits" attribute in Page directive? Your current type name is "CMSApp.CMSTemplates.Test.NewPage," while Inherits is CMSApp.CMSTemplates.babyclick.NewPage.Thank you.

Best Regards,
Radek Macalik