This project has moved and is read-only. For the latest updates, please go here.

WorldSerializer and Xbox Storage

Feb 18, 2012 at 4:19 AM

I am working on a level editor using physics bodies.  When I save to the Xbox I get the following message:


"An Unhandled Exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll"


and the program breaks in the Serilization class at the using statement.  Any clues on how to make this work?

public static class WorldSerializer
        public static void Serialize(World world, string filename)
            using (FileStream fs = new FileStream(filename, FileMode.Create))
                new WorldXmlSerializer().Serialize(world, fs);