RadSpell 3.0 uses completely different mechanism for displaying its dialog. In contrast to the old RadSpell versions and RadEditor, RadSpell 3.0 contains its dialog as a custom WebControl inside the assembly, which is displayed using a special HttpHandler. This new approach makes some of the subfolders of the RadControls folder unnecessary and also minimizes the problems, related to the deployment.
In order to use this mechanism you need to setup the Dialog HttpHandler in one of the following ways:
- Register the HttpHandler in the application’s web.config file
- Open the application’s web.config file, located at the root folder of your application.
- In the <system.web> section, locate the <httpHandlers> subsection. If it is missing, create it:
<system.web> <httpHandlers></httpHandlers> </system.web> |
- Inside the <httpHandlers> section add the following declaration:
<add verb="*" type="Telerik.WebControls.Spell.DialogHandler, RadSpell.Net2" path="Telerik.Spell.DialogHandler.aspx"/> |
-
Create a new text file, named Telerik.Spell.DialogHandler.aspx, inside the ~/RadControls/Spell folder, where the tilde (~) represents the application’s root folder. Put the following text in that file:
<%@ Page Language="C#" Inherits="Telerik.WebControls.Spell.DialogHandler" %> |
GAC configuration:
If the RadSpell.Net2.dll is placed in the GAC (Clobal Assemly Cache), here is the configuration for the two methods of usage above:
-
Declare the handler in the web.config file like this:
<system.web> <httpHandlers> <add verb="*" type="Telerik.WebControls.Spell.DialogHandler, RadSpell.Net2, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2" path="Telerik.Spell.DialogHandler.aspx"/> </httpHandlers> </system.web> |
-
Edit the Telerik.Spell.DialogHandler.aspx files:
<%@ Page Language="C#" Inherits="Telerik.WebControls.Spell.DialogHandler, RadSpell.Net2, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2" %> |
"Could not load type 'Telerik.WebControls.Spell.DialogHandler' " error message
If this error message appears when you open a SpellCheck dialog, please visit Dialog Handler Not Found
for a possible solution.