Код ошибки 0x85940001

  • Remove From My Forums
  • Question

  • SQL Server 2012 setup failed during installation because of this error with error code «0x85940001» and message

    «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»

    We know this due to one of the feature in windows 2012R2 (NetFx3) was note enabled during the setup time. We were unable to cancel the setup and proceeded until end with following services «Database engine, Reporting services, Analysis services, Client
    tools, SQL Server Data Tools, Data Quality Services, SQL Server Replication,  Master Data Services» failed during setup.

    If its a standalone server I have uninstalled all components restart server and reinstalled from first,

    Can some experts help here us, since its a cluster server configuration ! what is the first action needed now and what are the septs to follow to set all right and install the SQL Cluster successsfully with same cluster name and shared drives, Thanks

Answers

  • Hi, I got out of this error now, Actually the error is reported because the NetFx3 windows feature component was missing, that is what the error itself denoted but the problem was this happened during a middle of two node cluster installation. 

    To come out of this error, I did the following,

    1, Uninstall the installation done one of the node with failure notices for many features,

    2, Clear up registry parameters to satisfy the system that this node don’t have an existing cluster configuration (This is quit big so if some one encountered this ping me in sriniguts@gmail.com I would share the document with you)

    3, Start with the new setup with cluster validations test on both the nodes

    Then all went on successfully, this took 3 to 4 hrs to clean the system itself !!

    • Marked as answer by

      Saturday, September 20, 2014 8:19 AM

  • Remove From My Forums
  • Question

  • SQL Server 2012 setup failed during installation because of this error with error code «0x85940001» and message

    «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»

    We know this due to one of the feature in windows 2012R2 (NetFx3) was note enabled during the setup time. We were unable to cancel the setup and proceeded until end with following services «Database engine, Reporting services, Analysis services, Client
    tools, SQL Server Data Tools, Data Quality Services, SQL Server Replication,  Master Data Services» failed during setup.

    If its a standalone server I have uninstalled all components restart server and reinstalled from first,

    Can some experts help here us, since its a cluster server configuration ! what is the first action needed now and what are the septs to follow to set all right and install the SQL Cluster successsfully with same cluster name and shared drives, Thanks

Answers

  • Hi, I got out of this error now, Actually the error is reported because the NetFx3 windows feature component was missing, that is what the error itself denoted but the problem was this happened during a middle of two node cluster installation. 

    To come out of this error, I did the following,

    1, Uninstall the installation done one of the node with failure notices for many features,

    2, Clear up registry parameters to satisfy the system that this node don’t have an existing cluster configuration (This is quit big so if some one encountered this ping me in sriniguts@gmail.com I would share the document with you)

    3, Start with the new setup with cluster validations test on both the nodes

    Then all went on successfully, this took 3 to 4 hrs to clean the system itself !!

    • Marked as answer by

      Saturday, September 20, 2014 8:19 AM

Детали ошибки:

§ Произошла ошибка при установке Microsoft .NET Framework 3.5.

Произошла ошибка при включении функции Windows NetFx3, код ошибки: -2146498298. Попробуйте включить функцию Windows NetFx3 из средства управления Windows, а затем снова запустите установщик. Дополнительные сведения о том, как включить функции Windows, см. На странице http://go.microsoft.com/fwlink/?linkid=227143.

Код ошибки: 0x85940001

Посетите http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3000.0&EvtType=0x681D636F%401428%401&Evt401d для устранения неполадок с помощью.

wKiom1YfvP_x5BOMAAD-KN_gAsY871.jpg

wKiom1YfvYehUsksAAQ46QFUbIU889.jpg

NetFx3 относится к .NET Framework 3.5, SQL Server 2012база данныхРабота системы должна зависеть от .NET Framework 3.5, но в Windows Server 2012 .NET Framework 3.5 не установлен по умолчанию, поэтому для успешной установки SQL Server 2012 необходимо сначала установить .NET Framework 3.5 в операционной системе. В окнахserverЧтобы установить .NET 3.5 в 2012 году, выполните следующие действия:

 1. Откройте «Диспетчер серверов» и выберите «Добавить роли и функции».

wKioL1Yfvkuj-USTAAL4WuICuNw560.jpg

Нажмите кнопку «Далее»

wKioL1YfvkuAUU6xAAKGTze2sAQ242.jpg

wKiom1YfvimQK0ogAAH7u4agzvs926.jpg

wKioL1Yfvkvw9vESAAKIO6df_KA787.jpg

wKiom1YfvirQ_3M2AAMOrB7iED0947.jpg

Как показано на рисунке ниже, убедитесь, что все функции в .Net Framework 3.5 отмечены, и нажмите «Далее».

wKioL1YfvkzjqU5hAALqueyEW1o377.jpg

Очень важно: на следующем рисунке выберите «Указать альтернативный путь к источнику».

