Search code examples
c#.netexe.net-framework-version

the following feature couldn't be installed on .NET Framework 4.5 and win 2012


I have created an exc in VS2012 (C#) using .NET 3.5 Framework. And run that exe on test machine - Win OS 2012 .NET Framework 4.5 only It is giving me following message

Feature Couldn't be installed

I have following questions : 1. Why it is not supporting backward compatibility of .NET Framework 3.5 ? 2. Is there any way to handle this or user has to install 3.5 .NET Framework ?

Thanks in advance.


Solution

  • I have added following configuration in app.config file and it worked like charm

      <startup>
        <supportedRuntime version="v2.0.50727" />
        <supportedRuntime version="V4.0" />
      </startup>