4 Replies Latest reply on Jul 20, 2009 2:05 AM by chintan741-nHKN4g

    Flex application not working when deployed run from Server

    chintan741-nHKN4g

      Hi,

      I have Flex application which takes a parameter from user, makes a web-service call and returns the message.

      This application is running perfectly when I launch from IDE.

      But when I copy the files from bin-release to server and launch it, it gives me no result.

       

      In the crossdomain file on the server which hosts web-service, I have added the my host IP in the

      allow-access-from domain tag.

      In the initialization method of the application I load crossdomain using following code:
          Security.allowDomain("remoteservername");
          Security.loadPolicyFile("http://remoteservername/crossdomain.xml");
          var request:URLRequest = new URLRequest("http://remoteservername/crossdomain.xml");
          var loader:URLLoader = new URLLoader();
          loader.load(request);

       

      Is there a way I can debug application when running from server?

      Please give me some pointer to solve this problem.

       

      Thank you.

      Chintan