all groups > coldfusion flash integration > august 2005 >
You're in the

coldfusion flash integration

group:

CF MX 7 Dev Edition/IIS Flash Remoting Setup


CF MX 7 Dev Edition/IIS Flash Remoting Setup snewman
8/7/2005 12:00:00 AM
coldfusion flash integration:
I've spent days searching around for information on how to get Flash remoting
to work on my ColdFusion MX 7 Developer's Edition on IIS/XP Pro setup. I've
tried it on Apache, IIS, reinstalled CF using JRUN, reinstalled CF as
standalone, installed both the Actionscript 1.0 and 2.0 remoting components,
etc.

Long story short - my install is "out-of-the-box" with all default settings,
installed onto IIS on default port 80. I cannot browse to
"http://localhost/flashservices/gateway", I get a page not found error. In
Flash, using the NetConnection debugger, I get the NetConnection.Call.Failed
error on the same URL. I've also tried
"http://localhost:8500/flashservices/gateway", and that doesn't work, either.
(Not surprising, I'm not using the CF development server, it's tied to IIS.

It looks like a lot of the information I've found out there applies to MX 6.1
- I'm not well versed enough to know if there is a difference between that
version and 7. I found some information that said to check the
CF_ROOT/wwwroot/WEB-INF/web.xml file to make sure the gateway is installed -
specifically looking for a parameter called DISABLE_CFWS_ADAPTERS. This doesn't
seem to be found in version 7.

I've also used the Web Server Configuration tool to check the installation - I
have added the "all IIS" and the "Default Web Sites" as someone out there
suggested. I've also run the batch files to remove all connectors, and
reinstall all connectors. No luck.

In the Flash Pro MX 2004 IDE, I can see Window > Other Panels > NetConnection
Debugger, and the .AS files are installed under firstrun/classes, so I'm
assuming the components are installed correctly.

Does anyone have any ideas what I'm doing wrong? If I'm an idiot and missing
something obvious, please let me know. I'm anxious to start working through the
O'Reilly Flash Remoting book, and can't even get the first example to work.

Thanks in advance for any help or guidance someone can provide!

Re: CF MX 7 Dev Edition/IIS Flash Remoting Setup Abinidi
8/8/2005 12:00:00 AM
Look in the C:\CFusionMX7\wwwroot\WEB-INF\gateway-config.xml file and uncomment
<adapter>coldfusion.flash.adapter.CFWSAdapter</adapter>

Re: CF MX 7 Dev Edition/IIS Flash Remoting Setup snewman
8/10/2005 1:45:02 AM
I uncommented the line, and I'm not getting the errors I was before, but it's
still not working as I'm expecting. I discovered something that may lead me in
the right direction - a parameter called
<redirect-url>{context.root}</redirect-url>. When I changed the value to
something like http://www.yahoo.com, browsing to
http://localhost/flashservices/gateway imediately redirected me to Yahoo. In
the flash.log, I get a line that says "Request received was not Flash-based
(not of the binary AMF protocol". Using a Flash helloWorld example I found
online, I don't get http.call.failed, but I don't get any results back, either.

I might be doing something that is obviously wrong to the trained eye, but I'm
new to CF server (but not IIS). All of these examples I've found online have me
putting files in the C:\CFusionMX7\wwwroot folder. Do I do this even if I'm
using IIS, not the built in web server? I'm not sure if CF uses its own wwwroot
folder in conjunction with IIS' inetpub/wwwroot folder that my site is served
from.

Could it also be that I'm using examples built for CFMX6.1 and not the 7 that
I have installed? I don't know enough about the differences b/n versions to
know if I'm screwing it up. I have both the AS1 and AS2.0 components installed.



Re: CF MX 7 Dev Edition/IIS Flash Remoting Setup Faadiel
8/15/2005 6:50:15 PM
OK,

Have you installed the remoting classes? Visit the flash developers home page,
click on remoting then download and install the remoting product. Also copy
down the remoting class source files and copy them to the Flash MX First Run
folder.

Hope this helps.

Brendan
AddThis Social Bookmark Button