I am trying to run an external executable from my program. My program was compiled on .Net 4.0 platform to enable it in Windows XP. The external application is compiled based on .Net 2.0. When I run this program on my machine (installed Windows 7, .Net 4.5), it works fine, however, when I run it in XP with .Net 4.0 installed, I get the following error: Unable to find a version of the runtime to run this application. I tried changing the app.config file as follows, but with no luck:
<?xml version="1.0"?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> <supportedRuntime version="v2.0" sku=".NETFramework,Version=v2.0"/> </startup> </configuration>
Is there any other way around this problem?
source share