Please try enabling windows feature netfx3 from windows management tools

Technical articles, content and resources for IT Professionals working in Microsoft technologies

I was doing SQL server 2012 installation for my lync server 2013 lab and I ran into this error «Error while enabling Windows feature: NetFx3, Error Code: -2146498298, Please try enabling Windows feature: NetFx3 from Windows management tool and then
run setup again

Installation Error

Started the server manager and tried to install the .Net Framework 3.5 with SP1 and it failed with error “Do you need to specify an alternate source path? One or more installation selections are missing source file on the destination”

Now the only choice I had was to install .Net Framework 3.5 was using Deployment Image Servicing and Management (DISM). For more information on DISM, refer to this article. I
tried to install it using DISM by running the command dism /Online /Enable-Feature /FeatureName:NetFx3 /Source:D:sourcessxs but it failed with below error.

 As it say “Error itself has the solution in it” indeed it had the solution. I just had to modify the command and run it with /all switch like this, dism /Online /Enable-Feature /FeatureName:NetFx3 /All /Source:D:sourcessxs and
it will complete successfully, as you can see.

Note: Make sure you have Windows Server 2012 media in the drive before you run this command.

After this SQL Server 2012 installation completed like a charm :)

Continued my Lync Server 2013 installation and completed with Archiving and Monitoring server roles.

imageПри попытке установить RTM версию SQL Server 2012 Standard на свеже-установленную ОС Windows Server 2012 при отсутствии прямого подключения к интернету можно получить ошибку включения зависимой компоненты: NetFx3 -2146498298

image

При этом процесс установки проходит до конца но не устанавливает основные компоненты SQL Server.

Для решения этой проблемы нам потребуется отдельно установить компоненты .Net Framework 3.5. Так как эти компоненты входят в состав дистрибутива Windows Server 2012, можно вставив установочный диск ОС (в нашем примере буква диска — S:), выполнить команду (с правами Администратора):

Dism /online /enable-feature /featurename:NetFX3 /All /Source:S:sourcesSxS /LimitAccess

Или же мы можем установить эти компоненты через мастер добавления ролей и возможностей Add Roles and Features Wizard в оснастке Server Manager. После того как на шаге Features мы отметим .NET Framework 3.5 Features вызовем окно дополнительной настройки указания места расположения установочных файлов ОС – Specify an alternate source path

image

Укажем каталог полный пусть к подкаталогу SourcesSxS на нашем DVD-накопителе или сетевой папке, в которую мы предварительно скопировали содержимое установочного диска Windows Server 2012.

image

Если путь указан верно, то процесс добавления компонент .Net Framework 3.5 пройдёт успешно.

image

После этого можно заново повторить процедуру установки необходимых компонент SQL Server 2012. Возможно при повторном запуске инсталлятора мы получим ошибку:

System.IO.FileNotFoundException: Could not load file or assembly ‘System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ or one of its dependencies. The system cannot find the file specified.

image

Появление этой ошибки будет вести к отмене вызова окна программы установки SQL Server. Эта “болячка” известна ещё со времени SQL Server 2008 R2 и для решения этой проблемы необходимо найти указанный в тексте ошибки файл user.config и удалить его.

В нашем примере файл расположен в каталоге
%USERPROFILE%AppDataLocalMicrosoft_CorporationLandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx11.0.0.0

После этого процесс установки SQL Server 2012 должен завершиться без ошибок.

image

Источники информации:

  • Tom Van Gaever  — Installation of SQL Server 2012 on Server 2012 beta: NetFx3.5 is a Feature on Demand
  • Microsoft Connect — 640350 — Install VS2008, 2010 and SQL 2008 R2, generates installer error
  • Remove From My Forums
  • Question

  • While installing SQL Server 2012  on Windows Server 2012, I got this error «Error while enabling Windows feature : NetFx3, Error Code : -2146498298 , Please try enabling Windows feature : NetFx3 from Windows management tools and then run setup
    again. For more information on how to enable Windows features , see http://go.microsoft.com/fwlink/?linkid=227143
    «.

    The installation continued and at the end the features that failed were Database Engine Services & Management Tools (I had SSIS & other Client Tools selected). The error says to enable .NET 3.5 manually. But when I tried to add the .NET 3.5
     feature, I found the .NET 4.5 is already installed.  Now I am unsure if I should install .NET 3.5 in addition to .NET 4.5 or uninstall .Net 4.5 and install just the .NET 3.5. 

    I have reviewed http://support.microsoft.com/kb/2681562 but it does not clearly say it either.

    Can anyone else advise.


    KK

    • Edited by

      Friday, April 19, 2013 5:09 AM

Answers

    • Marked as answer by
      Maggie Luo
      Sunday, April 28, 2013 4:01 PM

While creating one of many Lync scenario labs, I chose to install SQL Server 2012 instead of my usual install of SQL 2008 on Windows Server 2012. Going about my happy routine after clicking install, I expected install to complete when I returned a few hours later. Murphy never fails though. And here I am looking at install error instead!

The error read:

TITLE: Microsoft SQL Server 2012  Setup
——————————

The following error has occurred:

