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

Web.config registration missing!

3 Answers 337 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Syed Furqan
Top achievements
Rank 1
Syed Furqan asked on 03 Aug 2010, 03:24 PM
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 ?

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Aug 2010, 03:52 PM
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
0
Vikas
Top achievements
Rank 1
answered on 03 Nov 2011, 10:05 AM
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.
0
Rumen
Telerik team
answered on 03 Nov 2011, 05:24 PM
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
Tags
Editor
Asked by
Syed Furqan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Vikas
Top achievements
Rank 1
Share this question
or