• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

RadEditor要求在web.config注册HttpHandler

用户头像
it1352
帮助1

问题说明

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

When I add this code to my aspx ,

   <telerik:RadEditor   runat="server" 
    AutoResizeHeight="True"   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.

我该如何解决?

正确答案

#1

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

In your web.config - add the following to the system.web (omit the system.web, just used to show you level:

<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>

一般来说不需要底部的两个,但是我假设您需要编辑器的扩展功能,例如对话框和拼写检查.

The bottom two are not needed gnerally but I am assuming you want the extended features of the editor, like dialogs and spellchecking.

我还添加了与system.web相同级别的位置

I also add location at the same level as system.web

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

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhcgkhbi
系列文章
更多 icon
同类精品
更多 icon
继续加载