in a rush

experience is everything

in a rush header image 2

Flex 2 Error with XML

April 28th, 2008 · No Comments

While teaching a Flex class recently, I had several students encounter this error in which their application would error out with the following: “Error #2148: this error did not allow to read data from a file XML”

This seemed rather strange because the XML file was surely there, but something else was up. So we started debugging the error. The Flex RPC Fault faultString would come back as “Error #2148: this error did not allow to read data from a file XML”. Hmmm, great help!

One of the students, Martin, found the solution. In Flex Builder you can set compiler arguments. They are located via Properties > Flex Compiler > Additional Compiler Arguments.

Simply add the following: “-use-network=false”

You will have to do this for each Flex project in Flex Builder that you’re experiencing the problem.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati

Tags: Flex

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment