Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / March 2006



Tip: Looking for answers? Try searching our database.

Remoting not Working on Web server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dan4 - 23 Jul 2004 17:33 GMT
Has anyone had this problem?

I developed a completed flash remoting project.  The flash SWF connection to
the Database works, on the a test server located inside a firewall.  
But, the Flash SWF connection to the Database does not work on the production
server outside the firewall.  Both servers are Identical exept the test is
inside the firewall.  
Here is the odd part,  within the flash program when I test the FLA
(connecting to the production server) it works.

Any one know how to fix this?    
alexc - 23 Jul 2004 22:26 GMT
Great! - I'm not going mad after all...

I have exactly the same problem & have put it to 5 remoting forums over the
last few weeks, and no answer yet -I'll let you know via this forum of the
solution when it emerges. I'm even starting to think that there are no
FlashMX2004/CF6.1/Remoting/IIS apps actually out there that work - (prove me
wrong MacroMedia!).

My own app. is called CHOICEIT:
After more digging using the NetConnectionDebugger, I get the following error
msg:

Amf status call: No service named ChoiceIT.ChoiceITsql is known to Flash
remoting MX

Against this we have the following facts:

*Installed (using default settings): ColdFusion v6.1 standard (not developer)
*Installed(using default settings):Flash Remoting 2004 v2 (tried v1: same
result)
*Installed IISv6
*setup: c:\inetpub\wwwroot\ChoiceIT\ChoiceITsql.cfc
*working OK: ColdFusion/Remoting/Flash mx2004 (but locally between webserver &
database machines)
*not working: connection to database server m/c, when invoked from the internet

Can anyone out there solve this tantalisingly close problem?

Regards, Alex
tek333 - 26 Jul 2004 05:52 GMT
Let me ask some questions to narrow down the possibilities:

1) Are you using the exact same version of the connection gateway code in your
local and Internet copies of the .as code?  They need to be slightly different
and compiled into 2 versions of the swf file, one for each location. The local
copy should have something like
"NetServices.setDefaultGatewayUrl("http://localhost/flashservices/gateway")".
The Internet copy should use
"NetServices.setDefaultGatewayUrl("http://www.mywebsite.com/flashservices/gatewa
y");"
 instead.

2) Since you are  connecting to a database using a cfc, how is the data
connection being described? Something like "datasource=myDatabase" or are you
pointing to what is defined in the application.cfm file?

3) Where is your application.cfm file? In the component folder or the CF root
folder or both places? Is the same true in the external CF folders?

4) Is every datasource that was defined in the local CF administrator, also
defined in the external copy of CF?
dan4 - 26 Jul 2004 13:17 GMT
Are you asking these questions to to both of us, or Alexc?  His problem appears different then mine.  I guess the
question would be:  "are there any problems with flash remoting and Firewalls?"
tek333 - 29 Jul 2004 08:03 GMT
I was asking my questions of either of you.

Flash Remoting shouldn't have any probelms with firewalls, as it uses port 80,
like the rest of your web content.

But since you describe an external CF server connecting back to an internal
database, the firewall problem might be connecting to the database. Do you have
port 1433 open on the firewall, so the CF server can connect back to the SQL
server?  (if yes, that's not a Flash Remoting problem, just standard CF to SQL
issues)

Did you check out the items I listed in my original post? I think they are a
better place to start investigating.
Rickkkkk - 29 Jul 2004 16:17 GMT
I do have the same problem, but the only difference is, i'm trying to do it
inside the firewall.
on my computer(Server computer) where everything is installed, I typed :
NetServices.setDefaultGatewayUrl("http://localhost:80/Manager/gateway.aspx");
Everything works perfectly !
and from the other computer I do :
NetServices.setDefaultGatewayUrl("http://[server IP]/Manager/gateway.aspx");
:(   Only the page with the movie appeared ! NO DATA !!!
Is that possible it's because I don't have license to do so ? It's a
evaluation version.

Thanks
tek333 - 29 Jul 2004 16:48 GMT
It looks like you're using .NET version of Flash Remoting. Here's what the MM
web site says:

"After 30 days, the Flash Remoting MX Trial Version expires and reverts to the
Developer Version, a free, full-featured license of Macromedia Flash Remoting
MX intended for development use only. Deployment is restricted to the
developer's computer for building applications. Applications deployed on the
Developer Version will not accept requests from other client machines."

So you either have to buy the stand-alone Flash Remoting product or use the
version that's built into Cold Fusion MX.
BobK101060 - 30 Jul 2004 20:09 GMT
I hope you don't mind me jumping in on this thread, but I think I am
experiencing a very similar problem. I have an flash app that when run from my
internal web server acts differently depending on how you access the html file.
If I start the app up by entering the network path to the web server (i.e.
M:\MYFOLDER\MYAPP.HTML) evertything works fine. However, when I try to access
the same app using a URL (i.e. http:\\www.internalserver.com\myapp.html) the
flash app opens up fine, but it does not communicate with the database. In
reading through this thread it appears that it may have to do with how I set my
default gateway. Currently, it is set as follows:

var gwURL = "http://servername/flashservices/gateway/";
NetServices.setDefaultGatewayUrl(gwURL);
var conn = NetServices.createGatewayConnection();

In addition, I am also using Application.cfm. Mine is in the base folder with
the swf files. It is not in the components directory. Again all of this works
fine locally and when I start the app up from the server. The problem is when I
start the app through a URL. Then it appears as though the App can not talk to
the database.

Any help you can offer would be much appreciated.
Huseyin S - 21 Feb 2006 21:58 GMT
Hi, I have similar but a different problem.
I am using flash remoting with .NET property of remoting tool.
I run the application successfully in my local machine. however when I upload it to the web server I cannot get answer back.
When I debug it on Netdebugger I get those results :

Local :
Connect to gateway via :  NetServices.setDefaultGatewayURL"http://localhost/App/FlashGateWay/gateway.aspx");
gateWayConnection = NetServices.createGatewayConnection();
OK at this point

CALL Function
ASPXService = gateWayConnection.getService("App.Users.ReturnUserProperty", this);
OK here also works. I see Result in NetDebugger

when I changed the gateway line like this   

Connect to gateway via :  NetServices.setDefaultGatewayURL"http://www.applicationadress.com/App/FlashGateWay/gateway.aspx");
gateWayConnection = NetServices.createGatewayConnection();
OK (I think it woks because I write some dummy address it gives error trace like NetConnection.Call.Failed)

CALL Function
ASPXService = gateWayConnection.getService("App.Users.ReturnUserProperty", this);
NOT OK NO RESULT RETURNS
Fodor - 05 Mar 2006 07:47 GMT
I built a flash remoting grid that connects to the community_mx database of
articles on Flash.  It works fine when used on my local machine and connects to
the database at    http://www.communitymx.com/flashservices/gateway/ but when I
ftp the same swf file to my server in cyber space. It no longer communicates
with the database at communitymx.
The non-working version is at:  
http://www.backatyou.biz/billcory_db.swf
use search terms related to flash such as actionscript or just flash.   It
still won't work thought because it no longer communicates with the database
once I put the swf file on an internet server.

What's up with this???
Fodor - 18 Mar 2006 18:26 GMT
Yes the issue has been answered.  But solution is more involved than I hoped.  
YOu can not access data across domain names due to a new security feature.


http://www.macromedia.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_14
213&extid=tn_14213&dialogID=27226603&iterationID=1&sessionID=9630484424981685216
4&stateID=0+0+27234024&mode=simple
Vitham - 18 Mar 2006 00:35 GMT
Hi

Dod you solve the issue because i have the same problem, everithing works fine
until i replace my localhost to tha name for my server.

Tried everithing.. IIS security, u name it

Thanks in advanced
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.