Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
I'mAndy #1
Problem deploying to remote host
I'm having trouble deploying a flex beta 3 project - which works fine locally -
to a remote host
I am putting myProject.html and myProject.swf in the root directory
I am using a stylesheet in /assets/myStyleSheet.css and a cfc in
/components/myCFC.cfm with a trusted dsn connection
Included in the code is
<mx:RemoteObject
id="svc" destination="ColdFusion" source="components.myCFC"
etc.
</RemoteObject>
When I access the URL, all I get is a blank page (no error). I also added the
history files to
the root directory with no change
Not sure it has anything to do with the CF aspect as a simple example from the
Adobe lessons
produces the same effect - or lack of it
Guess I'm missing something pretty basic
Any guidance appreciated
I'mAndy Guest
-
#20260 [Com]: Cookies set on Remote Host but not on localhost
ID: 20260 Comment by: asbo at iserv dot net Reported By: m_e_brown at hotmail dot com Status: No Feedback Bug... -
Read user log from a remote host
Hi, Just looking for soem guidance on the above topic,Reading a remote hosts suer log. basically what i am trying to do is get the suer to enetr... -
possible to execute system command on remote host?
I have a couple clients with domains on a remote host that uses cPanel for domain management. I use a basic old version of ws_ftp to... -
deploying from Windows 2003 staging server to remote production server
What do you guys use to deploy from your staging servers to your remote production servers in team environments? Normally I FTP the files myself,... -
Deploying ASP.NET database application to remote server
Everything in the deployment works fine with the exception of the address of the database also deployed on the remote server. The string address... -
ntsiii #2
Re: Problem deploying to remote host
Likely a security problem.
The Flash Player (Flex app) cannot acces an url that is in a different domain
than the domain that served the application swf.
The soultion is a crossdomain.xml file in the web root of the site you are
trying to get data from. In a default IIS installation, the crossdomain.xml
file goes in the wwwroot folder. If you have trouble figuing out where to put
it, put a copy everywhere, then delete them till it breaks. A sample
crossdomain file is below. Note, it provides for complete access by everyone.
The other solution is to use a "proxy". This is just some server process that
forwards data service calls from the client player to the data source url.
That server process is not subject to the Flash Player security restrictions.
Tracy
crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "<a target=_blank
class=ftalternatingbarlinklarge
href="http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<!--">http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<!--</a> Policy file for <a target=_blank class=ftalternatingbarlinklarge
href="http://">http://</a> -->
<cross-domain-policy>
<allow-access-from domain="*">
</cross-domain-policy>
ntsiii Guest
-
I'mAndy #3
Re: Problem deploying to remote host
Thanks for that. I think there is some progress
However whenever I run an html file (even just a Hello World label) I get a
blank page
swfs are appearing but for those requiring remoteobject I am getting this error
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP:
Failed"]
at mx.rpc::AbstractInvoker/<a target=_blank class=ftalternatingbarlinklarge
href="http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at">[url]http://www.adobe.com/2006/flex/mx/internal::faultHandler([/url])
at</a> mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/::faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/mx.messaging:Channel::connectFailed()
at
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChannel::conn
ectFailed()
at
mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::statusHandle
r()
Is this still a crossdomain.xml problem or something else?
cheers
I'mAndy Guest



Reply With Quote

