Hi,
I am getting a popup with "Error 500: Potentially Dangerous Request" when trying to use RadSpell on multiple controls in ASP.NET 4. The error occurs the moment I click "Check Spell".
Reproduction: Create a fresh ASP.NET 4 project (VB) and add the HTTPRequestHandler for RadScriptManager and RadSpell to the web.config through Telerik's SmartTags. Then add the RadScriptManager and RadSpell to your Default.aspx, create two basic text inputs and try hook up both (i.e. ControlsToCheck="TextBox1,TextBox2")
Web.config (excerpt)
<httpHandlers> |
<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"/> |
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/> |
</httpHandlers> |
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web> |
<system.webServer> |
<modules runAllManagedModulesForAllRequests="true"> |
</modules> |
<validation validateIntegratedModeConfiguration="false"/> |
<handlers> |
<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"/> |
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/> |
</handlers> |
</system.webServer> |
Default.aspx
<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false" |
CodeBehind="Default.aspx.vb" Inherits="RadSpellTest._Default" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> |
</asp:Content> |
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> |
<h2> |
Welcome to ASP.NET! |
</h2> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> |
<input type="text" id="TextBox1" /> |
<input type="text" ID="TextBox2" /> |
<telerik:RadSpell ID="RadSpell1" Runat="server" ControlsToCheck="TextBox1,TextBox2" IsClientID="True" SupportedLanguages="en-US,English" /> |
</asp:Content> |
Attached you can find a screenshot of the error message.
Note: It does work when TargetFramework of the project is set to 3.5 instead of 4.0 or if RadSpell is given only one ControlToCheck.
Thanks for any help,
Matt