Skip to main content
April 1, 2008
Answered

Trying to use Flash Remoting with CF8 and Flex 3

  • April 1, 2008
  • 1 reply
  • 1073 views
I really hope someone can help with this. I've googled to death for two days and can't find anything. I'm at my wits end. I've installed CF8 on Windows XP Pro on IIS5.1 with multiple sites. I'm also using Flex 3. I'm trying to get a simple helloworld app to work using flash remoting with a cfc. When I run it, in the error dialog, I get this error among others:

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: ' http://localhost/flex2gateway/'"

I've tried to connect to http://localhost/flex2gateway/ through the browser and I get a page cannot be found message. Note that I had to change the root directory in IIS to point to my new site, so it's not the default site any longer. If I change it back to the default, I can find this file. I can't figure out for the life of me how to get that url to work in the new site? I've also tried adding the JRunScripts virtual directory in my new site as this site suggested and it still can't find it.

http://www.frenches.com/blog/index.cfm/2007/5/7/Flex-Coldfusion--Dont-make-me-have-to-separate-you-two

Surely someone else has multiple sites and knows how to solve this?

Thanks!
Holli
This topic has been closed for replies.
Correct answer
Hallefrickinglujah! I finally got it to work. I'm going to post the answer hear to help someone in the future. For sites you create AFTER you install CF8, you have to create the JRunScripts virtual directory as described in this article: http://www.frenches.com/blog/index.cfm/2007/5/7/Flex-Coldfusion--Dont-make-me-have-to-separate-you-two

Just make sure that after you create it, you go into IIS and give execute permissions to Scripts and Executables - It's a drop down in the properties dialog of the virtual directory. Good luck!

1 reply

April 1, 2008
Here's a neat little addition to this problem. I had several sites created BEFORE I installed CF8. On THOSE sites, I can get to http://localhost/flex2gateway, but I can't on the new sites. I'm not going to reinstall CF8 every time I have to create a new site! This is crazy. Any ideas? Thanks!
Correct answer
April 1, 2008
Hallefrickinglujah! I finally got it to work. I'm going to post the answer hear to help someone in the future. For sites you create AFTER you install CF8, you have to create the JRunScripts virtual directory as described in this article: http://www.frenches.com/blog/index.cfm/2007/5/7/Flex-Coldfusion--Dont-make-me-have-to-separate-you-two

Just make sure that after you create it, you go into IIS and give execute permissions to Scripts and Executables - It's a drop down in the properties dialog of the virtual directory. Good luck!