This content has been marked as final. Show 3 replies
For RemoteObject you have to talk directly to the flex2gateway and not through the web server (IIS in your case). That's why the port is in the examples. You can serve the SWF via the web server, but RemoteObject must communicate directly with the gateway.
If you can do: http://localhost:8500/flex2gateway/ (where 8500 is your port for ColdFusion) and you get a blank page, that's the endpoint you want.
I just set up FB and CF on another machine (Window XP SP2) and successfully hit an RO with no problems.
Is it possible that it could be a file permissions issue? Here's why a mention that.
When I was trying to get the RO to on my first pc (Window XP Media Ctr Edt SP2), I got the RO to work if I ran the html page from file access (ex: C:\Documents and Settings\Jeff\My Documents\MyWebs\HelloWorld_ro\bin\HelloWorld_ro.html ).
However, if I tried to run it thru the web server ( http://localhost/HelloWorld_ro/HelloWorld_ro.html), I got 403 error - you do not have permission to access this page. So then I added "Scripts & Executables" to the default web site in IIS and then I got the "lc_id undefined" error and the browser wouldn't render the rest of the page.
So then I went thru the Permissions Wizard in IIS (right-click on default web site and choose All Tasks) and used:
- "Select new security settings from template > Public Web Site > Leave current dir and file permissions intact, and add recommended permissions"
After it recursively applied permissions the RO would only return the 405 error mention in my first post.
So then I tried the Wizard again except choosing the "Replace all dir and file permissions (recommended)", and still got the same 405 error when running the RO.
And interestingly enough, I was never able to get the RO to run from file access again after using the permissions wizard. It's a little more difficult to experiment with file permissions in an XP environment vs. a Win Server environment since you cannot see explicit users and groups permissions in XP.
Can you shed any light on this? There may be something here.
Here's what worked for me. I did another reinstall of CF 7.02, but this time I deleted all the residual files left over after the uninstall. You would be surprised at some of the files that are left behind.
I hope this helps someone else eliminate any unnecessary agony.