简体   繁体   English

无法找到运行时版本以在XP Sp3上运行此应用程序.net 4.0

[英]unable to find a version of the runtime to run this application .net 4.0 on XP Sp3

I'm having a problem with a WPF application on Windows XP SP3 32bit. 我在Windows XP SP3 32位上遇到了WPF应用程序的问题。 I have a large file (832mb) with deployable resources so Visual Studio 2010 cannot build it. 我有一个带有可部署资源的大文件(832mb),因此Visual Studio 2010无法构建它。 So I have built my file using MSBUILD. 所以我使用MSBUILD构建了我的文件。 I mention this because it may cause the problem I have encountered but I'm not sure. 我提到这个是因为它可能会导致我遇到的问题,但我不确定。

I have a WPF application built with MSBUILD in Windows 7 64bit. 我有一个在Windows 7 64位中使用MSBUILD构建的WPF应用程序。 I run the program in Windows 7 and the program works. 我在Windows 7中运行该程序,该程序工作。 When I try to run it in Windows XP it does not run. 当我尝试在Windows XP中运行它时,它不会运行。 The application ran before I used MSBUILD. 应用程序在我使用MSBUILD之前运行。 I have .NET 2.0, 3.5 and 4.0 installed. 我安装了.NET 2.0,3.5和4.0。 In the the config file I have put: 在配置文件中我放了:

<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>

The app has been written in .net 4.0. 该应用程序已使用.net 4.0编写。 I have tried the exact build number in the project config file as well and this hasn't helped. 我也尝试了项目配置文件中的确切内部版本号,这没有帮助。 Some people sorted it by installing Direct X and running with admin, which still does not work. 有些人通过安装Direct X并使用admin运行来对其进行排序,但仍无效。 All updates have been applied. 已应用所有更新。 I have re installed .net 4.0 several times. 我已经多次重新安装了.net 4.0。 The client and Extended. 客户端和扩展。

As mentioned above I have to build the file using MSBUILD. 如上所述,我必须使用MSBUILD构建文件。 I tried building it in Visual Studio 2010 but there seems to be a known issue of building single files over a certain size. 我尝试在Visual Studio 2010中构建它,但似乎存在构建超过特定大小的单个文件的已知问题。 I need it this size as splitting the file won't do. 我需要它这个大小,因为拆分文件不会。 I am wondering now if MSBUILD has something to do with this, the file is too big in XP or .net is not picking this application up for some reason. 我现在想知道如果MSBUILD与此有关,那么文件在XP中太大了。或者.net由于某种原因没有选择这个应用程序。 Other files with the same setup that have been built in Visual Studio seem to work. 在Visual Studio中构建的具有相同设置的其他文件似乎可以正常工作。 So maybe I'm missing some build options in MSBUILD. 所以也许我在MSBUILD中缺少一些构建选项。 The build command I'm using is: 我正在使用的构建命令是:

msbuild "D:\Projects\MyProject\MySolution.sln" /t:Build /p:Configuration=Release

I also added this into the command: 我还在命令中添加了这个:

ToolsVersion:4.0

Also I run the program from the desktop. 我也从桌面运行程序。

The Exception is: 例外情况是:

"MyProgram.exe - .NetException Error"
"Unable to find a version of the runtime to run this application"

Also, is there any limit on a single file or process in Windows XP? 此外,Windows XP中的单个文件或进程是否有任何限制?

Thanks for any help in advance. 在此先感谢您的帮助。

尝试使用此代替:

<supportedRuntime version="v4.0" />

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

相关问题 尝试在带有.net 4.0的XP sp3上运行TLS1.2 - Trying to run TLS1.2 on XP sp3 with .net 4.0 在虚拟XP机器上运行.NET应用程序的“无法找到运行该应用程序的运行时版本” - “Unable to find a version of the runtime to run this application” running .NET app in virtual XP machine 带有.NET Framework 4.0的Windows XP SP3上的.NET Framework 3.0应用程序 - .NET Framework 3.0 App on Windows XP SP3 with .NET Framework 4.0 在Windows XP SP3上安装.net MVC 3 - Installing .net MVC 3 on Windows XP SP3 错误:无法找到运行此应用程序的运行时版本 - Error : Unable to find a version of the runtime to run this application Windows 7出现错误。 Net框架应用程序4.0(使用WinXP SP3编写) - Windows 7 got error. Net framework application 4.0 (written with WinXP SP3) NLog不记录带有.NET 3.5客户端配置文件的XP SP3上的消息 - NLog not logging messages on XP SP3 with .NET 3.5 Client Profile 安装后“无法找到运行该应用程序.net框架初始化错误的运行时版本” - “unable to find a version of the runtime to run this application .net framework initialization error” after install 无法在Windows XP SP3 SP2中运行任何Windows WPF应用程序 - Cannot run any windows WPF applications in windows XP SP3 SP2 使用VS2012开发的Windows应用程序未在Windows XP SP3中运行 - Windows application developed using VS2012 is not running in windows XP SP3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM