2 Replies Latest reply on Mar 12, 2009 6:31 AM by N!le$h

    Sandbox Security when we move the bin folder

    N!le$h
      Hi team,

      I m getting Sandbox Security error when I copy the flex workspace bin folder from local machine workplace to another locaiton on same machine or on server.

      I have created Photo Gallery component an application which uses XML(using RPC call) I have copied my bin folder from my local workspace to another location, let's say, D:\temp\bin
      But when i run the application (html) file from this new path it gives me below error

      [RPC Fault faultString="Error #2148: SWF file file:///D:\temp\bin\Flex%5FGallery%5FV2/Flex%5FGallery%5FComp.swf cannot access local resource file:///D:\temp\bin\XML\Dom_gallery.xml. Only local-with-filesystem and trusted local SWF files may access local resources." 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 Flex_Gallery_Comp/::fnInit()
      at Flex_Gallery_Comp/___Application1_creationComplete()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/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()

      Can anyone help me with this?
      Thanks in advance.


      Regards,
      Nilesh