Web.config registration missing!

4 posts, 0 answers
  1. Syed Furqan
    Syed Furqan avatar
    11 posts
    Member since:
    Jan 2009

    Posted 03 Aug 2010 Link to this post

    Hello,

    I am using asp.net ajax radeditor 2009.3.1314.35. I have tried the solution from "Error: Web.config registration missing! The Telerik dialogs require a HttpHandler registration in the web.config file." but no help. Actually on my localhost the solution works but on the server it always gives me this error and throws the dialog window to the login page.

    ---------------------------
    Message from webpage
    ---------------------------
    Web.config registration missing!
     The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > RadEditor > Dialogs > Introduction
    ---------------------------
    OK   
    ---------------------------

    Any idea whats wrong ?

  2. Rumen
    Admin
    Rumen avatar
    14431 posts

    Posted 03 Aug 2010 Link to this post

    Hi Syed,

    In form authentication scenario a non logged user is redirected to the login page. When a non user load some dialog then the code tried to load the login screen in the dialog, but the dialog expects other content and throws the reported error.

    The DialogHandler must be always accessible and to fix the problem you should add the following two <location> entries to the web.config:

    <location path="Telerik.Web.UI.DialogHandler.aspx">
        <system.web>
            <authorization>
                <allow roles="TestUser"/>
            </authorization>
        </system.web>
    </location>
    <location path="Telerik.Web.UI.SpellCheckHandler.axd">
        <system.web>
            <authorization>
                <allow roles="TestUser"/>
            </authorization>
        </system.web>
    </location>

    Greetings,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Vikas
    Vikas avatar
    1 posts
    Member since:
    Nov 2011

    Posted 03 Nov 2011 Link to this post

    Hi,
    
    I have the same problem as Syed when using asp.net ajax radeditor. I have tried the 
    solution from "Error: Web.config registration missing! The Telerik 
    dialogs require a HttpHandler registration in the web.config file." but 
    no help. Actually on my localhost the solution works but on the server 
    it always gives me this error and throws the dialog window page when clicking on ImageManager or Hyperlink..
    ---------------------------
    Message from webpage
    ---------------------------
    Web.config registration missing!
     The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > RadEditor > Dialogs > Introduction
    ---------------------------
    OK    --------------------------- Any idea whats wrong ? My code in Config File....  <location path="."  inheritInChildApplications="false">
      <system.web> .......... ............. </system.web> </location> <httpHandlers>
          
          <remove verb="*" path="*.asmx" />
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          
          <add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
          <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
          <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
        </httpHandlers> <modules>
          <remove name="ScriptModule" />
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </modules>   <handlers>
         ...
          <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <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_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
        </handlers> Nothing works dear....On Host server(
    I am using Godaddy.com, IIS 7.0) but works on LocalHost.
    is it a problem of Host Server for any Permission and all???
    And RadEditor child controls(Font,Color..etc.) are not working on Google Chrome,while working on IE. plz helppppp.....me soooner.
  4. Rumen
    Admin
    Rumen avatar
    14431 posts

    Posted 03 Nov 2011 Link to this post

    Hello Vikas,

    You should delete the following handler in the web.config file

    <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />

    and keep only this one:

    <add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />

    After that set the set the RadEditor's DialogHandlerUrl property to "~/Telerik.Web.UI.DialogHandler.axd".

    You can find more steps in this article: http://www.telerik.com/support/kb/aspnet-ajax/editor/error-web-config-registration-missing-the-telerik-dialogs-require-a-httphandler-registration-in-the-web-config-file.aspx

    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
Back to Top