I\'ve migrated a Lightswitch 2011 project to LS 2012. I start the compiled application by running \"vslshost.exe\". This works well using Windows 7 (32 and 64 Bit, but when
I had the same problem, managed to get it working by doing the following. I started up a Visual Studio Command Prompt and ran dumpbin on the executable:
dumpbin /headers vslshost.exe
dumpbin showed that the sub system version was set to 6 (Vista). Strangely the OS version was set to 4. Following the instructions on this page http://supportxp.com/2012/03/30/editbins-dirty-little-secret/ I used editbin to set the version numbers to 5.1 (XP)
editbin vslshost.exe /SUBSYSTEM:WINDOWS,5.01 /OSVERSION:5.1
Tested it out and my application it working fine on XP so far. I also tried getting the generated installer to work but it failed on a function call to InitializeCriticalSectionEx which doesn't exist in XP.
Or you can deploy it as a desktop application with the services deployed to IIS. That method seems to support XP just fine.
The .NET Framework 4.5 requires at least Windows Vista. See the official system requirements.
When using Visual Studio 2012, you have to be careful to target .NET 4.0 if you want the application to run on Windows XP, and some features will not be available (for example, C# 5.0 await
/async
require runtime support only available in .NET 4.5).