
问题表述:win10下能够安装VS2017,visual studio installer下载进度始终为0,点击更改图标后,也没有反应,visual studio installer也关闭不掉;
具体问题详见 博问: 微软问题:
通过查询C:\Users\admin\AppData\Local\Temp下日志(dd_bootstrapper_开头):
VisualStudio Bootstrapper:2018/5/6 10:05:07: Beginning file download. File =
VisualStudio Bootstrapper:2018/5/6 10:05:07: Download requested:
VisualStudio Bootstrapper:2018/5/6 10:05:07: Attempting download ‘‘ using engine ‘WebClient‘
VisualStudio Bootstrapper:2018/5/6 10:05:07: WebClient error ‘ConnectFailure‘ - proxy setting ‘Default‘ - ‘‘.
VisualStudio Bootstrapper:2018/5/6 10:05:07: WebClient error ‘ConnectFailure‘ - proxy setting ‘DefaultCredentialsOrNoAutoProxy‘ - ‘‘.
VisualStudio Bootstrapper:2018/5/6 10:05:07: WebClient error ‘ConnectFailure‘ - proxy setting ‘NetworkCredentials‘ - ‘‘.

VisualStudio Bootstrapper:2018/5/6 10:05:07: WebClient error ‘ConnectFailure‘ - proxy setting ‘DirectAccess‘ - ‘‘.
VisualStudio Bootstrapper:2018/5/6 10:05:07: WebClient failed in ‘‘ with ‘基础连接已经关闭: 无法连接到远程服务器。‘ - ‘‘.
VisualStudio Bootstrapper:2018/5/6 10:05:07: Download failed using WebClient engine. System.Net.WebException: 基础连接已经关闭: 无法连接到远程服务器。 ---> System.Net.Sockets.SocketException: 无法读取或初始化请求的服务提供程序。
在 System.Net.Sockets.Socket..ctor(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
在 System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6)
在 System.Net.PooledStream.Activate(Object owningObject, Boolean async, GeneralAsyncDelegate asyncCallback)
在 System.Net.Connection.CompleteStartConnection(Boolean async, HttpWebRequest httpWebRequest)
--- 内部异常堆栈跟踪的结尾 ---
在 System.Net.HttpWebRequest.GetResponse()

在 Microsoft.VisualStudio.Setup.Download.WebClientEngine.GetWebResponse(Uri uri, DownloadContext downloadContext, DownloadSummary& downloadSummary)
在 Microsoft.VisualStudio.Setup.Download.WebClientEngine.DownloadCore(Uri uri, Stream stream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext)
在 Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext)
在 Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download(Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext)
在 Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:2018/5/6 10:05:07: Sleeping 5000 milliseconds before retrying download.
VisualStudio Bootstrapper:2018/5/6 10:05:12: Attempting download ‘‘ using engine ‘Bits‘
VisualStudio Bootstrapper:2018/5/6 10:07:12: Skipped BITS download engine: 检索 COM 类工厂中 CLSID 为 {4991D34B-80A1-4291-83B6-3328366B9097} 的模块成功,原因是发生以上错误: 80080005 服务器运行失败 (异常来自 HRESULT:0x80080005 (CO_E_SERVER_EXEC_FAILURE))。
VisualStudio Bootstrapper:2018/5/6 10:07:12: Download failed using Bits engine. System.Runtime.InteropServices.COMException (0x80080005): 检索 COM 类工厂中 CLSID 为 {4991D34B-80A1-4291-83B6-3328366B9097} 的模块成功,原因是发生以上错误: 80080005 服务器运行失败 (异常来自 HRESULT:0x80080005 (CO_E_SERVER_EXEC_FAILURE))。

在 Microsoft.VisualStudio.Setup.Download.Bits.BitsEngine.<>c.<.ctor>b__3_0()
在 System.Lazy`1.CreateValue()
在 System.Lazy`1.LazyInitValue()
看到该日志,原以为是我的电脑能够正常访问,但实际经过自动下载,是可以正常迅速下载的,所以排除了网络问题,在此感谢DUDU的积极回复,虽不是网络问题,但起码表现出对该事情的关心。
既然不是网络问题win10上vs2017安装失败,那恐怕就是电脑环境有问题,从调试日志来看(红色标出的部分),应该是Download failed using Bits engine,而该失败也许与一些COM服务相关,按照这个模式,通过如下步骤就顺利解决了难题。
第一步:检查BITS服务及相关依赖服务能否正常启动,如果没进入则全部设为自动并推出(这里我确实有一些服务没有开启)
Remote Procedure Call (RPC)
COM+ Event System
System Event Notification Services

Background Intelligent Transfer Service-----》这个就是BITS服务
Network Connections
第二步:如果打开了上述所有的服务一直不能解决难题,则必须检测能否存在组件缺失,若存在则必须恢复,如下:(我的组件没有缺失)
Windows+x,打开“命令提示符(管理员),执行下面命令:
DISM/Online /Cleanup-image /Scanhealth
DISM/Online /Cleanup-image /Restorehealth
Sfc /scannow
第三步:如果执行了第二步检查并恢复了相关模块后也有弊端,则必须检测Socket组件,必要时执行如下命令进行重置(我的就应该重置)
执行完上述三步后win10上vs2017安装失败,重启电脑,至此,我的这个难题就顺利解决了。办法总比问题多,大家多动脑多探讨任何疑问都不会被难倒的。
之所以分享这个解决记录,是因为VS2017是你们学习.NET CORE的首要条件,而在WIN 10上安装VS2017也是很常见的,可能谁也会碰到我这么的困惑,有了分享,大家解决难题就快多了。
解决记录:win10 无法安装VS2017,visual studio installer下载进度始终为0
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-126287-1.html
加油小王子
最低应该鸣炮警告
怎么知道发布新闻的机构是真的质检总局