I'm having a problem with a WPF application on Windows XP SP3 32bit. I have a large file (832mb) with deployable resources so Visual Studio 2010 cannot build it. So I have built my file using 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. I run the program in Windows 7 and the program works. When I try to run it in Windows XP it does not run. The application ran before I used MSBUILD. I have .NET 2.0, 3.5 and 4.0 installed. 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. 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. All updates have been applied. I have re installed .net 4.0 several times. The client and Extended.
As mentioned above I have to build the file using 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. 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. Other files with the same setup that have been built in Visual Studio seem to work. So maybe I'm missing some build options in 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?
Thanks for any help in advance.
Try just using this instead:
<supportedRuntime version="v4.0" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With