"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
BlogCFC was created by Raymond Camden. This blog is running version 5.5.1, hosted by TalkWebSolutions.