0 Replies Latest reply on Apr 10, 2009 10:22 AM by djohnson60618

    Permissions issues when getting started

      Hi, I'm trying to create a test "Hello World" app on our IIS server.  When the user clicks a button a pop up should say "Hello World!", which is a string returned by a WCF web service on the same server.  I have no problem getting the service to work on an aspx page.  But in Flex debugger I get the error:

       

      [SWF] /TestProject2/TestProject2.swf - 1,110,380 bytes after decompression

      Warning: Domain our-server.local.ourserver.com does not specify a meta-policy.  Applying default meta-policy 'master-only'.  This configuration is deprecated.  See http://www.adobe.com/go/strict_policy_files to fix this problem.

       

      Error: Request for resource at http://ftp-server.local.mycompany.com/Service_Upload.svc/basic by requestor from http://upload.mycompany.com/TestProject2/TestProject2.swf is denied due to lack of policy file permissions.

       

      *** Security Sandbox Violation ***

      Connection to http://our-server.local.mycompany.com/Service_Upload.svc/basic halted - not permitted from http://upload.mycompany.com/TestProject2/TestProject2.swf

       

       

      I've created a crossdomain.xml file and tried various settings to try to open up access, including adding *.mycompany.com *.local.mycompany.com, etc., and at the moment I'm using this.

       

      <?xml version="1.0"?>

      <!-- http://upload.mycompany.com/crossdomain.xml -->

      <cross-domain-policy>

          <allow-access-from domain='*' to-ports='*' />

      </cross-domain-policy>

       

      No matter what I do I get the permissions error when my Flex app calls the following function:

       

      <![CDATA[

      import com.mycompany.HelloResultEvent;

          import com. mycompany.Service_Upload;

          import mx.controls.Alert;

          public function sayHello():void {

              var service:Service_Upload = new Service_Upload();

              service.addhelloEventListener(

                  function (event:HelloResultEvent):void {

                      Alert.show(event.result);

                  });

              service.hello();

          }

      ]]>

       

      I got a demo project to call an external service.  Why am I getting this permissions error on my own server, especially when the service and the swf are on the same server and the crossdomain.xml seems to clearly open up permissions?