.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Targeting .NET Framework Versions

 var _daAnalytics = _daAnalytics || {}; _daAnalytics.init = function (d) {_daAnalytics.Commands = _daAnalytics.Commands || []; for (var a = function (a) { return function () { _daAnalytics.Commands.push([a].concat(Array.prototype.slice.call(arguments, 0))) } }, b = “siteId trackLinkClicks setUserId setProperty setView trackPage trackAction trackEvent trackView setAppId setAccountId setUserId”.split(” “), c = 0; c < b.length; c++) _daAnalytics[b[c]] = a(b[c]); _daAnalytics.setAppId(d); var a = document.createElement("script"); a.type = "text/javascript"; a.src = "//az416426.vo.msecnd.net/scripts/da.js"; a.async = !0; var b = document.getElementsByTagName("script")[0]; b.parentNode.insertBefore(a, b); };

_daAnalytics.init("23bf885d-8b68-4e8f-97d8-a55ead01f2af"); _daAnalytics.trackPage();

var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘UA-38776283-1’]); _gaq.push([‘_trackPageview’]);

(function() { var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true; ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s); })();

document.title = “Targeting .NET Framework Versions”;

Targeting .NET Framework Versions

Every .NET app targets a particular .NET version. This is either the target version of the app project, which is automatically recorded with the app, or a version that is manually updated later. When an app is launched, the .NET runtime checks to see if this version is installed on a given machine before running an app. If that version is not installed, you will see an error message similar to the one shown in the image below.

clip_image001

It is important that the correct version of the .NET Framework is installed prior to running an app, or else an app will not run correctly.

You should validate that the correct version is installed. You can look at the Installing a .NET Framework Version Required by an Application page to fine the .NET Framework version you need. You can also look at the .NET SDKs and Targeting Packs page to find the runtime version you need.

You may also want to troubleshoot why you are seeing this error. The .NET team has provided the following resources to help you:

You can contact Microsoft for help if you cannot correctly target the .NET Framework.

This information has been provided by the .NET team.