title | description | type | page_title | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|---|
RadSpell error - Web.config registration missing |
When users click on the RadSpell control, they get a Web.config registration missing? and a 404 - File or directory not found error. |
troubleshooting |
RadSpell Error Web.config registration missing! The Telerik dialogs require a HttpHandler registration in the web.config file. |
spell-error-web-config-registration-missing |
1442163 |
kb |
Product | RadSpell for ASP.NET AJAX |
When users click on the RadSpell, it errors out with "Web.config registration missing? The Telerik dialogs require a HttpHandler registration in the web.config file." and a "404 - File or directory not found error" in the dialog title errors.
- For the standalone RadSpell control:
Set the AjaxUrl property in the RadSpell declaration:
<telerik:RadSpell ID="RadSpell1" runat="server" AjaxUrl="~/Telerik.Web.UI.SpellCheckHandler.ashx" HandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" ControlsToCheck="TextBox1" />
and in the web.config file register the handlers as follows with axd for the dialog handler and ashx for the spellcheck handler:
<httpHandlers>
<add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
<add path="Telerik.Web.UI.SpellCheckHandler.ashx" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
</httpHandlers>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="Telerik_Web_UI_DialogHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler"/>
<add name="Telerik_Web_UI_SpellCheckHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.ashx" type="Telerik.Web.UI.SpellCheckHandler"/>
</handlers>
</system.webServer>
- For RadSpell as part of RadEditor: the solution is identical as the above one, but requires you to set the AjaxUrl property trough the SpellCheckSettings inner tag/property of the control:
<telerik:RadEditor id="radE1" runat="server" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd">
<SpellCheckSettings DictionaryPath="~/App_Data/RadSpell" AjaxUrl="~/Telerik.Web.UI.SpellCheckHandler.axd" />
</telerik:RadEditor>
For more information and solutions check out this popular blog post and this forum.