Problem deploying to remote host

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. #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...
    2. 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...
    3. 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...
    4. 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,...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139