Unable to deploy to Xbox360

Sep 16, 2010 at 7:50 PM


I can deploy to windows fine, but when deploying to Xbox, I keep getting an exception at this line..

 public static Level FromFile(string filename, ContentManager cm)
            FileStream stream = File.Open(filename, FileMode.Open, FileAccess.Read, FileShare.Read); <<Exception here


I've took the advice from the Gleed2D thread over at xna forums.. but still can't get it sorted.

"An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll

Additional information: Value does not fall within the expected range."

I had a few issues before with it being unable to find the XML file, but I think I got those sorted, then this error comes up instead.

level = Level.FromFile("Maps\test.xml", content);

That's what I'm using to load the level.


Any suggestions? Thanks in advance


Sep 17, 2010 at 9:04 AM

Possibly solved - the level works perfectly when I remove all the textures, so it must not be finding my textures correctly. May be something to do with how I am locating them in the Level.cs class, so I will keep working at it, and should be able to solve it.