This is a migrated thread and some comments may be shown as answers.

Error in RadEditor when not adding handler to config file.

8 Answers 324 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sweta
Top achievements
Rank 1
Sweta asked on 03 Apr 2012, 11:29 AM
Hi,

     I am using the below code to add RadEditor to the asp.net page. I have not added handler to the config file, but using javascripts to add reference to the telerik products. Other control works fine but RadEditor control gives the error : "Web.config registration missing!
 The Telerik dialogs require a HttpHandler registration in the web.config file."

Below is my code :-
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
            <%--RadEditor--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Core.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQuery.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQueryPlugins.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Popup/PopupScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/RadEditor.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/LayoutBuilder/LayoutBuilderEngine.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Spell/SpellCheckService.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/Modules.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Dialogs/RadDialogOpenerScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/TouchScrollExtender.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Animation/AnimationScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Window/RadWindowScripts.js" />
            <%--RadEditor--%>
        </Scripts>
    </asp:ScriptManager>
    <div>       
        <telerik:RadEditor ID="reSeperatorContent" MaxHtmlLength="150" runat="server" AutoResizeHeight="true"
            SpellCheckSettings-DictionaryLanguage="en-US" ContentAreaCssFile="~/Enigma/Css/EditorContent.css"
            Skin="Windows7">
            <ImageManager ViewPaths="~/Content/Image/" DeletePaths="~/Content/Image/" UploadPaths="~/Content/Image/" />
            <DocumentManager ViewPaths="~/Content/Document/" DeletePaths="~/Content/Document/"
                UploadPaths="~/Content/Document/" />
            <FlashManager ViewPaths="~/Content/Flash/" DeletePaths="~/Content/Flash/" UploadPaths="~/Content/Flash/" />
            <MediaManager ViewPaths="~/Content/Media/" DeletePaths="~/Content/Media/" UploadPaths="~/Content/Media/" />
            <TemplateManager ViewPaths="~/Content/Template/" DeletePaths="~/Content/Template/"
                UploadPaths="~/Content/Template/" />
            <Modules>
                <telerik:EditorModule Name="RadEditorStatistics" Visible="true" />
            </Modules>
        </telerik:RadEditor>       
    </div>

8 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Apr 2012, 01:06 PM
Hi,

It is a requirement for the RadEditor's dialog to register their handlers in the web.config file:

<system.web>
  <httpRuntime maxRequestLength="1000000000" />
  <compilation debug="true" targetFramework="4.0" />
  <httpHandlers>
    <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
    <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
    <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
  </httpHandlers>
</system.web>
<system.webServer>
  <validation validateIntegratedModeConfiguration="false" />
  <handlers>
    <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
    <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
    <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />
  </handlers>
</system.webServer>


Regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sweta
Top achievements
Rank 1
answered on 03 Apr 2012, 01:12 PM
Thanks for the reply, Rumen.

But I can't add handlers to the config file since it is not working on our live server which is using shared environment. Can you please tell me the other way without adding handler to config. Can I add handler to page with help of some property ?

0
Rumen
Telerik team
answered on 03 Apr 2012, 01:18 PM
Hello,

You can try the following:
1) Set the RadEditor's DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx" property.
2) Create a file named Telerik.Web.UI.DialogHandler.aspx in the root of the web application with the following content:

<%@ Page Language="C#" Inherits="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sweta
Top achievements
Rank 1
answered on 03 Apr 2012, 01:53 PM
Many Many Thanks for the Reply. It saved my day. But still getting the below issue when clicking on Spell Checker :-

Web.config registration missing!
 The spellchecking functionality requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information.

Telerik.Web.UI.SpellCheckHandler.axd

Thanks & Regards,
Sweta Chotalia
0
Sweta
Top achievements
Rank 1
answered on 04 Apr 2012, 06:45 AM
Hello,

Waiting for the solution. Any answer to my question ? Its very urgent.

Thanks & Regards,
Sweta Chotalia
0
Rumen
Telerik team
answered on 04 Apr 2012, 03:33 PM
Hello,

You can do the same for the spellchecker which offers an AjaxUrl property, e.g.

<telerik:RadEditor runat="server" ID="RadEditor1" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx">
    <SpellCheckSettings AjaxUrl=""~/Telerik.Web.UI.SpellCheckHandler.ashx" />
</telerik:RadEditor>


Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sweta
Top achievements
Rank 1
answered on 26 Apr 2012, 11:39 AM
Hi Rumen,

I have added Telerik.Web.UI.DialogHandler.aspx page in the project and also provide it to the DialogHandlerUrl property of RadEditor control. My code is as below :-

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Dialog.aspx.cs" Inherits="Dialog" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<head runat="server">
    <title></title>
    <script src="Js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Js/jquery.alphanumeric.js" type="text/javascript"></script>
    <script src="Js/jquery.blockUI.js" type="text/javascript"></script>
    <script src="Js/ajaxProgressIndicator.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
     
    <asp:ScriptManager ID="ScriptManager1" runat="server">       
        <Scripts>
            <%--RadEditor--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Core.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQuery.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQueryPlugins.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Popup/PopupScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/RadEditor.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/LayoutBuilder/LayoutBuilderEngine.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Spell/SpellCheckService.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/Modules.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Dialogs/RadDialogOpenerScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/TouchScrollExtender.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Animation/AnimationScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Window/RadWindowScripts.js" />
            <%--RadEditor--%>
        </Scripts>
    </asp:ScriptManager>
     
    <telerik:RadEditor ID="reSeperatorContent" MaxHtmlLength="150" runat="server" AutoResizeHeight="true"
        SpellCheckSettings-DictionaryLanguage="en-US" ContentAreaCssFile="~/Enigma/Css/EditorContent.css"
        DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx" Skin="Windows7">
        <ImageManager ViewPaths="~/Content/Image/" DeletePaths="~/Content/Image/" UploadPaths="~/Content/Image/" />
        <DocumentManager ViewPaths="~/Content/Document/" DeletePaths="~/Content/Document/"
            UploadPaths="~/Content/Document/" />
        <FlashManager ViewPaths="~/Content/Flash/" DeletePaths="~/Content/Flash/" UploadPaths="~/Content/Flash/" />
        <MediaManager ViewPaths="~/Content/Media/" DeletePaths="~/Content/Media/" UploadPaths="~/Content/Media/" />
        <TemplateManager ViewPaths="~/Content/Template/" DeletePaths="~/Content/Template/"
            UploadPaths="~/Content/Template/" />
        <Modules>
            <telerik:EditorModule Name="RadEditorStatistics" Visible="true" />
        </Modules>
         
    </telerik:RadEditor>
    </form>
</body>
</html>

This had removed the "Web.config registration missing!" error. But when I click on the "Image Manager",  dialog for adding image gets open, but it don't display the images in the folder which can be uploaded, even though images are present in the folder. Why are the images not getting displayed. Even the save and cancel button have empty text.

Thanks in advance.
0
Rumen
Telerik team
answered on 01 May 2012, 08:33 AM
Hi,

Could you please upgrade to the latest Q1 2012 SP1 version 2011.1.411 of RadControls for ASP.NET AJAX? If the problem still persists, check the page for JavaScript error(s), because if the Insert and Cancel buttons are empty, this means that there is some error on the page.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Sweta
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Sweta
Top achievements
Rank 1
Share this question
or