Technical support This forum is closed.
Version 1.x > Technical support > Beginner Problem with CSMEditableRegion View modes: 
User avatar
Member
Member
Horia - 2/2/2006 11:44:58 AM
   
Beginner Problem with CSMEditableRegion
Hi,

I just installed a trial version of Kentiko CSM. After I insert an CSMEditableRegion control on a page and tried to compile it, it comes an NullReferenceException error:
"Object reference not set to an instance of an object"
I don't haven any problems with other controls, just with this CSMEditableRegion.

I'm using VStudio 2005 with .Net 2.0

Code:


<%@ Page Language="c#" Inherits="VdSPortal.defaultMain" CodeFile="default.aspx.cs" ValidateRequest="false" %>
<%@ Register TagPrefix="cc3" Namespace="Kentico.CMS.DataEngine" Assembly="Kentico.CMS.DataEngine" %>
<%@ Register TagPrefix="cc2" Namespace="Kentico.CMS.TreeEngine" Assembly="Kentico.CMS.TreeEngine" %>
<%@ Register TagPrefix="cc1" Namespace="Kentico.CMS.CMSControls" Assembly="Kentico.CMS.CMSControls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<%=VdSPortal.Functions.GetPageTags("/home")%>
<%=VdSPortal.ProjectFunctions.GetHorizontalStyle()%>
</head>
<body>
<form>
<div>
<cc1:CMSEditableRegion id="Cmseditableregion1" runat="server"
RegionTitle="Page Header"
RegionType="TextBox" DialogHeight="1" DialogWidth="80">
</cc1:CMSEditableRegion>

</div>
</form>
</body>
</html>



Any help is welcome :)

Horia Urzica

User avatar
Guest
admin - 2/2/2006 4:33:27 PM
   
Re: Beginner Problem with CSMEditableRegion
Hello,

thank you for your post. You need to add the CMSPageManager control on your page as well:

<body>
<form>
<cc1:CMSPageManager id="CMSPageManager1" runat="server"></cc1:CMSPageManager>
...

Please let me know if it helps.

Best Regards,