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

by Updated December 18, 2009

If you've recently moved a Visual Studio.net 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 Studio.net'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:

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

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.

 


0
2

2 Comments

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:  

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


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 »

After running a ASP.NET website on IIS 7.5 for the first time on a Windows 7 computer, I was faced with the following error message: Login failed for user 'IIS APPPOOL\ASP.NET v4.0'. Description: An unhandled exception occurred during the execution of the...  more »

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

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 »

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 »

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 »