Skip to main content
Participating Frequently
July 14, 2012
Question

IIS7.5 and ColdFusion10(Developer)

  • July 14, 2012
  • 6 replies
  • 53914 views

I installed ColdFusion10 Developer on my Win7 desktop with IIS7.5 but when I go to localhost/xxx.cfm a popup dialogue box opens >> Opening .cfm file...You have chosen to open index.cfm which is a cfm file from http://localhost...What should Firefox do with this file? (Open with-browse/FlashGot/Save File)<<<

Why is IIS7.5 not serving .cfm in localhost normally? Grateful for help to fix this (see my post on StackOverflow on this:http://stackoverflow.com/questions/11467168/coldfusion10-developer-and-windows7-iis7-5 )

EDIT   I am grateful for help with this please (it is driving me nuts..)! I have no handler mappings for .cfm-how do I manually add these to my IIS7.5 for my ColdFusion10 developer install? I need to find the directory to map to the correct .dll file for .cfm etc? Am I correct?-I cannot find any info on Google about this for CF10 developer edn (there are several links to CF7/8 which have given me a general idea but I need a specific fix....)

This topic has been closed for replies.

6 replies

Participant
June 5, 2013

I had this exact same proglem. I recieved this error both when I opened up any page in the browser and when I opened up the Handler Mappings in IIS. Like the original poster, I'm running IIS 7.5 with a recent install of Coldfusion 10.

I was able to fix my issue by doing the following...

1. Open up the ColdFusion 10 Web Configuration tool.

2. Remove all sites.

3. Add new site. Keep the default settings and save.

This is what fixed the issue for me.

Good luck!

Participant
April 28, 2013

I don't know if folks are still having trouble with this, but I'll share my experience and how I got it to work.

Environment: Windows 7 64bit, IIS 7.5, had CF developer 9.02 installed.

After installing, answering to use CF 10 for sites, first problem was that it tried to go to CF admin/config using 127.0.0.1 for localhost. I'm on comcast with wifi, so my localhost is 192.168.0.104.

Changed url to localhost and got error about duplicate entry for hbmxmlHandler. This is in the webroot web.config file, in my case C:\inetpub\wwwroot\

When I looked at web.config, handlers were pointing to CF9 not CF10. Also, in IIS, the virtual directories for CFIDE, Jakarta, etc. were still CF9.

Strangely enough, the CF10 web server configuration tool only had "None" available for sites to configure on localhost!

To eliminate all the trial and error iterations that didn't work... here's what did:

1) Go to the ColdFusion9\runtime\bin folder and execute the wsconfig.exe (right click to run as administrator) to remove the ISS All. So, no CF9 site support on any sites.

2) Run the CF10 web server configuration tool to add ISS All. Do not check 32bit support if you're on 64bit, it won't work.

3) Alter the web.config (for every site) to delete the <handler> and <defaultdocument> sections.

My web.config looked like this:

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <system.webServer>

        <handlers>

            <add name="JWildCardHandler" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll" resourceType="Unspecified" requireAccess="None" />

            <add name="hbmxmlHandler" path="*.hbmxml" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />

            <add name="cfswfHandler" path="*.cfswf" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />

            <add name="cfrHandler" path="*.cfr" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />

            <add name="cfcHandler" path="*.cfc" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />

            <add name="cfmlHandler" path="*.cfml" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />

            <add name="cfmHandler" path="*.cfm" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />

            <add name="jwsHandler" path="*.jws" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />

            <add name="jspHandler" path="*.jsp" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />

        </handlers>

        <defaultDocument>

            <files>

                <add value="index.cfm" />

            </files>

        </defaultDocument>

        <staticContent>

            <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package zip" />

        </staticContent>

    </system.webServer>

</configuration>

After editing, it now looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <system.webServer>

        <staticContent>

            <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package zip" />

        </staticContent>

    </system.webServer>

</configuration>

CF 10 is apparently using the isapi_redirect.dll for everything that used to be in the web.config.

** Also, please note that in CF 9, I had to change any sites not under default to use the defaultAppPool so they could inherit, as well as enabling ISAPI on the default site in handler mappings.

4) Run your localhost CFIDE/Administrator and it should come right up.

There may be a shortcut to all this, but it is what worked for me. Of course, now I've lost CF9.

Carl Von Stetten
Legend
November 9, 2012

@Richard350,

