0 Replies Latest reply on Apr 16, 2010 11:33 PM by sudheerTele

    RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error"

    sudheerTele

      Hi,

       

      I deployed my flex applicaiton on Apache 2.2/www/html. Apache is running on ubuntu. My flex applicaiton access cgi scripts by using httpservice. all the urls of my cgi scripts are placed in a params.conf file(which is normal text file contains all the urls in a key/value pair), the urls in the params.conf has relative paths. Cgi-scripts are deployed at Apache 2.2/www/cgi-bin folder. where as my flex application is Apache2.2/www/html.

       

      when I access the cgi-scripts from the flex builder(I mean when I run my flex application through flex builder 3.0) I am not getting any error. where as if I deploy my flex application in Apache 2.2/www/html it is giving me an error as follows;

       

      [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
          at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
          at mx.rpc::Responder/fault()
          at mx.rpc::AsyncRequest/fault()
          at DirectHTTPMessageResponder/securityErrorHandler()
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at flash.net::URLLoader/redirectEvent()

       

      NOTE:- Even I placed crossdomain .xml file in my root of the server(i.e Apache 2.2/www/html). Here is my croosdomain.xml file

       

      <?xml version="1.0"?>
      <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
      <cross-domain-policy>
          <allow-access-from domain="*" />
      </cross-domain-policy>

       

      If I use absolute paths in my params.conf file then I am not getting any errors. But if I access my application out side then I can't access it. - that's true. That's why I used relative path. An example of my relative path used by my flex application(HTTPSERVICE) is "cgi-bin/showuserdetails.cgi?name=abc:xyz". if the colon(:) is not there in between abc and xyz then it is working fine.

       

      so please help me out.

       

       

      Thanks

      Sudheer