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 / May 2006



Tip: Looking for answers? Try searching our database.

Flash Remoting Works Locally But Not On The Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vdiaz212 - 13 May 2006 04:58 GMT
Hello,

I have a flash file that connects to an asp.net page. The aspx page queries a
databse and returns a set of records to flash. Flash reads in those records and
processes those records. Locally, this works fine. However, on the server,
nothing happends. I spoke with tech support at hosting company and they tell me
everything is installed for Flash Remoting.

Here is the code thats on the server:
import mx.remoting.NetServices;
import mx.remoting.NetDebug;
mx.remoting.debug.NetDebug.initialize();

//CONSTRUCTOR
var inited:Boolean = false;
if(!inited){
     inited = true;
     NetServices.setDefaultGatewayUrl("http://63.134.251.243/gateway.aspx");
     var gatewayConn:Object = NetServices.createGatewayConnection();
     gatewayConn.setDebugID( "Gateway Connection" );
     
     var SQLQueryToolService:Object = gatewayConn.getService("matthewlemke",
this );
}
function SQLQueryToolAction(){    
     SQLQueryToolService.test("SELECT * FROM flashImages");    
}
function test_Result(result){
     trace(result);
     _root.abc.text = result.toString();
}
SQLQueryToolAction();

Here is the code locally:
import mx.remoting.NetServices;
import mx.remoting.NetDebug;
mx.remoting.debug.NetDebug.initialize();

//CONSTRUCTOR
var inited:Boolean = false;
if(!inited){
     inited = true;
     NetServices.setDefaultGatewayUrl("http://localhost/matt/gateway.aspx");
     var gatewayConn:Object = NetServices.createGatewayConnection();
     gatewayConn.setDebugID( "Gateway Connection" );
     
     var SQLQueryToolService:Object = gatewayConn.getService("matt", this );
}
function SQLQueryToolAction(){    
     SQLQueryToolService.test("SELECT * FROM flashImages");    
}
function test_Result(result){
     trace(result);
     _root.abc.text = result.toString();
}
SQLQueryToolAction();

Any help is greatly appreciated.

Thanks,

Vic
MaxManNH - 16 May 2006 18:24 GMT
I am having the exact same problem. My remoting application works fine on my
laptop as long
as the url for the gateway reads <a target=_blank
class=ftalternatingbarlinklarge
href="http://localhost/remotingData/gateway.aspx,">http://localhost/remotingData
/gateway.aspx,</a> but if I change
it to the name of my machine and attempt to run the swf through IE it just
sits there and
receives no reply. Is this a permissions issue?

The swf will actually work if I open the html page that the swf is embedded in
from the file
on my pc. It just won't work when I attempt to navigate to it by typing in the
URL in IE.

Flash MX2004 Professional
Flash Remoting Components MX2004 (unlicensed)
IIS 6.0
IE 6.0
 
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.