Archive for February 7th, 2008

07
Feb

Error (#2148) Loading XML with Flex2 - Security Error

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

I had this problem and thought you would all like to know….. I was trying to load a local xml doc and this solution worked for me.

Posted on January 11th, 2007 by polyGeek

Error (#2148) Loading XML with Flex2

I was running through a simple tutorial for loading XML into Flex and displaying it in a DataGrid when I got the following error:

[RPC Fault faultString=”Error #2148: SWF file file:///C:/Documents and Settings/…/My Documents/xmlParsing/bin/xmlParsing.swf cannot access local resource Blades.xml. Only local-with-filesystem and trusted local SWF files may access local resources.” faultCode=”InvokeFailed” faultDetail=”null”]

If I go into the bin folder and launch the SWF directly then everything loads and works correctly. That right off is a tip that it’s probably a security issue. Sure enough. With a little research I found it.

  • In the Navigator panel Right-click and select Properties
  • In the lefNav select Flex Compiler
  • In the Additional compiler arguments: field add the following argument: -use-network=false

So my arguments read: -locale en_US -use-network=false

It would seem that this setting has to be made for each project.

Stupid security settings. :-)

When I Googled this problem I only got three hits back. My guess is that this will be a common problem so it wouldn’t hurt for others to duplicate this solution to make it easier for others to find.

Found this useful? How about buying me a coffee - simply click here.

07
Feb

Anatomy of an Enterprise Flex RIA Part 1: The Tools You’ll Want

Here the first in a series of installments that will shed some light on Enterprise Flex RIA’s

“In this installment of the series Anatomy of an Enterprise Flex RIA we’re doing a little grunt work and installing some tools we’ll be using later. Download them and read up a bit on what they do. These tools are some common “enterprise software” development tools that we’ll need to get the example software up and running.

In this series, we’ll look at a small application that integrates the technologies of LCDS and EJB 3.0, and we’ll cover some timesaving tools as well as discuss how to use them to achieve a lightweight development environment for integrating an RIA with an enterprise environment. Ready to get started?”

http://www.insideria.com/2008/01/anatomy-of-an-enterprise-flex.html

Found this useful? How about buying me a coffee - simply click here.




Close
E-mail It