I just replied to your SO post.  Bottom line, make sure you have the correct IIS components installed before running the Web Server Configuration Tool:

  • CGI
  • .Net Extensibility
  • ASP.NET
  • ISAPI Extensions
  • ISAPI Filters

For those who can get "per-site" connectors working but not "All" sites, what account are you logged in as when you run the Web Server Configuration Tool?  Does that account have administrative rights on the computer?  The "ALL" websites configuration writes changes into the IIS configuration (which requires Administrator privileges) and each site's web.config file (which doesn't necessarily require Administrator privileges), while the "per-site" connectors write changes ONLY to web.config.

-Carl V.

Inspiring
November 9, 2012

Thanks, but all those components are installed.  I have been running the wizard under an administrator account.

The first time I installed Coldfusion 10, everything was fine.  It's when I installed update 4 that all the problems started to happen. 

The funny thing now is that Coldfusion seems to be working fine, I can access my application and the CF Administrator it's just no sites show in the web configuration wizard and the "Ok" is disabled, even after a reinstall of Coldfusion.

I'm wondering if it's a permission thing on some folders, I've had lots of problems with this on 2008 R2, but why it would stop working now, I don't know unless it's another one of those notorious windows patches.

Carl Von Stetten
Legend
November 9, 2012

I ran into some wierd issues with Updater 4 too.  I posted on the ColdFusion Server Administration forum with my issues.

-Carl V.

Inspiring
November 9, 2012

Any resolution to this?  I'm having the same sort of problem.  At first I had Coldufsion 10 developer installed on a Windows 2008 R2 64bit machine and everyting was fine.  Then I installed update 4 and I received a "Service unavailable" message.  It said I need to re run the web configuration, so I did and when I did I had the same problem, the "Ok" is disabled.  I went and reinstalled Coldfusion 10 from scratch and Coldfusion seems to work fine, but no sites show up in the web configuration wizard and the "Ok" is still disabled, so I can't install the patch.

I'm using the default install of 64 bit Coldfusion 10 to IIS 7.5.  It just seems as if the 64 bit version of Coldfusion has a lot of issues.

Inspiring
November 9, 2012

I got it working after a re-install.

The web connector wizard seemed to work when used on a per-IIS-site basis.

The "All" option did nothing.

This was on a DEV machine so it took up time but I wasn't too anxious.

I haven't applied the mandatory update to the server yet out of fear of

breaking the connectors etc etc

Come on Adobe - this is affecting a large number of users!

Participating Frequently
November 13, 2012

I have the same issue.  "All" option does nothing, I can choose the sites one by one with the connector tool and they work fine.  The strange thing is that "half" of the site works, but some doesn't.  This happened on two different servers, Windows 2k8 r2 Fresh installations.  CF8 worked fine for me.  Is there any solution to this yet?

Inspiring
September 9, 2012

Initially Had problems installing CF10 64bit dev on Win7 (64bit)  with IIS7.5 getting the same http 500 error. Having previously ran CF9 ok

The following worked:

1) Uninstall IIS and restart   

2) Rename existing inetpub folder

3) Reinstall IIS  With this Note: If you are configuring IIS 7 or IIS 7.5, before you proceed, ensure that you have the options ISAPI Extensions (Internet Information Service > Web Management Tools > World Wide Web Services > Application Development Features), ASP.NET , and CGI selected in the Windows Features dialog box (Start > Control Panel > Programs and Features > Turn Windows features on or off).

4) Install CF10 64 bit

5) CF Admin opened after install OK


WilzDezign
Participating Frequently
October 12, 2012

Mine was a bit different for the resolution. I found that I had the 32-bit CF 10 installed on my x64 Win 7. I read this article stating that I needed to allow IIS7 to run in 32 bit mode. I ran the command line prompt, immediately CF was working!

Legend
July 15, 2012

Do HTM HTML web pages work ok? Run CF10 web server configuration tool. Is IIS configured? HTH, Carl

Participating Frequently
July 15, 2012

Thanks for your reply.

Sure html pages work fine. I have run CF10 web config tool but no help.

Is IIS configured?-well that is the crucial question...as I state there are no handler mappings for .cfm

but IIS has ISAPI and CGI enabled.

Can anyone please tell me how to add cfm handler mappings manually for CF10 Dev ?

Most grateful for further help please...:-)

Legend
July 15, 2012

CF10 web config tool should look like this eg:

A similar thread had a solution where by IIS web root \inetpub\wwwroot had something wrong with web.config file. So perhaps the permissions or syntax of that will be interesting to know.

HTH, Carl.