Greetings,
Is there a way of include the exact same functionality that the RadEditor inside the Sitefinity's Content Block Control Designer has inside a Custom Control Designer?
Basically I've added a RadEditor into one of my Custom Control Designers, with the exact tools that the Content Block one has, loaded from an XML file, however when attempting to use the HyperLink Manager option or right clicking on a link on the content area or on an image there as well and choosing Properties causes a window with an error to appear saying that the Telerik's Dialogs require a handler to process them and that it should be added to the web.config.
Server Error in '/WebSite' Application.
The type DialogBase does not have an accessible constructor.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The type DialogBase does not have an accessible constructor.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[InvalidOperationException: The type DialogBase does not have an accessible constructor.]
Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForNullExistingObject(IBuilderContext context) +234
BuildUp_Telerik.Sitefinity.Web.UI.DialogBase(IBuilderContext ) +138
Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +341
Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +131
[BuildFailedException: The current build operation (build key Build Key[Telerik.Sitefinity.Web.UI.DialogBase, Telerik.Web.UI.DialogHandler.aspx]) failed: The type DialogBase does not have an accessible constructor. (Strategy type BuildPlanStrategy, index 5)]
Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +474
Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.Builder.BuildUp(IReadWriteLocator locator, ILifetimeContainer lifetime, IPolicyList policies, IStrategyChain strategies, Object buildKey, Object existing) +137
Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name) +211
[ResolutionFailedException: Resolution of the dependency failed, type = "Telerik.Sitefinity.Web.UI.DialogBase", name = "Telerik.Web.UI.DialogHandler.aspx". Exception message is: The current build operation (build key Build Key[Telerik.Sitefinity.Web.UI.DialogBase, Telerik.Web.UI.DialogHandler.aspx]) failed: The type DialogBase does not have an accessible constructor. (Strategy type BuildPlanStrategy, index 5)]
Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name) +329
Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.UnityContainer.Resolve(Type t, String name) +15
Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.UnityContainerBase.Resolve(String name) +55
Telerik.Sitefinity.Web.DialogRouteHandler.InitializeContent(Page handler, RequestContext requestContext) +109
System.Web.UI.Control.OnLoad(EventArgs e) +132
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
|
The handler exists on the web.config and the Content Block RadEditor dialogs are working correctly there.
So, basically I'm trying to use the exact functionality you've created there but while using it inside of a Custom Control Designer which has some other controls attached to it. Is there a way to achieve this? And if so, how?
Thanks in advance,
Daniel