最近在安装SQL server 2012时,碰到错误:Error while enabling Windows feature: NetFx3, Error Code: -2146498298。原本以为Windows 2012配上SQL server 2012应该是一路顺畅才对啊。下面是这个问题的描述及解决方案。
1、安装环境
OS:Windows 2012 data center版本
SQL:SQL server 2012 Enterprise
2、故障描述
3、故障解决
经查,该问题是由于未安装.NET Framework 3.5。.NET 4.0都出了,还需要安装.NET 3.5?汗,应该保持兼容才好啊!下面是安装.NET 3.5的截图
选择下一步,在选择需要安装的服务器,如下
选择下一步,到功能模块,勾选.NET Framework 3.5,选择指定备用源路径,指定安装文件的位置,如下图。
安装完成
如果继续安装SQL server,则到如下错误。可以再次启动安装界面重新安装或者直接通过修复方式进行自动修复即可。
Action required:
Use the following information to resolve the error, and then try the setup process again.
Feature failure reason:
An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Error details:
§ Error installing Microsoft .NET Framework 3.5
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 code: 0x85940001
Visit http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.5058.0&EvtType=0x681D636F%401428%401&EvtType=0x681D636F%401428%401 to get help on troubleshooting.