"Page Not Found (404)" error accessing Coldfusion /flex2gateway on IIS on windows XP

It's taken me 2 hours to get to the bottom of this, but I finally managed to fix the problem:).

Machine History

My machine had been set-up with CFMX 6.1.

I had then installed CFMX 7.0.1 in addition to CFMX 6.1, with a virtual directory set-up within IIS with all the CF7 mappings.

Subsequently I installed the CFMX 7.0.2 updater.

Problem Description

Any requests made to http://localhost/flex2gateway/ resulted in a standard IIS "Page not Found" 404 error being displayed.

Requests to http://localhost/flex2gateway/index.cfm resulted in "No configured channel has an endpoint path /flex2gateway/index.cfm'" JRun Servlet error being displayed.

This made me think that the problem was not with the Flex configuration, but rather that the request was not getting as far as JRun / CF / Flex - i.e. it was a problem with the CF connector.

Solution:

I ran:
\CFusionMX7\bin\connectors\Remove_ALL_connectors.bat
to remove CF7 IIS connector. Followed by:
\CFusionMX7\bin\connectors\IIS_connector.bat
to reinstall the CF7 IIS connector.

Success!

Requests to http://localhost/flex2gateway/ now result in a blank page - http status 200 - and flex applications can now access CFCs successfully.

Hopefully this helps someone out there - I couldn't find anything particularly helpful on google when I looked...

Comments
Kenny's Gravatar Thank you! You just solved my problem! I really appreciate you taking the time to post your findings!
# Posted By Kenny | 28/04/08 18:44
Dan Lancelot's Gravatar @Kenny - No problems - happy to help :)
# Posted By Dan Lancelot | 29/04/08 14:43
John Ramos's Gravatar It took me a day to run into this post and it solved my issue! Ahh finally I come back from configuration hell.

Wondering if you develop your flex app within the CF wwwroot (C:\CFusionMX7\wwwroot) or is it possible to move the project outside of CF's webroot and still have flex remoting work?

Thanks Kevin
# Posted By John Ramos | 06/05/08 03:08
John Ramos's Gravatar Dan sorry I didn't mean to write 'Thanks Kevin', 'Thanks Dan' would be more appropriate :)
# Posted By John Ramos | 06/05/08 03:10
Wally Kolcz's Gravatar Not sure if this post is still active, but I am so confused on this flex2gateway directory and cannot find a single answer in Google or the groups.

Is the flex2gateway something that needs to be added to each app to access CF? I am getting this error on my app (Flex3 and BlueDragon 7):

faultCode:Client.Error.MessageSend
faultString:'Send failed'
faultDetail:'Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Status 403: url: 'http://med.umich.edu/flex2gateway/''

If I need to add this directory (flex2gateway), what goes in it? I just want to connect to my CFC and populate the Flex app with my data!
# Posted By Wally Kolcz | 15/07/08 13:58
Dan Lancelot's Gravatar @Wally - The initial post referred to Macromedia / Adobe ColdFusion 7.0.2

I wouldn't know where to start with BlueDragon 7 - it's a completely different product with a 9X% shared syntax - I'd suggest that you contact New Atlanta (http://www.newatlanta.com/support/bluedragon/index...), or post to BlueDragon specific mailing lists with these issues.
# Posted By Dan Lancelot | 21/07/08 11:16
Gil Carroll's Gravatar Thanks a lot! This also saved me after several hours. BTW, running this will also remove any mappings in IIS, like .html that I was running through CF. Be prepared to re-add them.
# Posted By Gil Carroll | 21/11/08 23:16
Mark Starr's Gravatar Don't do the Remove_ALL_connectors *or* the IIS_connector.bat on Vista/IIS7 with CFustion702: it'll wipe out some DLLs and such that CF cannot replace.
If you *do* happen to do the wsconfig, then you'll need to hand-configure the connections.
See http://www.communitymx.com/content/article.cfm?cid... (thanks Heidi)
# Posted By Mark Starr | 18/02/09 20:08
BlogCFC was created by Raymond Camden. This blog is running version 5.5.1, hosted by TalkWebSolutions.