I have no problem running my game on my laptop, which has no development tools installed, XNA or monogame or whatever installed.
Now, I tried copying it on a VM, which runs windows 7 64 bits, and it gives me this error, which I printed in the screen like this.
try
{
using (Game1 game = new Game1())
game.Run();
}
catch (Exception e)
{
System.Windows.Forms.MessageBox.Show(e.ToString());
}
At first, It gave me the error that I didn’t have .net 4 installed, so I went and installed that, since that’s an important windows update anyway. Since I still had the same error, I also installed DirectX11, even though I am not sure if that’s required, although who doesn’t have DirectX11 installed in their system anyways.
So apart from .net 4 and DirectX11, what else does Monogame requires ? I suppose it has to be a windows update of some sort, because my laptop run my game with no errors, and there is literally nothing installed onto it other than basic windows updates.
Edit: this just hit me, could it possible be related to drivers not installed on VM ? or that’s not how it works ?
I installed what you linked me, I got the exact same error. This is the link I folloed to install DirectX and I ended up with DirectX 11, not DIrectX 9. Isn’t this supposed to be backwards compatible anyway?
Also,if I run dxdiag, I still see DirectX version: 11, following the link you gave me.
You have to go Devices > Install Guest Additions CD Image to install the VM driver(for 3d support you’ll need to boot windows 7 into safe mode), and also under vm settings you should probably add virtual memory.