How to Fix the 'tinyMCE' is undefined error when running in IIS7

by Updated December 18, 2009

If you've recently moved a Visual web site project (wsp) or web application project(wap) to deploy on Internet Information Services 7 (IIS7) you may have discovered that your Tiny_MCE text editor no longer is showing up and getting the pop-up error box saying "'tinyMCE is undefined".   The Tiny_MCE text editor may have been working fine with Visual's development server, but once you moved the site over to run in IIS7 the error starts occurring. At least that's what happened in my case.

The way I fixed this error was to include the following in my web.config file in the 'system.webServer' section:

          <add name="TinyMCE" preCondition="integratedMode" verb="GET,HEAD,POST" path="TinyMCE.ashx" type="Moxiecode.TinyMCE.Web.HttpHandler, Moxiecode.TinyMCE"/>

Note:  If you're IIS7 site is running with the Application Pool set to "Classic" then you'll want to change the preCondition above to preCondition="classicMode". And if you're running your IIS7 website with the Application Pool set to "Integrated" mode then you will want to use preCondition="integratedMode" in the system.webServer handlers section for TinyMCE.




anonymous by george on 4/26/2011
Thanks a lot!
anonymous by Adriana on 8/24/2013
Thanks! Thanks! Thanks!

Add your comment

by Anonymous - Already have an account? Login now!
Your Name:  

Enter the text you see in the image below
What do you see?
Can't read the image? View a new one.
Your comment will appear after being approved.

Related Posts

I recently discovered an issue after I upgraded to TinyMCE 4.1.3 version text editor in my ASP.NET web pages that was causing the formatting of my <pre> tags to not keep its line break formating on PostBack. At first I thought this might be a CSS...  more »

UPDATE: The better way to do this is to use TinyMCE "rel_list" in the javascript for TinyMCE as seen here. Rather than changing the code in the plugin.min.js file, as shown below (after this update). Also just to note that in TinyMCE version 4.5 they...  more »