asp.netweb-configtelerikhttphandlerradeditor

RadEditor requires a HttpHandler registration in web.config


When I add this code to my aspx ,

   <telerik:RadEditor ID="REWelcome" runat="server" 
    AutoResizeHeight="True" Width="500px" ToolbarMode="Floating">
   <Content>
   </Content>
   <TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings>
   </telerik:RadEditor>

And I got this error message ,

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config.  
 RadScriptManager requires a   
 HttpHandler registration in web.config.

How can I solve it ?


Solution

  • In your web.config - add the following to the system.web (omit the system.web, just used to show you level:

    <system.web>
        <httpHandlers>
            <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
            <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>
            <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>
        </httpHandlers>
    

    The bottom two are not needed gnerally but I am assuming you want the extended features of the editor, like dialogs and spellchecking.

    I also add location at the same level as system.web

    <location path="Telerik.Web.UI.WebResource.axd">
        <system.web>
            <authorization>
                <allow users="*" />
            </authorization>
        </system.web>
    </location>