"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.batto remove CF7 IIS connector. Followed by:
\CFusionMX7\bin\connectors\IIS_connector.batto 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...


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
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!
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.
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)