Error while enabling Windows feature : NetFx3, Error Code : -2146498298 , Please try enabling Windows feature : NetFx3 from Windows management tools and then run setup again. For more information on how to enable Windows features , see http://go.microsoft.com/fwlink/?linkid=227143

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.2100.60&EvtType=0x681D636F%25401428%25401

So it wants me to install NetFx3. Should be easy. The requirement basically meant it needed .Net Framework 3.5. All I have to do is run the following from PowerShell:

Add-WindowsFeature NET-Framework-Core

Well, what do I know? It gave me an error too!

Add-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be downloaded.

Having seen this error, I knew what I had to do but let me illustrate. When you run the following at PowerShell prompt, you will notice that not only the “Installed” state is set to “False” indicating it’s not installed but “InstallState” states “Removed”:

Get-WindowsFeature Net-Framework-Core | FT name,install*

Name                                                             Installed                          InstallState
—-                                                                  ———                            ————
NET-Framework-Core                                False                                 Removed

All it means is that the standard install of Windows Server 2012 does not even install binaries required to enable feature. If you want to install this feature, you will need side-by-side assembly source, usually the installation media. If you are curious about what side-by-side means, check out wiki article here.

The solution here sounds simple. Just run:

Add-WindowsFeature NET-Framework-Core -Source D:sourcessxs

This assumes D is your CD drive which has Windows Server 2012 installation media. Now I should warn you, this won’t work if you have run Windows Update and applied patches after installing Windows Server 2012 and before trying to install SQL Server 2012! If you want answer to obvious “why?”, you should read my previous post explaining how to resolve Error: 0x800f0906 adding Windows features.

Don’t you love rabbit holes we deal with in IT? Smile

Related

    Share:

3 Comments

imageПри попытке установить RTM версию SQL Server 2012 Standard на свеже-установленную ОС Windows Server 2012 при отсутствии прямого подключения к интернету можно получить ошибку включения зависимой компоненты: NetFx3 -2146498298

image

При этом процесс установки проходит до конца но не устанавливает основные компоненты SQL Server.

Для решения этой проблемы нам потребуется отдельно установить компоненты .Net Framework 3.5. Так как эти компоненты входят в состав дистрибутива Windows Server 2012, можно вставив установочный диск ОС (в нашем примере буква диска — S:), выполнить команду (с правами Администратора):

Dism /online /enable-feature /featurename:NetFX3 /All /Source:S:sourcesSxS /LimitAccess

Или же мы можем установить эти компоненты через мастер добавления ролей и возможностей Add Roles and Features Wizard в оснастке Server Manager. После того как на шаге Features мы отметим .NET Framework 3.5 Features вызовем окно дополнительной настройки указания места расположения установочных файлов ОС – Specify an alternate source path

image

Укажем каталог полный пусть к подкаталогу SourcesSxS на нашем DVD-накопителе или сетевой папке, в которую мы предварительно скопировали содержимое установочного диска Windows Server 2012.

image

Если путь указан верно, то процесс добавления компонент .Net Framework 3.5 пройдёт успешно.

image

После этого можно заново повторить процедуру установки необходимых компонент SQL Server 2012. Возможно при повторном запуске инсталлятора мы получим ошибку:

System.IO.FileNotFoundException: Could not load file or assembly ‘System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ or one of its dependencies. The system cannot find the file specified.

image

Появление этой ошибки будет вести к отмене вызова окна программы установки SQL Server. Эта “болячка” известна ещё со времени SQL Server 2008 R2 и для решения этой проблемы необходимо найти указанный в тексте ошибки файл user.config и удалить его.

В нашем примере файл расположен в каталоге
%USERPROFILE%AppDataLocalMicrosoft_CorporationLandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx11.0.0.0

После этого процесс установки SQL Server 2012 должен завершиться без ошибок.

image

Источники информации:

  • Tom Van Gaever  — Installation of SQL Server 2012 on Server 2012 beta: NetFx3.5 is a Feature on Demand
  • Microsoft Connect — 640350 — Install VS2008, 2010 and SQL 2008 R2, generates installer error

I was doing SQL server 2012 installation for my lync server 2013 lab and I ran into this error «Error while enabling Windows feature: NetFx3, Error Code: -2146498298, Please try enabling Windows feature: NetFx3 from Windows management tool and then
run setup again

Installation Error

Started the server manager and tried to install the .Net Framework 3.5 with SP1 and it failed with error “Do you need to specify an alternate source path? One or more installation selections are missing source file on the destination”

Now the only choice I had was to install .Net Framework 3.5 was using Deployment Image Servicing and Management (DISM). For more information on DISM, refer to this article. I
tried to install it using DISM by running the command dism /Online /Enable-Feature /FeatureName:NetFx3 /Source:D:sourcessxs but it failed with below error.

 As it say “Error itself has the solution in it” indeed it had the solution. I just had to modify the command and run it with /all switch like this, dism /Online /Enable-Feature /FeatureName:NetFx3 /All /Source:D:sourcessxs and
it will complete successfully, as you can see.

Note: Make sure you have Windows Server 2012 media in the drive before you run this command.

