Keith Henrickson

Ok, I've got my project building and running on the 360. A friend of mine wanted to see what I was up to, so I moved the source over to an PC hosted XNA project, and got it running there too.

Before I sent the .EXE to him, I double clicked on it, and I just get a message box that says "Application generated an exception that could not be handled."

This works fine under GSE, but doesn't seem to work when clicking directly through Windows.

What am I missing



Re: XNA Framework Will run from debugger, won't run from .EXE on same machine

dczraptor

Make sure you copy over all the files you're using, .exe, .dll, \Content, anything else you're using, not just the .exe

You might also be linking to a file in an absolute path name. In VS, it might work fine because the file is under your main project folder, but if you move the build files, then it will not find the required files anymore.






Re: XNA Framework Will run from debugger, won't run from .EXE on same machine

Johnnylightbulb

You could also get the .NET Framework 2.0 SDK from the MSDN site and use the CLR Debugger tool (or a non-express copy of VS.NET). Next time it complains about some random exception (and you're trying to run a debug version of your game) you can debug and see what it doesn't like!

Let us know what you find.