加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – ASP .NET MVC中的TinyMCE Spellchecker

发布时间:2020-12-16 00:13:54 所属栏目:asp.Net 来源:网络整理
导读:我按照 here所描述的教程,使TinyMCE Spellchecker在Webforms应用程序上运行.但我尝试在MVC项目上做同样的事情,每次尝试使用拼写检查程序时都会出错. 我想知道为了在ASP .NET MVC项目上发表这个词,我需要做些什么改变或调整. 我得到的错误如下: [HttpExcepti
我按照 here所描述的教程,使TinyMCE Spellchecker在Webforms应用程序上运行.但我尝试在MVC项目上做同样的事情,每次尝试使用拼写检查程序时都会出错.

我想知道为了在ASP .NET MVC项目上发表这个词,我需要做些什么改变或调整.

我得到的错误如下:

[HttpException]: The controller for path '/TinyMCE.ashx' could not be found or it does not implement
 IController.
   at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(Type controllerType)
   at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext,String
 controllerName)
   at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext)
   at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean& completedSynchronously)

解决方法

好吧,有点难以知道问题是什么而不知道你得到的错误是什么,但我猜它是因为你需要忽略你的MVC中的拼写检查器的路由.通过向MVC路由定义添加类似的内容来执行此操作:
//ignore just the TinyMCE spell checker service:
routes.IgnoreRoute("TinyMCE.ashx");
//or if you want to be more general & ignore all ashx's:
routes.IgnoreRoute("{resource}.ashx{*pathInfo}");

如果没有上述内容,则将拼写检查请求URL(TinyMCE.ashx …)解释为MVC路由&尝试找到匹配的控制器(&明显失败).

如果这不是问题,我建议发布一些关于您所看到的特定错误的更多信息.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读