How to get TinyMVC.NET class library to work with ASP.NET MVC 2?

I am trying to implement the TinyMCE Spellcheck plugin that uses GoogleSpell. The fact is that I'm trying to install it in an MVC environment.

I started by referencing a .NET class DLL (MoxieCode.TinyMCE) in my project.

Then I added this code to my web.config:

<system.webServer>
    <handlers>
      <add name="TinyMCE" verb="GET,HEAD,POST" path="TinyMCE.ashx" type="Moxiecode.TinyMCE.Web.HttpHandler,Moxiecode.TinyMCE" />
    </handlers>
    <!--previously existing rules-->
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

Then I added these lines to my call tinyMCE.init({});:

        plugins: "spellchecker",
        theme_advanced_buttons3: "spellchecker",
        spellchecker_languages : "English=en",
        spellchecker_rpc_url : "TinyMCE.ashx?module=SpellChecker",

These steps are described in the tutorial here . Then I followed the instructions from this column , which recommended the following modification for global.asax to make it mvc friendly:

        routes.IgnoreRoute("TinyMCE.ashx"); 
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

Everything seems fine, that when I look through /TinyMCE.ashx, I get this error:

: HTTP 404. , ( ), , . URL- , .

URL:/TinyMCE.ashx

asp.net mvc URL?

+3
2

VS 2010. , , IIS, . .

, localhost, , , , TinyMCE.NET GoogleSpell, , .

0

, web.config.

IIS 2 , .

- , , IIS 7. web.config, asp.net, , IIS .

+1

Source: https://habr.com/ru/post/1766284/


All Articles