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