CFM File Links Are Downloading Instead of Processing (Win7/IIS7)

658 views
Skip to first unread message

Greg Nilsen

unread,
Mar 22, 2012, 2:32:10 PM3/22/12
to ra...@googlegroups.com
I set up Railo this afternoon using the windows installer, set up my sites and got them all to come up, but when I click on any cfm links, they are downloaded as files.

Am I missing a config here?

Jordan Michaels

unread,
Mar 22, 2012, 2:54:50 PM3/22/12
to ra...@googlegroups.com
This means that IIS doesn't recognise the file types of CFM files. I
take it this wasn't a clean install?

Go ahead and uninstall 3.3.1, and try the 3.3.2 installer instead. You
may download a copy from here:

http://railo.viviotech.net/

3.3.2 uses a new connector method for IIS, the BonCode connector, which
was specifically designed for CFML. The 3.3.1 installer uses the
isapi_redirect, which is a Tomcat connector. It will work, but it isn't
specifically designed for CFML like the BonCode connector is.

Let us know how it goes.

Warm Regards,
Jordan Michaels

Michael Sprague

unread,
Mar 22, 2012, 2:59:53 PM3/22/12
to ra...@googlegroups.com
Hey Jordan,

I've been wanting to try the BonCode connector myself. Will the new installer upgrade from 3.3.1 with the old connector (installed with your installer) or do I have to fully uninstall 3.3.1 first?

Thanks,

Mike

Jordan Michaels

unread,
Mar 22, 2012, 3:08:51 PM3/22/12
to ra...@googlegroups.com
Hey Mike,

Yep, the installers have an upgrade process that will upgrade 3.3.1
installs in both Linux and Windows. Be sure to create a backup first -
just in case.

The upgrade process can upgrade Railo, Tomcat, the JRE, and the
connector to the latest versions at the time they were built.

Let me know how it goes. =)

Warm Regards,
Jordan Michaels

Michael Sprague

unread,
Mar 22, 2012, 3:12:37 PM3/22/12
to ra...@googlegroups.com
Thank you much for the response. I have a production app on a Vivio VPS so hopefully all goes well locally and I can upgrade there as well. I'll let you know how the process goes.

Thanks,

Mike

Greg Nilsen

unread,
Mar 22, 2012, 3:32:46 PM3/22/12
to ra...@googlegroups.com
I had uninstalled a copy of ACF 9 earlier in the day.

I used the 3.3.2 installer and I appear to be where I was before...

One thing I noticed is that there were no changes to the ISAPI filters.  I'm not sure where I should see the BonCode connector, but I'm not sure it's making the connections.

Jordan Michaels

unread,
Mar 22, 2012, 3:45:30 PM3/22/12
to ra...@googlegroups.com
> I had uninstalled a copy of ACF 9 earlier in the day.

Ah.

Okay, what's *probably* happening here is that the ACF connector wasn't
completely removed when it was uninstalled. It's probably still grabbing
the requests for CFM files and attempting to process them, but without a
JRUN back-end to pass it to, it's returning it as a binary or some other
downloaded mime type.

The BonCode connector runs as .NET, so it's handlers are configured as
.NET services IIRC. Honestly, Bilal can talk about how it works WAY
better then I can. Bilal is the one who developed the BonCode connector,
and supported mod_cfml with it.

What I would do if I were you, would be to examine the IIS handlers and
see if you can find and remove the ACF connector configs. that sounds
like what the road block is right now.

Warm Regards,
Jordan Michaels

Greg Nilsen

unread,
Mar 22, 2012, 4:13:41 PM3/22/12
to ra...@googlegroups.com
Well, I had previously removed all the ACF handlers I had seen before installing Railo.  I'm going through the list, and while I see a lot of "xxxxx-ISAPI-4.0_32/42bit" connector, they all appear to be related to .NET.  The only CF-related ones appear to be the BonCode handlers, and I'm still getting the pages downloading.

I'm not sure where else to look at the moment.

Jordan Michaels

unread,
Mar 22, 2012, 4:41:37 PM3/22/12
to ra...@googlegroups.com
I don't immediately know what all is installed with the ACF connector,
but I can help Google it to find out.

In the mean time, curiosity question: does the same thing happen with
Railo and the BonCode Connector uninstalled?

Warm Regards,
Jordan Michaels

Greg Nilsen

unread,
Mar 22, 2012, 4:49:23 PM3/22/12
to ra...@googlegroups.com
Well, if I remove Railo, no pages will load at all.  But with it installed with the connector, the "default" index.cfm pages for the the directory are loading properly.  It's just the *.cfm pages that are linked to from there that aren't loading properly.

So, it works when I don't specify the page, but not when I do...

Jordan Michaels

unread,
Mar 22, 2012, 5:18:15 PM3/22/12
to ra...@googlegroups.com
Alright. Let's try to understand what's happening a bit better.

When you say "no pages will load at all", do you mean you're getting the
IIS error that indicates it doesn't know how to handle the file? IE: "if
this is a script, add a sript map", etc? You'll get that message if you
have detailed errors enabled in IIS.

However, when it's installed, this URL works fine:
http://localhost/

but this URL does NOT work fine:
http://localhost/index.cfm

So... when you hit the index.cfm file directly, you get prompted to
download the file. Is this correct?

Warm Regards,
Jordan Michaels

Greg Nilsen

