asp.net - RadEditor 需要在 web.config 中注册一个 HttpHandler

标签 asp.net web-config telerik httphandler radeditor

当我将此代码添加到我的 aspx 时,

   <telerik:RadEditor ID="REWelcome" runat="server" 
    AutoResizeHeight="True" Width="500px" ToolbarMode="Floating">
   <Content>
   </Content>
   <TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings>
   </telerik:RadEditor>

我收到了这个错误信息,

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config.  
 RadScriptManager requires a   
 HttpHandler registration in web.config.

我该如何解决?

最佳答案

在您的 web.config 中-将以下内容添加到 system.web(省略 system.web,仅用于显示您的级别:

<system.web>
    <httpHandlers>
        <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
        <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>
        <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>
    </httpHandlers>

通常不需要底部的两个,但我假设您需要编辑器的扩展功能,例如对话框和拼写检查。

我还添加了与system.web同级的location

<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>

关于asp.net - RadEditor 需要在 web.config 中注册一个 HttpHandler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16230694/

相关文章:

ASP.NET 清除缓存

ASP.NET customErrors with mode=remoteOnly 和 global.asax 处理异常

asp.net - 发布到 Web 服务器后的 CSSFriendly 问题

asp.net - 如何解决子 Web 应用程序上嵌套的冲突 web.config 条目?

c# - 在 ASP.NET 2.0 中,我应该使用什么将 DataTable 序列化为 JSON?

c# - asp.net webforms 在代码隐藏中处理 404 notfound 错误?

ASP.NET Web.config AppSettings 性能

telerik - Telerik 网格上的事件 OnLoad(客户端选择)

wpf RadGridView/RadContextMenu 绑定(bind)问题

asp.net - Telerik RadGrid 分页 - 重复记录和粘贴按钮