After this SQL Server 2012 installation completed like a charm :)

Continued my Lync Server 2013 installation and completed with Archiving and Monitoring server roles.

Вопрос:Во время сервера (операционная система представляет собой Windows Server 2012), установите SQL Server 2012, установка находится на интерфейсе, показанном ниже, и «функция включения операционной системы Netfx3» появится в окне приглашения, сообщите об ошибке включенной функции Windows Netfx3 Отказ

image

    анализ: NetFx3 относится к системе базы данных .NET Server 2012 3.5, SQL Server 2012. .NET Framework 3.5 на операционной системе. Шаги для установки .NET 3.5 на Windows Server 2012 следующие:

Во-первых, открытых «серверных менеджеров», выберите «Добавить роль и функции».

image

Во-вторых, (для экономии пространства, есть несколько шагов) для выбора «.NET Framework 3.5» в вкладке «Функция». Нажмите «Далее», чтобы ввести вкладку «Подтвердить», нажмите «Установить»:

image

Вопрос:Установка не удалась и предложила найти исходный файл, как показано на следующем рисунке:

image

Анализ:Во-первых, в Windows Server 2008, если вы хотите установить «.net3.5», вы можете завершить файл компонента «.NET Framework 3.5» с функцией «Добавить и удаление», Windows Server 2008 System System Cerror содержит «.NET Framework 3.5. «Файл компонента, эти компонентные файлы копируются в новую систему при установке системы через системный диск или зеркальное изображение на системном диске или зеркальном изображении, но не устанавливает его, когда он передан для операционной системы, когда Установите эти компоненты, вы можете завершить функцию «Добавить и удаление», без необходимости загружать соответствующие компоненты через Интернет. Тем не менее, некоторые тонкие изменения произошли на Windows Server 2012, и зеркальное блюдо System System Server Server 2012 также является «.NET Framework 3.5» файл компонента, но при установке системы для сервера эти компонентные файлы не будут скопированы. К недавно установленной системе необходимо установить .NET Framework 3.5 необходимо вставить в зеркало системного диска или системы нагрузки на дисковод CD-ROM, устанавливайте файлы с установочным файлом .NET Frame3.5 под его источником SXS-каталога, конкретный Следующие действия следующим образом (Примечание. Чтобы обеспечить успех установки, не загружайте установочный файл .NET Framework 3.5 в Интернете для установки, а системную версию, в которой вставленный системный диск или зеркало загрузки системы такое же, как Система установлена ​​на сервере. Избегание сбоя установки из-за несовместимости версии .NET Framework 3.5 и системной версии, я не буду ошибаться.):

Во-первых, загрузите системный образ Windows Server2012 в виртуальный диск и просмотрите соответствующий символ диска (я загружаю символ GROCK System Syster G, и вы можете увидеть каталог G: SOXS SXS .NET Framework 3.5 компонентов)

image

Во-вторых, откройте менеджер сервера, «добавьте роли и функции», в вкладке «Подтверждение» нажмите «Укажите исходный путь» и введите путь к файлу установочного файла .NET FrameWok 3.5 в всплывающем окне Pread. (Я G: Источники SXS)

image

Затем «Установить», а затем установите .NET Framework3.5, SQL Server 2012 будет продолжать установить.

Добавка:

В дополнение к монтажу на вышеуказанный графический интерфейс вы также можете установить следующие способы:

1. Используйте инструмент PowerShell для установки (Microsoft настоятельно рекомендуемые системные администраторы используют мощный PowerShell для управления системой), укажитеПуть исходного файлаЗатем установите:

     Install-WindowsFeature NET-Framework-Core –Source G:Sourcessxs

2. Используйте команду DIM в командной строке, укажитеПуть исходного файлаЗатем установите:

     DISM /Online /Enable-Feature /FeatureName:NetFx3 /Source:G:sourcessxs

3. Используйте обмен файлами с папкой SXS, укажитеОбщий путь

     Install-WindowsFeature NET-Framework-Core –Source ServerNameShareNamesxs

Описание: I Am .NET Framework3.5 Установочный файл — это где G, должно быть изменено в соответствии с собой. Третий способ — установить установочные файлы .NET Framework3.5.ServerNameShareNamesxsЭта часть должна быть введена на основе фактического общего пути.

В данной статье рассмотрены способы, с помощью которых можно установить (включить) компонент. NET Framework 3.5 и. NET Framework 4.5 в операционной системе Windows 10.

.NET Framework — программная платформа, которая является частью многих приложений и предоставляет функциональные возможности для запуска этих приложений.

Если используется операционная система Windows, то платформа. NET Framework, возможно уже установлена на компьютере. В частности, версия. NET Framework 4.5 включена в Windows 8, версия 4.5.1 включена в Windows 8.1, а версия 4.6 включена в Windows 10.

Однако платформа. NET Framework 3.5 не устанавливается автоматически вместе с Windows 8, 8.1 или 10, и ее необходимо включить отдельно.

Установка платформы. NET Framework 3.5 по запросу

Если приложению требуется. NET Framework 3.5 и оно не находит эту версию на компьютере, во время установки или при первом запуске приложения, отображается следующее диалоговое окно. В окне сообщения выберите Скачать и установить этот компонент, чтобы включить. NET Framework 3.5.

Для реализации этого варианта требуется подключение к Интернету.

Как установить. NET Framework 3.5 в окне «Компоненты Windows»

Вы можете самостоятельно включить. NET Framework 3.5 в окне «Компоненты Windows». Для реализации этого варианта требуется подключение к Интернету.

Нажмите сочетание клавиш + R и в открывшемся окне Выполнить введите команду OptionalFeatures и нажмите клавишу Enter ↵.

В открывшемся окне Компоненты Windows установите флажок. NET Framework 3.5 (включает. NET 2.0 и 3.0), нажмите кнопку OK .

Начнется процесс установки компонента. NET Framework 3.5.

Не нужно выбирать дочерние элементы для активации HTTP Windows Communication Foundation (WCF), если только вы не разработчик, которому требуются функции сопоставления скрипта и обработчика WCF.

По окончании процесса установки нажмите кнопку Закрыть .

Если по какой-то причине вышеуказанный способ вам не подходит, то можно скачать официальный установщик. NET Framework 3.5 по ссылке с официального сайта Microsoft https://www. microsoft. com/ru-ru/download/details. aspx? id=21 (при этом не стоит обращать внимания, что Windows 10 отсутствует в списке поддерживаемых систем, все успешно устанавливается).

Как установить. NET Framework 3.5 в Windows 10 с помощью DISM

Если подключение к Интернету отсутствует, платформу. NET Framework 3.5 можно включить с помощью средства командной строки «Система обслуживания образов, развертывания и управления ими» (DISM), указав носитель (USB-накопитель, ISO-образ или DVD-диск), с которого была установлена Windows 10.

Чтобы установить компонент. Net Framework 3.5 с помощью DISM, откройте командную строку от имени администратора и выполните следующую команду:

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:F:sourcessxs

Где F — буква диска с дистрибутивом Windows 10 (или путь до распакованного дистрибутива).

Через некоторое время компонент. Net Framework будет установлен, перезагрузите Windows для завершения операции.

Ещё один из способов установки. NET Framework 3.5 в Windows 10, который Вы можете использовать, представлен в статье Как установить. NET Framework 3.5 в Windows 10 используя Windows PowerShell

Как установить. NET Framework 4.5 в Windows 10

В Windows 10 по умолчанию включен. NET Framework 4.6 который совместим с версиями 4.5, 4.5.1 и 4.5.2. Иными словами, при установке более поздней версии, например. NET Framework 4.6, вам не нужно предварительно устанавливать предыдущие версии, например. NET Framework 4.5, 4.5.1 или 4.5.2. Аналогично, при установке более поздней версии, например. NET Framework 4.6, вам не нужно предварительно удалять предыдущие версии, например. NET Framework 4.5, 4.5.1 или 4.5.2.

Если по какой-то причине в вашей системе отключен пункт. NET Framework 4.6, можно просто включить его для установки.

Также можно загрузить эти компоненты отдельно в виде автономных установщиков с официального сайта Microsoft:

    —.NET Framework 4.6 —.NET Framework 4.5.2 —.NET Framework 4.5.1 —.NET Framework 4.5

Если по каким-то причинам предлагаемые способы установки не работают, то можно воспользоваться дополнительными возможностями, которые помогут исправить ситуацию:

  1. Использование официальной утилиты Microsoft. NET Framework Repair Tool для исправления ошибок при установке. Утилиту можно скачать здесь → https://www. microsoft. com/en-us/download/details. aspx? id=30135
  2. Используйте утилиту Microsoft Fix It для автоматического исправления некоторых проблем, которые могут привести к ошибкам установки компонентов системы, скачать можно здесь → https://support. microsoft. com/en-us/kb/976982 (в первом пункте статьи)

На той же странице в 3-м пункте предлагается загрузить утилиту. NET Framework Cleanup Tool, полностью удаляющую все пакеты. NET Framework с компьютера. Это может позволить исправить ошибки при их повторной установке. Также пригодится, если вы получаете сообщение о том, что. Net Framework 4.5 уже является частью операционной системы и установлена на компьютере

[FIX] Ошибка установки. NET Framework 3.5 0x800F0950

Код ошибки 0x800F0950 появляется в Windows 10 при попытке установить. NET 3.5 Framework с помощью обычного установщика. Сообщение об ошибке, сопровождающее код ошибки: «Следующая функция не может быть установлена».

В большинстве случаев уязвимым пользователям удалось решить эту проблему, полагаясь на функцию Windows для установки. NET Framework 3.5. Если вы работаете в Windows 10, у вас уже есть установщик на вашем компьютере – вам просто нужно принудительно выполнить установку с экрана компонентов Windows.

Другим способом, который может помочь вам принудительно установить. NET Framework 3.5, является Центр обновления Windows. Помните, что Microsoft регулярно отправляет обновления для NET Framework, и одна из наиболее распространенных причин, которые могут вызвать ошибку 0x800F0950, – это случай, когда обновление NET Framework уже ожидает установки через Центр обновления Windows.

Если вы не можете выполнить установку с помощью компонентов Windows или Центра обновления Windows, вы можете установить отсутствующую платформу с совместимого установочного носителя. Если это также не помогает, вы можете создать собственный сценарий, который будет игнорировать ошибки синтаксического анализа и принудительно установить его через терминал CMD или Powershell.

Однако существуют некоторые документированные обстоятельства, при которых этот код ошибки появлялся из-за системной проблемы с повреждением, которая в конечном итоге влияла на способность операционной системы устанавливать платформы. В этом случае исправление установки или чистая установка – единственные жизнеспособные методы, которые исправят эту ошибку.

Способ 1. Установка. NET Framework 3.5 с использованием функций Windows

Если вы видите эту ошибку при попытке установить. NET Framework версии 3.5 из установщика, который вы скачали с помощью браузера, вы можете полностью обойти проблему, установив ее через меню «Функции Windows».

Имейте в виду, что Windows 10 уже включает в себя архив. NET Framework версии 3.5, вам просто нужно предложить установить его. Несколько затронутых пользователей, которые ранее сталкивались с кодом ошибки 0x800F0950 при установке. NET Framework версии 3.5, условно подтвердили, что установка прошла гладко, когда они попытались сделать это через экран функций Windows.

Чтобы установить. NET Framework 3.5 через экран «Функции Windows», выполните следующие действия:

  1. Откройте диалоговое окно «Выполнить», нажав клавишу Windows + R. Затем введите «appwiz. cpl» внутри текстового поля и нажмите клавишу «Ввод», чтобы открыть меню «Программы и компоненты».Введите appwiz. cpl и нажмите Enter, чтобы открыть список установленных программ.
  2. Зайдя в меню «Программы и компоненты», используйте меню справа, чтобы включить или отключить функции Windows.Доступ к меню функций Windows
  3. Когда вы находитесь на экране функций Windows, начните с установки флажка, связанного с. NET Framework 3.5 (этот пакет включает в себя. NET 2.0 и 3.0), затем нажмите кнопку «ОК», чтобы сохранить изменения.Включение. NET Framework 3.5
  4. При появлении запроса на подтверждение нажмите кнопку «Да», чтобы начать процедуру, затем дождитесь успешной установки пакета.
  5. После завершения операции перезагрузите компьютер и проверьте, устранена ли проблема после следующего запуска.

Если этот метод неприменим, вы столкнулись с другой ошибкой или планируете установить пакет. NET Framework 3.5 из исполняемого файла, который вы ранее скачали, перейдите к следующему потенциальному исправлению.

Одна из причин, которая может вызвать ошибку 0x800F0950 при попытке установить обновление. NET Framework 3.5, заключается в том, что у Центра обновления Windows уже есть запланированное обновление, готовое сделать то же самое.

Некоторые пользователи, столкнувшиеся с одним и тем же кодом ошибки, сообщили, что им, наконец, удалось решить проблему после обновления их версии Windows 10 до последней доступной сборки. После этого и перезапуска своего компьютера большинство сообщило, что. NET Framework 3.5 уже был установлен, поэтому не нужно было использовать специальный установщик.

Если этот сценарий применим, установите каждое ожидающее обновление для вашего компьютера с Windows 10 и посмотрите, автоматически ли оно решает проблему:

  1. Откройте диалоговое окно «Выполнить», нажав клавишу Windows + R. Далее введите «ms-settings: windowsupdate» в текстовом поле и нажмите клавишу «Ввод», чтобы открыть вкладку «Обновление Windows» приложения «Настройки».Диалог запуска: ms-settings: windowsupdate
  2. На экране Центра обновления Windows перейдите в правый раздел и нажмите «Проверить наличие обновлений».Установка каждого ожидающего обновления Windows
  3. Затем следуйте инструкциям на экране для установки каждого ожидающего обновления, пока не обновите компьютер.
    Примечание. Если вам будет предложено перезагрузить компьютер, прежде чем вы сможете установить каждое ожидающее обновление, перезапустите его, следуя инструкциям. Но после завершения следующего запуска вернитесь к тому же экрану Windows Update, чтобы завершить установку оставшихся обновлений.
  4. Как только вам наконец удастся установить каждое ожидающее обновление Windows, вы обнаружите, что. NET Framework 3.5 уже был установлен компонентом Центра обновления Windows.

Если этого не произошло или вы не готовы установить Обновления Windows, которые в данный момент находятся на рассмотрении, перейдите к следующему потенциальному исправлению ниже.

Способ 3: установка NET Framework через установочный носитель

В случае, если первые два исправления не сработали для вас, одно жизнеспособное исправление, которое многие пользователи успешно использовали, – это заставить совместимый установочный носитель установить NET Framework для вас из командной строки с повышенными привилегиями или окна Powershell.

Это эквивалентно методу, описанному ниже, но это гораздо быстрее, если у вас уже есть совместимый установочный носитель.

Если вы хотите попробовать этот метод, следуйте приведенным ниже инструкциям, чтобы установить версию. NET Framework 3.5 непосредственно с совместимого установочного носителя:

  1. Вставьте совместимый установочный носитель в дисковод DVD, флэш-накопитель или смонтируйте его, если вы используете ISO.
  2. Нажмите клавишу Windows + R, чтобы открыть диалоговое окно «Выполнить». Затем введите «cmd» в текстовом поле и нажмите Ctrl + Shift + Enter, чтобы открыть командную строку с повышенными привилегиями. Когда вы увидите UAC (Запрос учетной записи пользователя), нажмите Да, чтобы предоставить административные привилегии.Введите «cmd» в диалоговом окне «Выполнить»

Примечание. Если вы хотите использовать Powershell, введите «PowerShell» вместо «cmd».

Если вы все равно видите ошибку 0x800F0950 или установка не удалась с другим кодом ошибки, перейдите к следующему потенциальному исправлению ниже.

Способ 4: создание пользовательского сценария установки

Если описанный выше метод не сработал для вас или вы ищете альтернативу использованию компонентов Windows, вы сможете обойти ошибку 0x800F0950, создав собственный сценарий установки CMD и запустив его с повышенными привилегиями.

Но имейте в виду, что для этого вам потребуется создать совместимый установочный носитель для вашего компьютера с Windows 10.

Если у вас уже есть совместимый установочный носитель или вы только что создали его, используя приведенное выше руководство, следуйте приведенным ниже инструкциям, чтобы принудительно установить. NET Framework 3.5 с помощью специального сценария:

    Откройте диалоговое окно «Выполнить», нажав клавишу Windows + R. Затем введите «notepad. exe» и нажмите Ctrl + Shift + Enter, чтобы открыть окно блокнота с повышенными правами.Открытие повышенного окна Блокнота

Примечание. Когда вас попросит UAC (Контроль учетных записей), нажмите Да, чтобы предоставить административные привилегии.

Примечание. Вам необходимо заменить PLACEHOLDER на букву диска, на котором в данный момент находится установочный носитель.

Если вы все еще видите код ошибки 0x800F0950 или застряли с другим кодом ошибки, перейдите к следующему потенциальному исправлению ниже.

Способ 5: выполнение ремонтной установки

Если ни одно из вышеперечисленных исправлений не сработало для вас, вероятно, вы имеете дело с какой-то коррупцией, которая не исчезнет традиционным способом. В этом случае вам следует попытаться устранить код ошибки 0x800F0950, сбросив все файлы, связанные с Windows.

Вы можете сделать это с чистой установкой, но мы рекомендуем вместо этого пойти на ремонтную установку (ремонт на месте).

Хотя чистая установка не различает и не удаляет все на вашем диске ОС (если вы не сделаете резервную копию заранее), восстановительная установка затронет только компоненты ОС, оставив личные файлы, приложения и игры без изменений.

Источники:

https://winnote. ru/instructions/219-kak-ustanovit-net-framework-35-i-45-v-windows-10.html

https://ddok. ru/fix-oshibka-ustanovki-net-framework-3-5-0x800f0950/

While creating one of many Lync scenario labs, I chose to install SQL Server 2012 instead of my usual install of SQL 2008 on Windows Server 2012. Going about my happy routine after clicking install, I expected install to complete when I returned a few hours later. Murphy never fails though. And here I am looking at install error instead!

The error read:

TITLE: Microsoft SQL Server 2012  Setup
——————————

The following error has occurred:

Error while enabling Windows feature : NetFx3, Error Code : -2146498298 , Please try enabling Windows feature : NetFx3 from Windows management tools and then run setup again. For more information on how to enable Windows features , see http://go.microsoft.com/fwlink/?linkid=227143

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.2100.60&EvtType=0x681D636F%25401428%25401

So it wants me to install NetFx3. Should be easy. The requirement basically meant it needed .Net Framework 3.5. All I have to do is run the following from PowerShell:

Add-WindowsFeature NET-Framework-Core

Well, what do I know? It gave me an error too!

Add-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be downloaded.

Having seen this error, I knew what I had to do but let me illustrate. When you run the following at PowerShell prompt, you will notice that not only the “Installed” state is set to “False” indicating it’s not installed but “InstallState” states “Removed”:

Get-WindowsFeature Net-Framework-Core | FT name,install*

Name                                                             Installed                          InstallState
—-                                                                  ———                            ————
NET-Framework-Core                                False                                 Removed

All it means is that the standard install of Windows Server 2012 does not even install binaries required to enable feature. If you want to install this feature, you will need side-by-side assembly source, usually the installation media. If you are curious about what side-by-side means, check out wiki article here.

The solution here sounds simple. Just run:

Add-WindowsFeature NET-Framework-Core -Source D:sourcessxs

This assumes D is your CD drive which has Windows Server 2012 installation media. Now I should warn you, this won’t work if you have run Windows Update and applied patches after installing Windows Server 2012 and before trying to install SQL Server 2012! If you want answer to obvious “why?”, you should read my previous post explaining how to resolve Error: 0x800f0906 adding Windows features.

Don’t you love rabbit holes we deal with in IT? Smile

Related

    Share:

3 Comments

