Меню

Ошибка this application requires one of the following versions of the net framework

I am trying to migrate our application to the newer version of .NET Framework. From current version of 4.5 to 4.6.1

Reason, why we are migrating to version 4.6.1 instead of 4.7 or 4.6.2 is, that most of our users and developers do have Windows 10 November update and based on information from .NET Framework System Requirements, .NET Framework 4.6.1 should be preinstalled in this version of Windows by default.
This would leave us without any needs for users to download any kind of update.

The problem we are facing is, that every time we run our application following error message is displayed:

This application requires one of the following versions of .NET Framework:
.NETFramework,Version=v4.6.1

Do you want to install this .NET Framework version now?

I have also checked what version of .NET Framework is listed in registry following MSDN’s article: How to: Determine Which .NET Framework Versions Are Installed

The Registry value is 394806 which should actually be even .NET Framework 4.6.2

Any ideas how to solve this issue and what may cause it? I do not want users to be forced to install the update as it should be part of OS anyway.

asked May 29, 2017 at 7:44

Kajiyama's user avatar

1

We recently came across a similar problem. When starting a service, we received the error «This application requires one of the following versions of .NET Framework:»

We discovered the issue was our misunderstanding of how to update the app.config file.

We had changed the app.config file to set

<supportedRuntime version="v4.7" sku=".NETFramework,Version=v4.7" />

But should have set it to

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7" />

We had incorrectly set the major version of .NET as explained in https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/startup/supportedruntime-element#version

answered Jul 28, 2017 at 18:36

Skyler Nesheim's user avatar

In case someone else encounters this, I had a similar problem with a windows service that wouldn’t start due to an allegedly missing version 4.6 of the .NET framework. In my case, due to copy and paste, the following had happened in the config file:

<supportedRuntime version="v4.0" sku=".NETFramework, Version = v4.6"/>

whereas the following works:

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>

So, the spaces are the culprit and must not be there! Why I don’t know, because you’d expect the parser to be a little less picky, but ok…

answered Apr 16, 2019 at 7:52

obartelt's user avatar

obarteltobartelt

511 silver badge2 bronze badges

I had this same error today with SourceTree after applying a new Windows Insider version, with the difference that SourceTree was requiring 4.7.1.

I found that the version number was correct as 4.0 but, based on @Skyler Nesheim’s answer, I changed the other attribute, sku, from being

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />

to be

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />

and that made it work.

answered Sep 7, 2018 at 11:52

Eugenio Miró's user avatar

Eugenio MiróEugenio Miró

2,3802 gold badges31 silver badges38 bronze badges

In case anyone else runs into this with 4.7.2 and none of the other solutions work: The solution that worked for us was to update to 4.7.3 on the offending servers (the service itself can of course still target 4.7.2).

answered May 19, 2020 at 16:43

Nate's user avatar

NateNate

316 bronze badges

  • Remove From My Forums
  • Question

  • So yesterday my computer started to act up. It was behaving normally before this and I’m not quite sure what happened. Many programs as well as background processes bring up error messages on launch saying:

    This application requires one of the following versions of the .NET Framework:

    .NETFramework,Version=v4.0

    Do you want to install this .NET Framework version now?

    I click yes and it opens up a browser page that automatically downloads the .NET Framework version. However, when I try to install it says:

    Your installation will not occur. See below for reasons why.

    Details

    .NET Framework 4.6.1 or a later update is already installed on this computer.

    If it’s already installed, why are multiple programs and processes not functional? I’ve looked everywhere on google but can’t seem to find a working solution to my problem. I’ve tried finding and deleting the different .NET Framework versions, but
    this error message still pops up. (I feel like doing this caused many more problems than I originally had.)

    Please help?

Answers

  • You can check to see if your .NET Framework 4.0 is OK with this tool:

    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    Run the tool with .NET 4.0 selected, then check the last few lines of the tool log for the test app return code. If the return code is 0, your .NET 4.0 is correctly installed and configured.

    If the return code is not 0, the framework is corrupt and will have to be repaired. Repair procedures vary depending on your Windows version, so please share the version with us.

    • Proposed as answer by

      Monday, December 28, 2015 2:01 AM

    • Marked as answer by
      宝宝徐
      Monday, January 4, 2016 6:47 AM

    • Proposed as answer by
      宝宝徐
      Tuesday, December 29, 2015 8:48 AM
    • Marked as answer by
      宝宝徐
      Monday, January 4, 2016 6:47 AM

Storage Explorer Version: Unknown, but downloaded yesterday
Build Number: Unknown, can not access
Platform/OS: Windows Server 2016
Architecture: x64
Regression From: Unknown

Bug Description

On a fresh install of Windows Server 2016, there is no .NET Framework installed (or perhaps just too low of version). When running Azure Storage Explorer, 100s of modal popup windows are displayed from ServiceHub.

image

Text is:

This application requires one of the following versions of the .NET Framework:
.NETFramework,Version=v4.7.2

Do you want to install this .NET Framework version now?

image

In addition, Storage Explorer displays one more popup asking for a different version number.
image

Recommend:
Pre-checking the .NET version then not calling the ServiceHub dependency if the version is too low. Also align your .NET Framework version with ServiceHub (or require newer).

Steps to Reproduce

Perhaps uninstalling .NET Framework or using a version below of the wanted v4.7.2.

Expected Experience

Exactly one error should be displayed.

Actual Experience

100s of errors are displayed.

Additional Context

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Ошибка this application failed to start because no qt platform plugin could be initialized
  • Ошибка this application could not be started