简体   繁体   English

C#Winforms应用-不是有效的Win32应用

[英]C# Winforms App - Not a valid win32 application

I am receiving this error - Not a valid Win32 Application. 我收到此错误-不是有效的Win32应用程序。 The program runs fine on a Vista PC. 该程序可以在Vista PC上正常运行。 It is deployed using the ClickOnce bootstrapper. 使用ClickOnce引导程序进行部署。 ] ]

I read 我读

http://blogs.msdn.com/b/vsnetsetup/archive/2012/10/16/setup-exe-is-not-a-valid-win32-application.aspx http://blogs.msdn.com/b/vsnetsetup/archive/2012/10/16/setup-exe-is-not-a-valid-win32-application.aspx

here that VS2012 ClickOnce does not support XP, but this article is focused on C++, not C#. 此处VS2012 ClickOnce不支持XP,但本文的重点是C ++,而不是C#。 I can't see anything similar for C#. 我看不到C#类似的东西。

Any ideas? 有任何想法吗?

Thanks! 谢谢!

As your source states: 如您的消息来源所述:

Clickonce bootstrapper engine (setup.exe) that was shipped with Visual Studio 2012 is NOT compatible with any OS below Windows Vista. Visual Studio 2012附带的Clickonce引导程序引擎(setup.exe)与Windows Vista以下的任何操作系统都不兼容。 So, the above error message is expected and by design. 因此,上述错误消息是预期的,并且是设计使然。 The reason for this behavior is because the bootstrapper is compiled using the VC compiler and the Dev11 VC compiler does not support Windows XP. 出现此现象的原因是因为引导程序是使用VC编译器编译的,而Dev11 VC编译器不支持Windows XP。

That applies to any application compiled with VS2012, regardless of language, because it's the bootstrapper (install program) that's failing, not the application. 这适用于使用VS2012编译的任何应用程序,无论使用哪种语言,因为失败的是引导程序(安装程序),而不是应用程序。

So your application can run on the XP box, but not the Clickonce installer. 因此,您的应用程序可以在XP机器上运行,但不能在Clickonce安装程序上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM