New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
RadSpell error - Web.config registration missing
Environment
Product | RadSpell for ASP.NET AJAX |
Description
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.
Solution
- For the standalone RadSpell control:
Set the AjaxUrl property in the RadSpell declaration:
ASP.NET
<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:
ASP.NET
<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:
ASP.NET
<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.