Can't run Lightswitch 2012 Programm under Windows XP

99封情书 提交于 2019-12-01 05:57:49

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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!