error-03

 
Updated: January 12, 2018
Today I came across an error when trying to install SQL Server 2012 on Windows Server 2012 R2. There are several options to fix this error. Using Server Manager, Command Prompt or using PowerShell. Make sure you mount the OS CD before going onward. (D: is my CD Drive)
The following error has occurred:

clip_image001

Netfx3 Error
 

Error while enabling Windows feature : NetFx3, Error Code : -2146498298 , Please try enabling Windows feature : NetFx3 from Windows management tools and then run setup again. For more information on how to enable Windows features, see http://go.microsoft.com/fwlink/?linkid=227143

Fix Using Server Manager for Netfx3

Open Server Manager under manage select “Add Roles and Features.” Then select .NET Framework 3.5 Features click Next.

 
clip_image002

 
As the binaries for .NET Framework 3.5 Features not copied with the OS, make sure you insert the Server OS media. You can find it in the warning as well. Click on “Specify and alternate source path” to explicitly specify the source location. In my case, its D:sourcessxs. Then resume the setup.(Just click Finish)

 
clip_image003
clip_image004

Fix Using Command Prompt or PowerShell

In Command prompt as administrator, run: dism /online /enable-feature /featurename:NetFx3 /source:d:sourcessxs
If you are using powerShell run Add-WindowsFeature NET-Framework-Core -Source D:sourcessxs in elevated mode.

 
clip_image005

 
After installing .NET 3.5 I was able to install SQL 2012 successfully.

 
image1

 
For further details you can refer Microsoft’s support article http://support.microsoft.com/kb/2734782
Thank you.


If you want more blogs like this, visit the author’s blogsite: https://min2dmax.wordpress.com
 


Installing windows server and .NET Framework has always been a kids stuff till we realized that Server 2012 R2 release onwards, it is not available by default to be added from ‘Add Remove Windows Server Role Features’. Hence like all, I was stumped at installation of SQL server 2012 which requires Netfx3 and so will the problem appear for any application that depends on .Net Framework 3.5

Problem Description

I was installing SQL Server 2012 on a Windows Server 2012 R2 Standard virtual machine, and the installation was already in progress when I received the following error:

Error while enabling Windows feature: NetFx3, Error Code: -2146498298, Please try enabling
Windows feature: NetFx3 from Windows management tools and then run setup again. For more
information on how to enable Windows features, see http://go.microsoft.com/fwlink/?linkid=227143

t1

Since I did not enable .NET Framework 3.5 before installing SQL Server 2012, setup tried to enable it but failed.

I then tried to enable .NET Framework 3.5 on Windows Server 2012 using the “Add Roles and Features Wizard” of Windows Serve 2012 and to my surprise it failed again.

Solution

On the new Server Manager of Windows Server 2012, we made a click on the Manage menu, and selected the option “Add Roles and Features”.

t2

On the first page of Add Roles and Features Wizard, click on the Next button.

t3

On the installation type page, we chose “Role-based or feature-based installation”.

t4

On the Server Selection page of the wizard, we selected the actual server where we were installing SQL Server 2012

t5

On the “Server Roles” page of the wizard, we just clicked on the Next button.

t6

On the “Features” page of the Wizard, we clicked on the checkbox next to “.NET Framework 3.5 Features”, and then clicked on the Next button.

t7

On the confirmation page, we just clicked on the Install button.

t8

The installation using the “Add Roles and Features Wizard” failed with an error

t9

Learn more on Cloud Infrastructure management

It turns out that Windows Server 2012 does not include NetFx3 when it is installed as .Net Framework 4.5 is provided by default.  It doesn’t mean that it is gone, but it has to be installed separately.  

Hence the fundamental problem here is that you need to tell windows where to find the NetFX installation files –simple.

  • Insert the Windows installation media.
  • Start the Add Roles and Features Wizard again.
  • On the Select features page, select the .Net Framework 3.5 Features check box, and then click Next.
  • On the Confirm installation selections page, click the Specify an alternate source path link.

t10

  • On the Specify Alternate Source Path page, type the path of the SxS folder as a local path or as a network share path. The screen shot for this step is listed below.

t11

Click OK.

Click Install to finish the wizard

t12

Conclusion

By default, on Windows Server 2012 (R2) the NetFx3 (.Net Framework 3.5) feature is not installed because it has already installed the .Net Framework 4.5; however some applications may require the NetFx3 feature and in this post we have seen how to make server 2012 work backward.

Symptom

On a default installation of Windows Server 2012 sometimes you experience problems with the .NET Framework 3.5 features while trying to enable it.

It fails if you try to install it using the Add Roles and Features Wizard, using Powershell or dism.

.NET Framework 3.5 features installation failure

.NET Framework 3.5 features installation failure

The same happens during an SQL Server installation with the following error message:

The following error has occurred:

Error while enabling Windows feature: NetFx3, Error Code: -2146498298, Please try enabling Windows feature: NetFx3 from Windows management tools and then run setup again.

Error while enabling Windows feature: NetFx3

Error while enabling Windows feature: NetFx3

Solution

GUI

On the Add Roles and Features Wizard’s Confirmation page spot the difference: On the top of the page there is an exclamation mark and a short message about missing source files. This simply means that you selected one or more roles and features which files are not available for the operating system at the moment. To amend this select the Sepcify an alternate source path on the bottom of the page.

