3 Replies Latest reply on Oct 30, 2008 7:28 AM by rtalton

    Security Violoation from FB3

    Shirker1 Level 1
      Hi
      I am rephrasing a previous post, I might have some more information and make it clearer.
      I have built an application with FB3 trial version.
      This application basically has google maps and httpService request to an external server.
      From within Flex Builder everything works OK.
      I do a export release build and then:
      From outside FB3 I go to the bin-debug directory and open up the .html page, everything works OK.
      From Outside FB3 I go the bin-release directory and open up the .html page I get the following error:


      Error:(mx.messaging.messages::ErrorMessage)#0
      body = (Object)#1
      clientId = "DirectHTTPChannel0"
      correlationId = "698CCF35-9B56-E629-0C23-49D8E84F9B54"
      destination = ""
      extendedData = (null)
      faultCode = "Channel.Security.Error"
      faultDetail = "Destination: DefaultHTTP"
      faultString = "Security error accessing url"
      headers = (Object)#2
      messageId = "9FA228E2-6AD0-8196-5B93-49D8E8BD133C"
      rootCause = (flash.events::SecurityErrorEvent)#3
      bubbles = false
      cancelable = false
      currentTarget = (flash.net::URLLoader)#4
      bytesLoaded = 0
      bytesTotal = 0
      data = (null)
      dataFormat = "text"
      eventPhase = 2
      target = (flash.net::URLLoader)#4
      text = "Error #2048: Security sandbox violation: file:///C:/Documents%20and%20Settings/K/Desktop/George/Flex/__wk1/SuperCell/bin-release/S uperCell.swf cannot load data from http://213.176.178.211:5000/WebStrut/Logger?op=gets&1225304631375."
      type = "securityError"
      timestamp = 0
      timeToLive = 0


      Is it because of Trial Version or what else could it be?
        • 1. Re: Security Violoation from FB3
          rtalton Level 4
          Opening the app from the bin-release directory is the problem. The Flash Player throws an error #2048 because it is not allowed to access data from a different domain (cross-domain security). You are attempting to access data from your client machine from a different domain from within the Flash Player.

          The release version of the application will only work correctly after you upload it to a webserver and open it using your web browser. Try it.
          • 2. Re: Security Violoation from FB3
            Shirker1 Level 1
            Thanks for your reply.
            I did try it also after deploying to the the webServer.
            I then get a different error
            PLease check the API key, swf and network availability.

            API Key is ok for sure, NETWORK is ok have crossdomain and different programs work, something in SWF is wrong. I still think it is because of trial version? Or what?

            • 3. Re: Security Violoation from FB3
              rtalton Level 4
              Sounds like a Google maps error now. I've only just started using the google maps API so I really don't have much direction for you, but check google for help on this error message and see what they have on their forum.