After deploying EasyBox I get the following error, Parser Error Message: The base type EDC.EasyBox.SP2010.ApplicationPages.xxx is not allowed for this page. The type is not registered as safe. How do I fix this?


This happens because the <SafeControlentry for the EasyBox controls haven't been registered in the SharePoint web application. This usually happens if EasyBox has been installed to the wrong SharePoint web application. In order to resolve disable any EasyBox features on the current SharePoint web application, uninstall the EasyBox solution from its current web application and re-install it on the desired web application and run the deployment through the EasyBox Environment Configuration again. If you are still having issues you can add the following safe control entries to the web.config manually (this not a recommended approach):


<SafeControl Assembly="Telerik.Web.UI, Version=2012.3.1308.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Dialogs" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="Telerik.Web.UI, Version=2012.3.1308.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Calendar.View" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="Telerik.Web.UI, Version=2012.3.1308.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Spell" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="Telerik.Web.UI, Version=2012.3.1308.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Editor" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="Telerik.Web.UI, Version=2012.3.1308.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Editor.DialogControls" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="Telerik.Web.UI, Version=2012.3.1308.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="Telerik.Web.UI, Version=2012.3.1308.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Charting" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="Telerik.Web.UI, Version=2012.3.1308.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Calendar.Persistence" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="EDC.EasyBox.SPCommon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=05e3a997d64661fa" Namespace="EDC.EasyBox.SPCommon.BaseControls" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="EDC.EasyBox.SP2010, Version=1.0.0.0, Culture=neutral, PublicKeyToken=05e3a997d64661fa" Namespace="EDC.EasyBox.SP2010" TypeName="*" Safe="True" SafeAgainstScript="False" />

<SafeControl Assembly="EDC.EasyBox.SP2010, Version=1.0.0.0, Culture=neutral, PublicKeyToken=05e3a997d64661fa" Namespace="EDC.EasyBox.SP2010.ApplicationPages" TypeName="*" Safe="True" SafeAgainstScript="False" />






During an upgrade I get the following error when deploying EasyBox.wsp:
Failed to create receiver object from assembly "EDC.EasyBox.SP2010, Version=1.0.0.0, Culture=neutral, PublicKeyToken=05e3a997d64661fa", class "EDC.EasyBox.SP2010.Features.EasyBoxCentralAdmin.EasyBoxCentralAdminEventReceiver" for feature "EDC.EasyBox.SP2010_EasyBoxCentralAdmin" (ID: 97934804-145e-43fa-b2b6-6c9a93648914).: System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()
SERVER-1 : Failed to create receiver object from assembly "EDC.EasyBox.SP2010, Version=1.0.0.0, Culture=neutral, PublicKeyToken=05e3a997d64661fa", class "EDC.EasyBox.SP2010.Features.EasyBoxCentralAdmin.EasyBoxCentralAdminEventReceiver" for feature "EDC.EasyBox.SP2010_EasyBoxCentralAdmin" (ID: 97934804-145e-43fa-b2b6-6c9a93648914).: System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()
What do I do?


This typically happens when old versions of the EasyBox DLLs have not been evicted from SharePoint's cache. In order to fix this problem 

  1. Retract the failed/partially succeeded easybox.wsp solution
  2. Run iisreset on all the servers that this EasyBox will be running on
  3. Inspect the GAC on all servers to see that all EDC.EasyBox.xxx DLLs have been purged from the GAC
  4. If DLLs were removed from the GAC manually, run iisreset on those servers again
  5. Deploy the solution again as described in the installation guide