Resolve record: Win10 cannot install vs2017,visual Studio Installer download progress is always 0

Source: Internet
Author: User
Tags stack trace visual studio installer

Problem Description: Win10 Unable to install vs2017,visual Studio Installer download Progress is always 0, after clicking the Cancel button, there is no response, Visual Studio installer also close not off;

Specific questions see Bo Q: https://q.cnblogs.com/q/106027/Microsoft question: https://social.msdn.microsoft.com/Forums/zh-CN/baafa177-158d-4130 -bc64-330b7b32a14c/win10-vs2017visual-studio-installer0?forum=vstudiozhchs

By querying C:\Users\admin\AppData\Local\Temp the next log (Dd_bootstrapper_ begins):

VisualStudio bootstrapper:2018/5/6 10:05:07:beginning File download. File = Https://aka.ms/vs/15/release/installer.
VisualStudio BOOTSTRAPPER:2018/5/6 10:05:07:download Requested:https://aka.ms/vs/15/release/installer
VisualStudio bootstrapper:2018/5/6 10:05:07:attempting Download ' Https://aka.ms/vs/15/release/installer ' using Engine ' WebClient '
VisualStudio BOOTSTRAPPER:2018/5/6 10:05:07:webclient Error ' connectfailure '-proxy setting ' Default '-' https://aka.ms /vs/15/release/installer '.
VisualStudio BOOTSTRAPPER:2018/5/6 10:05:07:webclient Error ' connectfailure '-proxy setting ' Defaultcredentialsornoautoproxy '-' https://aka.ms/vs/15/release/installer '.
VisualStudio BOOTSTRAPPER:2018/5/6 10:05:07:webclient Error ' connectfailure '-proxy setting ' networkcredentials '-' htt Ps://aka.ms/vs/15/release/installer '.
VisualStudio BOOTSTRAPPER:2018/5/6 10:05:07:webclient Error ' connectfailure '-proxy setting ' DirectAccess '-' https://a Ka.ms/vs/15/release/installer '.
VisualStudio Bootstrapper:2018/5/6 10:05:07:webclient failed in ' Https://aka.ms/vs/15/release/installer ' with ' The underlying connection is closed: Unable to connect to the remote server. '-' https://aka.ms/vs/15/release/installer '.
VisualStudio BOOTSTRAPPER:2018/5/6 10:05:07:download failed using WebClient engine. System.Net.WebException: The underlying connection has been closed: unable to connect to the remote server. ---> System.Net.Sockets.SocketException: Unable to load or initialize the requested service provider.
in System.net.sockets.socket..ctor (addressfamily addressfamily, SocketType sockettype, ProtocolType ProtocolType)
In System.Net.ServicePoint.GetConnection (Pooledstream Pooledstream, Object owner, Boolean async, ipaddress& address , socket& Abortsocket, socket& AbortSocket6)
In System.Net.PooledStream.Activate (Object owningobject, Boolean async, generalasyncdelegate AsyncCallback)
In System.Net.Connection.CompleteStartConnection (Boolean async, HttpWebRequest HttpWebRequest)
---the end of the inner exception stack trace---
In System.Net.HttpWebRequest.GetResponse ()
In Microsoft.VisualStudio.Setup.Download.WebClientEngine.GetWebResponse (Uri Uri, Downloadcontext Downloadcontext, downloadsummary& downloadsummary)
In Microsoft.VisualStudio.Setup.Download.WebClientEngine.DownloadCore (Uri Uri, stream stream, Progressupdatecallback Progress, CancellationToken CancellationToken, Downloadcontext downloadcontext)
In Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.DownloadWithBitRate (Uri Uri, Stream OutputStream, Progressupdatecallback Progress, CancellationToken CancellationToken, Downloadcontext downloadcontext)
In Microsoft.VisualStudio.Setup.Download.DownloadEngineBase.Download (Uri Uri, Stream OutputStream, Progressupdatecallback Progress, CancellationToken CancellationToken, Downloadcontext downloadcontext)
In 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 milliseconds before retrying download.
VisualStudio bootstrapper:2018/5/6 10:05:12:attempting Download ' Https://aka.ms/vs/15/release/installer ' using Engine ' Bits '
VisualStudio BOOTSTRAPPER:2018/5/6 10:07:12:skipped BITS Download Engine: Retrieves the CLSID in the COM class factory as {4991d34b-80a1-4291-83b The component of 6-3328366b9097} failed because of the following error: 80080005 the server failed to run (Exception from 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): Retrieves the CLSID in the COM class factory as {4991d34b-80a1-4291-83b6-3328366b9097} Component failed because of the following error: 80080005 the server failed to run (Exception from hresult:0x80080005 (Co_e_server_exec_failure)).
in Microsoft.visualstudio.setup.download.bits.bitsengine.<>c.<.ctor>b__3_0 ()
In System.lazy ' 1.CreateValue ()
In System.lazy ' 1.LazyInitValue ()

See the log, the original thought is my computer can not access the Https://aka.ms/vs/15/release/installer, but the actual manual download, is able to download the normal and fast, so to eliminate the network problems, in this thank Dudu positive reply, It's not a network problem, but at least it shows concern about it.

Since it is not a network problem, it must be the computer environment is a problem, from the installation log (red marked part), should be download failed using Bits engine, and the failure may be related to some COM services, according to this idea, the following steps to successfully solve the problem.

Step One: Check if the BITS service and dependent services are turned on normally, and set to auto and enable if not turned on (I do have some services that are not turned on)

Remote Procedure Call (RPC)

COM + Event System

System Event Notification Services

Background Intelligent Transfer Service-----"This is bits.

Network Connections

The second step: if all of the above services still do not solve the problem, you need to check if there is a missing component, if any, need to fix, as follows: (my component is not missing)

windows+x, open the command prompt (administrator) and execute the following command:

Dism/online/cleanup-image/scanhealth
Dism/online/cleanup-image/restorehealth
Sfc/scannow

Step three: If there is a problem after performing the second step check and fixing the related components, you need to check the socket component and perform the following command to reset it if necessary (my need to reset)

  • Type "netsh winsock reset", and then press "Enter".
  • Type "netsh int ip reset", and then press "Enter".
  • Type "Ipconfig/release", and then press "Enter".
  • Type "Ipconfig/renew", and then press "Enter".
  • Type "Ipconfig/flushdns", and then press "Enter".

After the completion of the above three steps, restart the computer, so far, my problem has been successfully solved. The way is more than the problem, we have more brains and more analysis of any problems will not be stumped.

The reason to share this resolution is because VS2017 is the first condition for everyone to learn about. NET Core, and installing VS2017 on Win 10 is also very common, and it's likely that anyone will come across a problem like me and share it.

Resolve record: Win10 cannot install vs2017,visual Studio Installer download progress is always 0

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.