wKiom1YfvirB0tVGAAH9SPjaNJY897.jpg

Путь указан как путь к установочному компакт-диску Windows server 2012.

wKioL1Yfvk3TLZgKAAMRWGhRbKk302.jpg

wKiom1YfvivzipvuAAMPctkoxfs149.jpg

wKioL1Yfvk2TIb24AAIeWAeINbQ472.jpg

wKiom1YfviyjFkosAAHl3Hrzjtw178.jpg

Хорошо, добавь ок, все тихо.

Кроме того, вы также можете использовать PowerShell для установки, команда немного сложнее.

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

Эта статья воспроизведена из блога Chenghang 51CTO, исходная ссылка: http://blog.51cto.com/hangtc/1703384, если вам нужно перепечатать, пожалуйста, свяжитесь с исходным автором самостоятельно

Hi Friends,

Couple of weeks back one of the junior DBAs I know was installing SQL Server 2012 on Windows Server 2012 VM. He was confident that every pre-check were good and they should be fine to go with installation without any issues. In reality it was just opposite, when he reached me he informed that installation is failing and they are running out of time and server needs to be handed over within next 3 hours’ time, not much time left to troubleshoot the issue. On checking Summary.txt file, I came across following error message;

Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the                                                                       feature to fail.

Next Step:                                Use the following information to resolve the error, and then try the setup process again.

Component name:           Microsoft .NET Framework 3.5

Component error code:          0x85940001

Error description:             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

Error help link:                  http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3000.0&EvtType=0x681D636F%401428%401&EvtType=0x681D636F%401428%401

I observed this error for Management Tools – Complete, Management Tools – Basic, Database Engine Services, Full-Text and Semantic Extractions for Search, SQL Server Replication to name a few features. Easily you can understand that we had to install Microsoft .NET Framework 3.5 so not a big deal but I wanted my colleague to run installation wizard again and show me how he approached installation. As I thought, he failed to read following warning on Prerequisites for selected features;

1_SQL_Server_An_error_occurred_for_a_dependency_of_the_feature_causing

Now when someone skip this warning and allow installation to progress further and when you reach to the stage of Enabling OS feature ‘NetFx3’ (screenshot below), your installation stalls for a while then pops up a message shown in screenshot below;

2_SQL_Server_An_error_occurred_for_a_dependency_of_the_feature_causing

3_SQL_Server_An_error_occurred_for_a_dependency_of_the_feature_causing

4_SQL_Server_An_error_occurred_for_a_dependency_of_the_feature_causing

When you click OK, your installation doesn’t stop and continues but only thing is it fails after some time. So, we have to install .Net Framework 3.5 Features from Server Manager GUI (screenshot below);

5_SQL_Server_An_error_occurred_for_a_dependency_of_the_feature_causing

Hang on, we are not done; even if you select .Net Framework 3.5 Features on Server Manager this feature installation may fail on Windows Server 2012 (screenshot below);

6_SQL_Server_An_error_occurred_for_a_dependency_of_the_feature_causing

As mentioned on error massage, you will have to specify an alternate source path for installing this feature and it should be sourcessxs on your Windows Server 2012 installation media in order to be successful. Yes, there could be other ways to install this feature but I felt this one is easy given that fact we were manage to locate windows ISO on our software repository.

7_SQL_Server_An_error_occurred_for_a_dependency_of_the_feature_causing

8_SQL_Server_An_error_occurred_for_a_dependency_of_the_feature_causing

This may not be directly related to SQL Server 2012 installation however certainly part of mandatory prerequisites which we fail to check at different time causing setup failures. It is equally important to ensure we read out every warning message to avoid such failures and once you do that, all should be fine.

9_SQL_Server_An_error_occurred_for_a_dependency_of_the_feature_causing

Regards

Kanchan Bhattacharyya

Like us on FaceBook  |  Follow us on Twitter | Join the fastest growing SQL Server group on FaceBook

Follow me on Twitter |  Follow me on FaceBook

I am attempting to install SQL Server 2012 Developer Edition in a Windows container running Windows Core Server 2019. I wrote a Dockerfile and copied the SQL Server 2012 installation files into the Docker build context (4.94 GB on disk). I would prefer not to have to include the installer in the build context, but I do not have a Web server available on which to host the files. When I run setup.exe, I see no diagnostic messages indicating failure, and yet the log file SqlSetup.log contains the message «Setup closed with exit code: 0x84C40013» at the end of the file.

Here is my Dockerfile:

# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2019

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]

# Before doing a Docker build, copy the following folder from \filesrv01SoftwareDatabasesAll Database SoftwareMicrosoft ...
COPY en_sql_server_2012_developer_edition_x86_x64_dvd_813280/ C:sql_server_2012

# Copy script to set up SQL Server
COPY set-up-sql-server.cmd C:

Here is my SQL Server 2012 installation script set-up-sql-server.cmd:

C:sql_server_2012setup.exe /q /ACTION=Install /FEATURES=SQLEngine /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="NT AUTHORITYNetwork Service" /SQLSYSADMINACCOUNTS="NT AUTHORITYNetwork Service" /AGTSVCACCOUNT="NT AUTHORITYNetwork Service" /IACCEPTSQLSERVERLICENSETERMS

Here is an excerpt from my PowerShell session:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:UsersmmoreyDocumentsgitdocker-mssql2012> docker run --interactive --tty mssql-2012
Microsoft Windows [Version 10.0.17763.1040]
(c) 2018 Microsoft Corporation. All rights reserved.

C:>set-up-sql-server.cmd

C:>C:sql_server_2012setup.exe /q /ACTION=Install /FEATURES=SQLEngine /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="NT AUTHORITYNetwo
rk Service" /SQLSYSADMINACCOUNTS="NT AUTHORITYNetwork Service" /AGTSVCACCOUNT="NT AUTHORITYNetwork Service" /IACCEPTSQLSERVERLICEN
SETERMS
Microsoft (R) SQL Server 2012 11.00.2100.60
Copyright (c) Microsoft Corporation.  All rights reserved.

Microsoft .NET Framework CasPol 4.7.3190.0
for Microsoft .NET Framework version 4.7.3190.0
Copyright (C) Microsoft Corporation.  All rights reserved.

WARNING: The .NET Framework does not apply CAS policy by default. Any settings shown or modified by CasPol will only affect
applications that opt into using CAS policy.

Please see http://go.microsoft.com/fwlink/?LinkId=131738 for more information.


Success
Microsoft .NET Framework CasPol 4.7.3190.0
for Microsoft .NET Framework version 4.7.3190.0
Copyright (C) Microsoft Corporation.  All rights reserved.

WARNING: The .NET Framework does not apply CAS policy by default. Any settings shown or modified by CasPol will only affect
applications that opt into using CAS policy.

Please see http://go.microsoft.com/fwlink/?LinkId=131738 for more information.


Success

C:>cd Users

C:Users>dir *.log /s
 Volume in drive C has no label.
 Volume Serial Number is E4BB-38D4

 Directory of C:UsersAll UsersMicrosoftWindowsWERReportQueueCritical_10.0.17763.850_464a773e8edf25185cd88a761afde13fe6f97325_
00000000_cab_0199d07a

03/02/2020  11:25 AM         1,227,459 CBS.log
           1 File(s)      1,227,459 bytes

 Directory of C:UsersContainerAdministratorAppDataLocalTemp

03/02/2020  11:27 AM           102,216 SqlSetup.log
               1 File(s)        102,216 bytes

     Total Files Listed:
               2 File(s)      1,329,675 bytes
               0 Dir(s)  19,351,437,312 bytes free

