The base type 'CKS.EWE.Controls.EWERichTextField' is not allowed for this page. The type is not registered as safe.

Topics: Enhanced Wiki Edition
Sep 16, 2008 at 9:08 AM
I have deployed CKS:EWE 2.0 Beta 2, as I have some error during the deployment, I have to comment some lines :

@echo Deploying CKSEWE solution

@set PATH=C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN;%PATH%

@if "%1"=="" (goto invalidParameters)

REM stsadm -o deactivatefeature -name CKSEWEContent -url %1 -force
REM stsadm -o deactivatefeature -name CKSEWEFields -url %1 -force
REM stsadm -o deactivatefeature -name CKSEWELibrary -url %1 -force
REM stsadm -o deactivatefeature -name CKSWikiDiscussionsList -url %1 -force
REM stsadm -o uninstallfeature -name CKSEWEContent -force
REM stsadm -o uninstallfeature -name CKSEWEFields -force
REM stsadm -o uninstallfeature -name CKSEWELibrary -force
REM stsadm -o uninstallfeature -name CKSWikiDiscussionsList -force
REM stsadm -o retractsolution -name CKSEWE.wsp -immediate -url %1
REM stsadm -o execadmsvcjobs
REM stsadm -o deletesolution -name CKSEWE.wsp -override
stsadm -o addsolution -filename Package\CKSEWE.wsp
stsadm -o deploysolution -name CKSEWE.wsp -immediate -allowgacdeployment -force -url %1
stsadm -o execadmsvcjobs
stsadm -o installfeature -name CKSEWEContent -force
stsadm -o installfeature -name CKSEWEFields -force
stsadm -o installfeature -name CKSEWELibrary -force
stsadm -o installfeature -name CKSWikiDiscussionsList -force
stsadm -o activatefeature -name CKSEWEContent -url %1
stsadm -o activatefeature -name CKSEWEFields -url %1
stsadm -o activatefeature -name CKSEWELibrary -url %1
stsadm -o activatefeature -name CKSWikiDiscussionsList -url %1

@goto endOfBatch

    @echo Please call with the correct parameters.
    @echo The correct syntax of this command is:
    @echo Deploy [siteurl]   



After this manipulation I have been able to activate the Wiki Discussion List Feature on the new wiki site and to create a new CKS:Enhanced Wiki Page Library list. Then I created a new page. Once created, when I tried to open it, I have this error message in french:
Le type de contrôle « CKS.EWE.Controls.EWERichTextField » n'est pas autorisé sur cette page. Le type n'est pas inscrit comme fiable. 
I think the translation would be :
The base type « CKS.EWE.Controls.EWERichTextField » is not allowed for this page. The type is not registered as safe.

Thanks for your help
Sep 16, 2008 at 2:06 PM
I'm not familiar with the EWE but some of the CKS projects have code that writes the safecontrol entries to web.config. You'll see this because it makes a backup copy of the old web.config each time you deploy/activate.  If it can't find web.config, or can't write to it, you might end up with this error.  Of course, it could also be a bug, but I haven't actually tried out the CKS:EWE yet.

Mike Sharp