0 Replies Latest reply on Aug 3, 2006 2:09 PM by Martin Montenegro

    RPC Fault faultString="Error #2148"

    Martin Montenegro
      Hi, anyone know about why is this error?, I call the xml file via IE and display the data.. but in the flex app, no show.

      this is the file.. I work with OS in spanish ,I used norton firewall...

      any help to about it? thanks

      <?xml version="1.0"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
      creationComplete="srv.send();">

      <mx:Script>
      <![CDATA[
      import mx.collections.ArrayCollection;
      [Bindable]
      private var restaurants:ArrayCollection;
      ]]>
      </mx:Script>
      <mx:HTTPService id="srv"
      url="assets\datagriddata.xml"
      result="restaurants=srv.lastResult.styles.item"/>

      <mx:DataGrid dataProvider="{restaurants}"/>

      </mx:Application>

      [RPC Fault faultString="Error #2148: El archivo SWF file://C:\Documents and Settings\M@T\My Documents\Flex Builder 2\DataGrid_Flex\bin\DataGrid_demo1.swf no puede acceder al recurso local file://C:/Documents and Settings/M@T/My Documents/Flex Builder 2/DataGrid_Flex/bin/assets/datagriddata.xml. Sólo los archivos SWF locales del sistema de archivos y de confianza pueden acceder a los recursos locales." faultCode="InvokeFailed" faultDetail="null"]
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::invoke()
      at mx.rpc.http.mxml::HTTPService/ http://www.adobe.com/2006/flex/mx/internal::invoke()
      at mx.rpc.http::HTTPService/send()
      at mx.rpc.http.mxml::HTTPService/send()
      at DataGrid_demo1/___Application1_creationComplete()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/set initialized()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()