IIS and Flex CF Remoting Project Errors

Another gem I gleaned off the FlexCoders mailing list a couple months ago. There is a known bug in this version of FlexBuilder when creating Flex projects which use ColdFusion remoting and IIS as the web server. Apparently the new project wizard expects you to use the built-in CF web server on port 8500. If you are using IIS locally on port 80, you will get an error when you run your application. This is because the CF Flex remoting services compiler arguments are omitted when the project is built.

This is slated to be fixed in a future update, but in the meantime the workaround is to right-click on the project and select Properties/Flex Compiler. In the 'Additional compiler arguments:' field you need to add the following text to the end of the line (this assumes you have a default standalone installation of CFMX7):

-services "C:\CFusionMX7\wwwroot\WEB-INF\flex\services-config.xml"

So, assuming your locale is English US, the full line should read:

-locale en_US -services "C:\CFusionMX7\wwwroot\WEB-INF\flex\services-config.xml"

The added arguments are supposedly the only difference between a basic project and a CF remoting project, so to avoid confusion it is probably better to just create a basic Flex project and add the additional CF compiler arguments afterward.

TrackBacks
There are no trackbacks for this entry.

Trackback URL for this entry:
http://www.jefffleitz.com/trackback.cfm?593B498E-0E90-8054-32C91A8909F7E915

Comments
Javier Julio's Gravatar Does that path to the services-config.xml file need to be changed if deploying to a different CF server? For example, I develop my Flex/CF application locally on a CF8 single instance install on Mac but its deployed to a multi server instance on Windows. Hence their are completely different file paths to finding the services-config.xml file. I take it I would have to recompile the Flex application with the path to the CF8 multi instance (Windows) services-config.xml file if I have modified it??
# Posted By Javier Julio | 1/21/08 12:01 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.5.001.