2 Replies Latest reply: Nov 18, 2014 8:27 AM by jfb00 RSS

    Net connection failed

    jfb00 Community Member

      Hi All,

      I am getting this error in my local laptop when I do a remote object call:

      NetConnection.Call.Failed: HTTP: Failed

      We are using only https (SSL) in our 2003 win server with Coldfusion 9. For that I add the secure channel in our remoting-config.xml as it is suggested in this link:

      http://blog.crankybit.com/flex-remoting-over-ssl/

      Now in my local laptop i cannot use https because I don't have SSL certificate.

      When i compile the app i see this warning:

      Warning: Failed to load policy file from https://localhost/crossdomain.xml

      Here is my file:

      <?xml version="1.0"?>

      <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

      <!--Generic policy file for flex app access, it should be made more restrictive -->

      <cross-domain-policy>

      <site-control permitted-cross-domain-policies="all"/>

      <!-- <allow-access-from domain="*.example.com"/> -->

      </cross-domain-policy>

      I don't have domain install in my local laptop, so how do i need to configure this file?

      Also I see this message:

      *** Security Sandbox Violation ***

      Connection to https://localhost/flex2gateway/cfamfsecure halted - not permitted from http://localhost/myApp/myApp.swf

      Error: Request for resource at https://localhost/flex2gateway/cfamfsecure by requestor from http://localhost/myApp/myApp.swf/[[DYNAMIC]]/5 is denied due to lack of policy file permissions.

      Any ideas?

      Thanks!