PROGRAMM在Windows XP下无法运行的LightSwitch 2012Windows、PROGRAMM、XP、LightSwitch

2023-09-03 03:41:15 作者:现实残酷、童话完美

我已经迁移一个LightSwitch的2011项目,LS 2012年我通过运行vslshost.exe启动编译的应用程序。这个工程使用的是Windows 7(32位和64位很好,但是当我使用Windows XP的启动应用程序失败(vslshost.exe北京时间不是有效的Win32应用中),在切换到LS 2012一切正常。

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 use Windows XP starting the application fails (vslshost.exe ist not a valid Win32-Application). Before switching to LS 2012 everything went fine.

中的应用被编译为桌面应用,这取决于一个SQL数据库是缴费,并且不使用内部的ApplicationData数据库。 我可以重现这对2台电脑,均具有Windows XP的最新版本。

The application is compiled as desktop application, it depends on a SQL Database which is avaiable and doesn't use the internal ApplicationData database. I can reproduce this on 2 PCs, both having Windows XP up to date.

在看着vslshosts.exe与 ILDASM ,我舒尔该项目被编译针对.NET 4.0。因此,该框架不随迁移项目LS 2012改变。

After looking at vslshosts.exe with ildasm, I'm shure the project was compiled targeting .NET 4.0. So the Framework didn't change with migrating the project to LS 2012.

我没能找到有关这一问题的任何信息。我只碰到有关的Windows XP和C的一些问题++使用VS 2012

I wasn't able to find any information regarding this problem. I only came across some issues regarding Windows XP and C++ using VS 2012.

你有这方面的消息?

在此先感谢!

推荐答案

我有同样的问题,设法得到它的工作通过执行以下操作。我开始了一个Visual Studio命令提示符并运行DUMPBIN上的可执行文件:

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表明子系统版本被设置为6(Vista)的。奇怪的操作系统版本设置为4。在此之后页面http://supportxp.com/2012/03/30/editbins-dirty-little-secret/我用EDITBIN设置的版本号为5.1(XP)

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

测试它和我的应用程序它工作正常,在XP至今。我也试图让生成的安装工作,但它没有一个函数调用InitializeCriticalSectionEx中不存在XP

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.

或者你也可以将它部署为与部署到IIS服务的桌面应用程序。这种方法似乎支持XP就好了。

Or you can deploy it as a desktop application with the services deployed to IIS. That method seems to support XP just fine.