janusz
-
5/12/2005 6:03:12 PM
BUG: Could not load ASCX control
Hello,
I am having problem in adding a template attribute with User Control (ascx)
If I use existing CMS_MenuItemType.ascx as editing user control for attribute then it is fine.
However, when I create a new user control then I get an error:
---------------------------------------------------------------------------------------------------- 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 'Kentico.CMS.CMSDesk.CMS_MenuItemType2' ----------------------------------------------------------------------------------------------------
I have tried to create an exact copy of the CMS_MenuItemType.ascx in the same directory. I have changed the following lines:
Public Class CMS_MenuItemType2 <%@ Control Language="vb" AutoEventWireup="false" Codebehind="CMS_MenuItemType2.ascx.vb" Inherits="Kentico.CMS.CMSDesk.CMS_MenuItemType2" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
If I try to use this new user control in every template then it does not work. I have even tried to replace the CMS_MenuItemType.ascx in Page(Menu Item) template to CMS_MenuItemType2.ascx and it does not work.
I have tried to compile the CMSDESK project and it compiled successfully.
Thanks,
Janusz
|