Hi all, I have recently been working on a monogame project and have it
working correctly on my own PC that I am developing it on (in both Debug
and Release mode). It will even work correctly when I move the release folder to a different drive and run from there. but when i try to run it on another computer by
copying all the files in the release folder the exe does not run. It
looks like it loads something then does nothing. On windows event viewer
I get an error of System.IO.FileNotFound exception at XNA Framework and
I think the Main game Method. I have installed .NET 4.5 and XNA 4.0 on
the target PC also.
Here is what is shown in Event Viewer:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at Microsoft.Xna.Framework.FrameworkDispatcher.Initialize()
at Microsoft.Xna.Framework.FrameworkDispatcher.Update()
at Microsoft.Xna.Framework.Game…ctor()
at GameName.Game1…ctor()
at GameName.Program.Main()
I resolved this issue on one pc by installing Visual Studio on it
with Monogame for VS, then the game can run, but if it doesn’t have
visual studio + monogame for vs on the computer it won’t run.
I’ve also tried publishing within the Visual Studio option but I get “the application is improperly formatted”
If anyone knows how to resolve, I’d greatly appreciate it.