Missing installation source files

Missing installation source files

On this new window enter the path to your Windows Server 2012 sources/sxs folder. The WIM file won’t work, you need the previously mentioned folder!

Alternate source path

Alternate source path

That’s all using the GUI, sorted.

Powershell

To do the same thing using Powershell type the following command:

Install-WindowsFeature NET-Framework-Core -Source D:sourcessxs

Where NET-Framework-Core is the feature’s name, and D:sourcessxs is a folder on the Windows Server 2012 media.

Install .NET Framework 3.5 features using Powershell

Install .NET Framework 3.5 features using Powershell

Command prompt

You can do the same thing from a command prompt, using dism.exe:

dism.exe /online /enable-feature /featurename:netfx3 /all /source:D:sourcessxs

Online swith simply tells dism to do the task on the running system, the feature’s name with dism is netfx3 (remember the SQL server’s error message? It mentioned the same feature name.) and the last part is the alternate path.

Install .Net Framework 3.5 with dism.exe

Install .Net Framework 3.5 with dism.exe

Explanation

After a few solutions to this problem let!s take a look at the reasons behind this error.

If you open a Powershell window and query the roles and features (Get-WindowsFeature) take a look at .NET Framework 3.5.

Windows roles and features in a Powershell window

Windows roles and features in a Powershell window

In the last column the Install state is different, it says Removed.

  • Available means that you can install the feature and the source files are on the machine and the OS can use them
  • Installed means that the role or feature is already enabled and in use
  • Removed means that you can install the feature but the source files for that are not available for this OS

This is the main difference from any other role or feature and this is the reason the installation fails, the source files are not available. Well, this would not be a problem because Windows can also download them from the Internet! So if you never experienced this but installed this feature or SQL multiple times without any issues, the reason is that your machine simply downloaded the files from the Internet. But in some scenarios this is not possible for various reasons.

By the way you can uninstall any source files like this for any role or feature and it is called Features on demand, read more about this topic here: Roles, features and the WinSxS folder in Windows Server 2012

With features on demand later, most of the time you specify the install.wim file, but this won’t work with .NET Framework 3.5, because by default the sources are not in there. Does not matter if you specify it with the source parameter, copy the files or mount the wim, the files are not there. That’s why any solution recommending this is wrong.

But you can always prepare your own wim file or image with .NET Framework source files already in there, use  dism.exe for this task.

Summary

.NET Framework 3.5 feature installation files are not available by default in a Windows Server 2012 system (neither from the install.wim file)

Windows tries to download the files from the Internet. If you want to avoid it or your server cannot access it specify an alternate source path on the Confirmation page of the wizard or use the source parameter of dism.exe or Install-WindowsFeature powershell commandlet.

The files are not in the install.wim file, but you can create your own with dism for example.

October 15, 2016 by Sql Times

Quick one today:

Ran into an interesting version of the familiar error message. When installing Sql Server 2012 on a Windows Server 2012 R2, this error appeared.

Please note that, during pre-install checks, it just highlighted lack of .Net 3.5 it as a warning, but not as a failure. When installation is attempted, it fails asking for .Net 3.5.

TITLE: Microsoft SQL Server 2012 Setup
 ------------------------------

The following error has occurred:

Error while enabling Windows feature : NetFx3, Error Code : -2146498298 , 
Please try enabling Windows feature : NetFx3 from Windows management tools 
and then run setup again. For more information on how to enable Windows features, 
see http://go.microsoft.com/fwlink/?linkid=227143

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.5058.0&EvtType=0x681D636F%25401428%25401

net3-5_error

It seems like a cryptic error message, but its just a different variation of the same old “Missing .Net 3.5” error message. To resolve follow these steps:

Step 1:

From Task Bar, open Server Manager. Go to Manage, Add Roles and Features.

server_manager_add_roles_and_features

Step 2:

In the Add Roles and Features Wizard, click through the initial screen; When you are in ‘Installation Type’ tab, choose ‘Role-based or Feature-based installation’.

add_roles_and_features_wizard

Step 3:

Under Server Selection tab, choose the appropriate server name. If you are running it on the server, its name will be displayed in the Server Pool section.

server_selection_wizard

Step 4:

Skip the next section (Server Roles). Installation of .Net 3.5 is under Features. In the Features section, click the check box to install .Net 3.5.

install_net35

Step 5:

Components necessary to install .Net 3.5 are usually not readily available, so having access to Windows Server 2012 DVD or ISO would be necessary.

Windows_2012_ISO.png

In the Confirm Installation Selections step, at the bottom of the screen, click on Specify an alternate source path link to specify the path to Windows Server 2012 ISO.

Once necessary binaries are identified, installation will progress to completion.

Then reattempt, Sql Server installation.

Понравилась статья? Поделить с друзьями:
  • Please switch it to online by using windows disk management
  • Please set display card hardware accelerator windows 10
  • Please select boot device что выбрать при установке windows 7
  • Please select boot device что выбрать при запуске windows
  • Please select boot device windows boot manager enter setup что делать