Whenever I try and run a game made in XNA 4.0 on a machine other than one used for development, it just won't run. I've followed the instructions here to ensure that all the dependencies are present.
To be clear I've done the following:
Downloaded and installed the Microsoft .NET Framework 4 Client Profile.
Downloaded and installed the Microsoft XNA Framework Redistributable 4.0.
- Made sure I am not using anything contained within
GamerServicesandXNA.Net.*, my references are as follows:
Microsoft.Xna.Framework
Microsoft.Xna.Framework.Avatar
Microsoft.Xna.Framework.Game
Microsoft.Xna.Framework.Graphics
Microsoft.Xna.Framework.Storage
Microsoft.Xna.Framework.Video
Microsoft.Xna.Framework.Xact
mscorlib
System System.Core
System.Windows.Forms
System.Xml
System.Xml.Linq
I also followed the advice here to ensure the problem was not within the code itself.
I've tried the follow methods to get it to run (on both Vista and 7):
- Use the built in publishing functionality. This results in an error saying that
Microsoft.Xna.Input.Touchneeds to be present in the GAC. I've tried addingMicrosoft.Xna.Input.Touchto the references, and this does not fix the issue. - Copy the XNA dll files locally. This results in an error message stating that
Microsoft.Xna.Game.dll or one of its dependencies could not be located. - Copy over everything contained in
Release. This results in anApplication X stopped working...orAPPCRASHerror message the second it starts. My code is never reached.
Is there any way to get this to work? I've been trying to get this to work with the deadline looming, and it's been a source of unneeded stress.