分享交流
合作共赢!

Windows server安装.NET Framework报错找不到源文件问题解决办法

一、简介

Windows server 2012R2,自带的是.NET Framework 4.5,如果想装SQL server2008或者SQL server2012就需要安装 .ENT Framework 3.5或者2.0的版本,建议安装  .NET3.5 版本,我本人亲测过,成功了!

二、报错内容

安装不成功错误分析:

如果直接装SQL server2008或者2012,就会报:无法安装一下功能 .NET Framework 3.5。

https://img-blog.csdn.net/20180507082543106?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

如果找一个.NET Framework 3.5的来安装,系统会报安装了一个或者多个角色服务或功能失败,找不到原文件等错误。

https://img-blog.csdnimg.cn/20181206152859486.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2g2MTA0NDM5NTU=,size_16,color_FFFFFF,t_70

按照提示从控制面板-程序-启动或关闭Windows功能里看看

https://img-blog.csdn.net/20180507082205435?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

这和Win7,win10 ,xp操作不一样,但是原理是一样;

https://img-blog.csdn.net/20180507082403558?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

 

https://img-blog.csdn.net/20180507082812269?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

 

https://img-blog.csdn.net/20180507082827453?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

 

https://img-blog.csdn.net/2018050708285139?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

我们看到系统默认安装了.NET Framework 4.5于是隐隐有种不祥的预感,但我们还是要硬着头皮勾选3.5

https://img-blog.csdn.net/20180507083100551?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

显示需要指定备用路径,但我没有指定

https://img-blog.csdn.net/20180507083119396?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

到这里就是一个失败的安装;

https://img-blog.csdn.net/2018050708323889?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

三、解决方法

1.准备镜像文件

下载完整系统镜像文件到服务器,下载链接:WindowsServer2012R2镜像文件迅雷链接:ed2k://|file|cn_windows_server_2012_r2_vl_with_update_x64_dvd_4051059.iso|4683122688|BD0B95997679F83A4EE2D062865D8E64|/

下载的镜像文件里有sxs这个文件

https://img-blog.csdn.net/20180507090452635?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

单独复制sxs文件到服务器的C:/下

https://img-blog.csdn.net/20180507090716467?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

填写备用源路径为C:/sxs(根据自己实际路径填写

https://img-blog.csdn.net/20180507083539377?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

3.从指定备用源路径进行安装

https://img-blog.csdn.net/20180507090648263?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0YxMjEzOF8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

其实回想一下,备用源路径只要能指向到正确的安装盘下的sxs文件即可,之前下载的安装简包可能不是对应Windows servers 2012R2版本里切取出来的,所以使用本文方法的同学一定要注意选取对应版本的简包(我用的简包链接在文中),然后指定备用源路径即可。

赞(0) 打赏
未经允许不得转载:琼杰笔记 » Windows server安装.NET Framework报错找不到源文件问题解决办法
分享到: 更多 (0)

评论 1

评论前必须登录!

 

  1. #1

    不错

    haah4周前 (07-16)

分享交流,合作共赢!

联系我们加入QQ群

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