Log in

View Full Version : Not a valid Win32 Application


gredesh
06-01-2013, 11:38 PM
Hey,
I'm updating my server to the latest build. Followed the new windows server guide. The server i'm compiling on is windows 7, VS 2012 Express. Installed all 32-bit mysql/perl etc. The server is windows server 2003 home. After building successfully as 32-bit I copy the files over to the server and try to launch them. I get the not a valid Win32 Application error if I try to launch any of the binaries. Any ideas?

gredesh
06-02-2013, 02:51 PM
Found a fix: VS 2012 shipped without the winxp/server 2003 bootstrap. Fix is to update visual studio 2012 with the latest service pack which adds an option. You need to right-click on each project in visual studio and click options. Under Configuration Properties->General you set the Platform Toolset to Visual Studio 2012 - Windows XP (v110_xp). Then rebuild the solution and it'll work.