unread,
Mar 22, 2012, 5:25:51 PM3/22/12
to ra...@googlegroups.com
Yea, that's the gist of it.  I have 4 sites set up:


        <Host name="football.localhost.com" appBase="webapps">
             <Context path="" docBase="C:\inetpub\wwwroot\football" />
    <Alias>football.localhost.com</Alias>
        </Host>
        <Host name="test.localhost.com" appBase="webapps">
             <Context path="" docBase="C:\inetpub\wwwroot\test" />
    <Alias>test.localhost.com</Alias>
        </Host>
        <Host name="project.localhost.com" appBase="webapps">
             <Context path="" docBase="C:\inetpub\wwwroot\project" />
    <Alias>project.localhost.com</Alias>
        </Host>
        <Host name="reader.localhost.com" appBase="webapps">
             <Context path="" docBase="C:\inetpub\wwwroot\reader" />
    <Alias>reader.localhost.com</Alias>
        </Host>

If I go to http://project.localhost.com/, it loads fine, but if I click on a link like http://project.localhost.com/index.cfm, it prompts to download the file (or automatically downloads it in Chrome).

Sorry if I wasn't clear earlier.

Jordan Michaels

unread,
Mar 22, 2012, 6:31:21 PM3/22/12
to ra...@googlegroups.com
What do you see in your IIS7 handler mappings?

I've attached a copy of my dev environment so you have a comparison.

Warm Regards,
Jordan Michaels

win7-handler-mappings.png

Jordan Michaels

unread,
Mar 22, 2012, 6:35:55 PM3/22/12
to ra...@googlegroups.com
Also, if you don't have production sites on this system, it may be
useful to remove any IIS features that may be assisting the cause of the
interference. I'm attaching a screen shot of my IIS features as well for
comparison.

Warm Regards,
Jordan Michaels

win7-iis-features.png

Greg Nilsen

unread,
Mar 23, 2012, 8:40:39 AM3/23/12
to ra...@googlegroups.com
Ok, I had a bunch of other handlers for non CF file types which I have removed.  I also updated my server configuration to match yours.

I then had to reboot because of the configuration changes.  When I was back up and running, I continued to get the same problems.

-SerGregor

Jordan Michaels

unread,
Mar 23, 2012, 2:17:53 PM3/23/12
to ra...@googlegroups.com
Do the sites work okay when hit on the Coyote (internal Tomcat web
server) port?

IE:

football.localhost.com:8888
test.localhost.com:8888

...etc?

Knowing this will tell us if the problem is indeed with IIS.

Warm Regards,
Jordan Michaels

On 03/23/2012 05:40 AM, Greg Nilsen wrote:
> Ok, I had a bunch of other handlers for non CF file types which I have
> removed. I also updated my server configuration to match yours.
>
> I then had to reboot because of the configuration changes. When I was
> back up and running, I continued to get the same problems.
>
> -SerGregor
>
>
> On Thursday, March 22, 2012 6:35:55 PM UTC-4, Jordan Michaels wrote:
>
> Also, if you don't have production sites on this system, it may be
> useful to remove any IIS features that may be assisting the cause of
> the
> interference. I'm attaching a screen shot of my IIS features as well
> for
> comparison.
>
> Warm Regards,
> Jordan Michaels
>
> On 03/22/2012 02:25 PM, Greg Nilsen wrote:
> > Yea, that's the gist of it. I have 4 sites set up:
> >
> >
> > <Host name="football.localhost.com

> <http://football.localhost.com>" appBase="webapps">


> > <Context path="" docBase="C:\inetpub\wwwroot\​football" />

> > <Alias>football.localhost.com <http://football.localhost.com><​
> /Alias>
> > </Host>
> > <Host name="test.localhost.com <http://test.localhost.com>"


> appBase="webapps">
> > <Context path="" docBase="C:\inetpub\wwwroot\​test" />

> > <Alias>test.localhost.com <http://test.localhost.com></​Alias>
> > </Host>
> > <Host name="project.localhost.com <http://project.localhost.com>"


> appBase="webapps">
> > <Context path="" docBase="C:\inetpub\wwwroot\​project" />

> > <Alias>project.localhost.com <http://project.localhost.com></​Alias>
> > </Host>
> > <Host name="reader.localhost.com <http://reader.localhost.com>"


> appBase="webapps">
> > <Context path="" docBase="C:\inetpub\wwwroot\​reader" />

> > <Alias>reader.localhost.com <http://reader.localhost.com></​Alias>


> > </Host>
> >
> > If I go to http://project.localhost.com/, it loads fine, but if I
> click
> > on a link like http://project.localhost.com/​index.cfm

> <http://project.localhost.com/index.cfm>, it prompts to

Greg Nilsen

unread,
Mar 23, 2012, 3:07:54 PM3/23/12
to ra...@googlegroups.com
Before seeing this, I actually grabbed a registry cleaner and ran it to clear out any old/orphaned entries.  That seems to have done the trick, and I'm up and running now.

Now I'm just trying to adjust and update things like my debugging to show all the variable values.  There seem to be a few ways that I was accessing my CFC's previously in ACF that Railo doesn't seem to like.

But at least it's up and running!

Jordan Michaels

unread,
Mar 23, 2012, 3:10:24 PM3/23/12
to ra...@googlegroups.com
A registry cleaner eh? Haha. I find that amusing.

Well, good deal. I'm glad you're up and running now!

Warm Regards,
Jordan Michaels

Reply all
Reply to author
Forward
0 new messages