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

SQL Server Reporting Services can be a pain in the arse to set up correctly for the first time. Even after you've got things running correctly, you can sometimes run into issues, which is exactly what happened to me recently. I had setup my local...  more »

Here's how to install Internet Information Services (IIS7) on a Windows 7 (or Vista) computer so that ASP.NET websites will run on the IIS7 web server. First, you will want to make sure that you are signed into an account with Administrator access on your...  more »

After setting up a new Windows 7 computer with IIS 7.5 and Visual Studio 2010, I tried to start my ASP.NET 4.0 website using the Local IIS web server. However, right off the bat I was hit with the following IIS error message: HTTP Error 500.21 - Internal...  more »

On a number of a occassions I've run into the following ASP.NET / IIS7 error after uploading my newly built Visual web project site into IIS (where the site had previously been working fine): 'Timeout expired. The timeout period elapsed prior...  more »

When developing websites or applications in Visual Studio.NET, you sometimes need to have Visual Studio run as an administrator. For instance, if you are developing a Web Application Project that uses IIS7 as the local development server for testing,...  more »

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 »

I just installed the URL Rewrite Module for IIS 7.0 and started playing around with how to setup rules to create search engine friendly URLs. The first rule I decided to setup was to redirect a site to the WWW sub-domain version when it was not typed in...  more »