C:Users>more C:UsersContainerAdministratorAppDataLocalTempSqlSetup.log
03/02/2020 11:23:38.007 ======================================================================
03/02/2020 11:23:38.007 Setup launched
03/02/2020 11:23:38.007 Attempting to determine media source
03/02/2020 11:23:38.007 Media source value not specified on command line argument.
03/02/2020 11:23:38.022 Setup is launched from media directly so default the value to the current folder.
03/02/2020 11:23:38.022 Media source: C:sql_server_2012
03/02/2020 11:23:38.022 Attempt to determine media layout based on file 'C:sql_server_2012mediainfo.xml'.
03/02/2020 11:23:38.241 Media layout is detected as: Full
03/02/2020 11:23:38.241 Not a slip stream media, so continuing to run setup.exe from media.
03/02/2020 11:23:38.257 SQM key not found
03/02/2020 11:23:38.257 /? or /HELP or /ACTION=HELP specified: false
03/02/2020 11:23:38.257 Help display: false
03/02/2020 11:23:38.257 Server-Gui-Mgmt: 0, Server-Gui-Shell: 0
03/02/2020 11:23:38.272 .Net version 4.0 is installed
03/02/2020 11:23:38.272 Local setup.exe not found, so continuing to run setup.exe from media.
03/02/2020 11:23:38.272 Attempt to initialize SQL setup code group
03/02/2020 11:23:38.272 Attempting to determine security.config file path
03/02/2020 11:23:38.272 Checking to see if policy file exists C:WindowsMicrosoft.NETFramework64v4.0.30319\CONFIGsecurity.confi
g
03/02/2020 11:23:38.289 .Net security policy file does not exist
03/02/2020 11:23:38.289 Attempting to create .Net security policy file
03/02/2020 11:23:39.795 Attempting to load .Net security policy file
.
.
.
03/02/2020 11:23:40.078 Saved .Net security policy file
03/02/2020 11:23:40.078 Attempting to determine security.config file path
03/02/2020 11:23:40.078 Checking to see if policy file exists  C:WindowsMicrosoft.NETFrameworkv4.0.30319\CONFIGsecurity.config
03/02/2020 11:23:40.095 .Net security policy file does not exist
03/02/2020 11:23:40.095 Attempting to create .Net security policy file
03/02/2020 11:23:41.588 Attempting to load .Net security policy file
.
.
.
03/02/2020 11:23:41.691 Saved .Net security policy file
03/02/2020 11:23:41.726 Strong name verification disabling is not required
03/02/2020 11:23:41.726 /? or /HELP or /ACTION=HELP specified: false
03/02/2020 11:23:41.726 Help display: false
03/02/2020 11:23:41.726 Attempting to launch landing page workflow
03/02/2020 11:23:41.726 Attempting to set setup mutex
03/02/2020 11:23:41.726 Setup mutex has been set
03/02/2020 11:23:41.726 Attempting to launch global rules workflow
03/02/2020 11:23:41.726 Media source: C:sql_server_2012
03/02/2020 11:23:41.741 Install media path: C:sql_server_2012x64setup
03/02/2020 11:23:41.743 Media layout: Full
03/02/2020 11:23:41.743 Attempting to get execution timestamp
03/02/2020 11:23:41.743 Timestamp: 20200302_112338
03/02/2020 11:23:41.743 Attempting to run workflow RUNRULES /RULES=GlobalRules
03/02/2020 11:23:41.743 Attempting to launch process C:sql_server_2012x64ScenarioEngine.exe
03/02/2020 11:23:49.445 Process returned exit code: 0x00000000
03/02/2020 11:23:49.461 Workflow RUNRULES /RULES=GlobalRules returned exit code: 0x00000000
03/02/2020 11:23:49.461 Attempting to launch component update workflow
03/02/2020 11:23:49.461 Media source: C:sql_server_2012
03/02/2020 11:23:49.461 Install media path: C:sql_server_2012x64setup
03/02/2020 11:23:49.461 Media layout: Full
03/02/2020 11:23:49.461 Attempting to get execution timestamp
03/02/2020 11:23:49.461 Timestamp: 20200302_112338
03/02/2020 11:23:49.476 Attempting to run workflow COMPONENTUPDATE
03/02/2020 11:23:49.476 Attempting to launch process C:sql_server_2012x64ScenarioEngine.exe
03/02/2020 11:24:59.261 Process returned exit code: 0x00000000
03/02/2020 11:24:59.272 Workflow COMPONENTUPDATE returned exit code: 0x00000000
03/02/2020 11:24:59.272 Attempting to launch user requested workflow locally
03/02/2020 11:24:59.272 Attempting to find local setup.exe
03/02/2020 11:24:59.272 Local bootstrap folder path: C:Program FilesMicrosoft SQL Server110Setup Bootstrap
03/02/2020 11:24:59.286 Local ScenarioEngine.exe full path: C:Program FilesMicrosoft SQL Server110Setup BootstrapSQLServer2012
x64ScenarioEngine.exe
03/02/2020 11:24:59.286 Media source: C:sql_server_2012
03/02/2020 11:24:59.286 Install media path: C:sql_server_2012x64setup
03/02/2020 11:24:59.286 Media layout: Full
03/02/2020 11:24:59.302 Attempting to get execution timestamp
03/02/2020 11:24:59.302 Timestamp: 20200302_112338
03/02/2020 11:24:59.302 Attempting to run user requested action from local ScenarioEngine.exe
03/02/2020 11:24:59.302 Attempting to launch process C:Program FilesMicrosoft SQL Server110Setup BootstrapSQLServer2012x64Sce
narioEngine.exe
03/02/2020 11:27:42.901 Process returned exit code: 0x85940001
03/02/2020 11:27:42.917 Local ScenarioEngine.exe returned exit code: 0x85940001
03/02/2020 11:27:42.949 Attempting to load .Net security policy file C:WindowsMicrosoft.NETFramework64v4.0.30319\CONFIGsecurit
y.config
03/02/2020 11:27:43.045 Attempting to remove .Net security code group node
.
.
.
03/02/2020 11:27:44.682 Saved .Net security policy file
03/02/2020 11:27:44.682 Attempting to release setup mutex
03/02/2020 11:27:44.698 Setup mutex has been released
03/02/2020 11:27:44.698 Setup closed with exit code: 0x84C40013
03/02/2020 11:27:44.698 ======================================================================

C:Users>

There are no specific messages to indicate the nature of the installation failure, nor what steps to take.

Понравилась статья? Поделить с друзьями:
  • Код ошибки 0x858c001b
  • Код ошибки 0x80d0000a
  • Код ошибки 0x851a001a при установке sql server
  • Код ошибки 0x80888002
  • Код ошибки 0x84bb0001 sql 2012