无法激活Visual Studio 2017社区 [英] Can't activate Visual Studio 2017 Community

查看:112
本文介绍了无法激活Visual Studio 2017社区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我使用Visual Studio 2017社区来学习SharePoint 2016中的编程。

我有一个问题需要激活我的Visual Studio 2017社区。

当我登录我的帐户时,会收到一条消息:在线服务未运行。

我支持代理。我已使用以下选项配置文件devenv.exe.config:

< system.net> 
< settings>
< ipv6 enabled =" true" />
< / settings>
< defaultProxy enabled =" true" useDefaultCredentials = QUOT;真">
< proxy bypassonlocal =" True" usesystemdefault = QUOT;真" />
< / defaultProxy>
< /system.net>

我测试了它,问题没有解决。在此之后,我将devenv.exe.config更改为以下内容:

< defaultProxy enabled =" true" useDefaultCredentials = QUOT;真"> 
< proxy bypassonlocal =" True" usesystemdefault = QUOT;真" proxyaddress = QUOT; HTTP://访问代理服务器:端口" />

问题也没有解决。 


我分析日志文件。问题是Visual Studio 2017返回407:需要代理身份验证 - > 安全包中没有可用的凭据。


以下是日志:

 07/13/2017 08:33:47:错误:使用带有UI流的提示获取访问令牌时出现问题。错误:'System.Net.Http.HttpRequestException:发送请求时发生错误。 ---> System.Net.WebException:远程服务器返回错误:(407)需要代理身份验证。 ---> System.ComponentModel.Win32Exception:System.Net.SSPIWrapper.AcquireDefaultCredential(SSPIInterface SecModule,String package,CredentialUse intent)中的安全包
中没有凭据可用
at System.Net.NTAuthentication.Initialize(Boolean isServer,String package,NetworkCredential credential,String spn,ContextFlags requestedContextFlags,ChannelBinding channelBinding)
at System.Net.NTAuthentication.InitializeCallback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback) callback,Object state,Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback)回调,对象状态)
at System.Net.NTAuthentication..ctor(Boolean isServer,String package,NetworkCreden tial credential,String spn,ContextFlags requestedContextFlags,ContextAwareResult context,ChannelBinding channelBinding)
at System.Net.NTAuthentication..ctor(String package,NetworkCredential networkCredential,spnToken spnToken,WebRequest request,ChannelBinding channelBinding)
at System .Net.DigestClient.XPDoAuthenticate(String challenge,HttpWebRequest httpWebRequest,ICredentials credentials,Boolean preAuthenticate)
at System.Net.DigestClient.DoAuthenticate(String challenge,WebRequest webRequest,ICredentials credentials,Boolean preAuthenticate)
at System .Net.DigestClient.Authenticate(字符串质询,WebRequest webRequest,ICredentials凭证)
在System.Net.AuthenticationManagerDefault.Authenticate(字符串质询,WebRequest请求,ICredentials凭证)
在System.Net.AuthenticationState.AttemptAuthenticate (HttpWebRequest httpWebRequest,ICredentials authInfo)
at System.Net.HttpWebRequest.CheckResubmitForAu System.Net.HttpWebRequest.CheckResubmit上的th()
(异常& e,布尔& disableUpload)
---内部异常堆栈跟踪结束---
在System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult,TransportContext& context)
at System.Net.Http.HttpClientHandler .GetRequestStreamCallback(IAsyncResult ar)
---内部异常堆栈跟踪结束---
在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices .TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(任务任务)
at Microsoft.IdentityService.Clients.ActiveDirectory.HttpClientWrapper。< GetResponseAsync> d__29.MoveNext()
---抛出异常的前一个位置的堆栈跟踪结束--- System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices上的
。 SystemAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
在System.Ru ntime.CompilerServices.TaskAwaiter.ValidateEnd(任务任务)
at Microsoft.IdentityService.Clients.ActiveDirectory.AdalHttpClient。< GetResponseAsync> d__21`1.MoveNext()
---来自之前的堆栈跟踪结束抛出异常的位置---
在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
在Microsoft .IdentityService.Clients.ActiveDirectory.AdalHttpClient。< GetResponseAsync> d__20`1.MoveNext()
---从抛出异常的上一个位置开始的堆栈跟踪结束--- System.Runtime的
。 CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase。< SendHttpMessageAsync> d__68.MoveNext( )
---堆栈跟踪结束从抛出异常的先前位置---
在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
在Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase。< SendTokenRequestAsync> d__65.MoveNext()
---从抛出异常的前一个位置开始的堆栈跟踪结束--- System.Runtime的
。 CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase。< RunAsync> d__55.MoveNext()
---从抛出异常的上一个位置开始的堆栈跟踪结束--- System.Runtime.CompilerServices上的
.TaskAwaiter.ThrowForNonSuccess (任务任务)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext。< AcquireTokenCommonAsync> d__56.MoveNext()
---抛出异常的前一个位置的堆栈跟踪结束--- System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification上的
(任务任务)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext。< AcquireTokenAsync> d__49.MoveNext()
---从抛出异常的上一个位置开始的堆栈跟踪结束---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task任务)
at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl。< AcquireTokenWithPromptAsync> d__9.MoveNext()'

这真奇怪,因为当我点击登录时,在右上角,有一个代理窗口。我通过身份验证,并且有一些实习生浏览器,我可以使用我的骄傲登录Microsoft页面。在此之后,有错误:




此错误后,我运行TCPdump,结果是,Visual Studio不发送任何凭据。


我使用了两种类型的代理。一个diggest和一个基本的代理。但没有。

使用"添加帐户"无效在"文件 - >下帐户设置",因为也有错误。我无法直接激活此许可证,因为虚拟机处于一个没有直接上网的封闭网络中。


我希望有人可以帮助我激活Visual Studio 2017社区,因为我需要这个。


最好的考虑,

Robert

解决方案

嗨罗伯特,


感谢您在MSDN论坛上发帖。


这个的根本原因是两种类型  ;代理设置,代理服务器无法验证证书,它会阻止某些VS安装程序资源下载。


请参考  到
创建一个包含完整资源的脱机安装程序,将文件复制到您的计算机并执行然后安装VS 2017。


最好的问候,


Hello,

I use Visual Studio 2017 Community to learning programming in SharePoint 2016.
I have a problem to activate my Visual Studio 2017 Community.

When I will sign in to my account, there comes a message: The online service is not running.
I am behind a proxy. I have configure the file devenv.exe.config with the following options:

<system.net>
  <settings>
    <ipv6 enabled="true"/>
  </settings>
  <defaultProxy enabled="true" useDefaultCredentials="true">
    <proxy bypassonlocal="True" usesystemdefault="True" />
  </defaultProxy>
</system.net>

I tested it, and the problem is not resolved. After this I changes the devenv.exe.config to the following:

<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy bypassonlocal="True" usesystemdefault="True" proxyaddress="http://proxyserver:port" />

The problem is not resolved, too. 

I analyze the logfile. The problem is Visual Studio 2017 return 407: Proxy Authentication Required --> No credentials are available in the security package.

Here is the log:

07/13/2017 08:33:47 : Error : There was a problem getting the access token using the prompt with UI flow. Error: 'System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. ---> System.ComponentModel.Win32Exception: No credentials are available in the security package
   at System.Net.SSPIWrapper.AcquireDefaultCredential(SSPIInterface SecModule, String package, CredentialUse intent)
   at System.Net.NTAuthentication.Initialize(Boolean isServer, String package, NetworkCredential credential, String spn, ContextFlags requestedContextFlags, ChannelBinding channelBinding)
   at System.Net.NTAuthentication.InitializeCallback(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.NTAuthentication..ctor(Boolean isServer, String package, NetworkCredential credential, String spn, ContextFlags requestedContextFlags, ContextAwareResult context, ChannelBinding channelBinding)
   at System.Net.NTAuthentication..ctor(String package, NetworkCredential networkCredential, SpnToken spnToken, WebRequest request, ChannelBinding channelBinding)
   at System.Net.DigestClient.XPDoAuthenticate(String challenge, HttpWebRequest httpWebRequest, ICredentials credentials, Boolean preAuthenticate)
   at System.Net.DigestClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate)
   at System.Net.DigestClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials)
   at System.Net.AuthenticationManagerDefault.Authenticate(String challenge, WebRequest request, ICredentials credentials)
   at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)
   at System.Net.HttpWebRequest.CheckResubmitForAuth()
   at System.Net.HttpWebRequest.CheckResubmit(Exception& e, Boolean& disableUpload)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.IdentityService.Clients.ActiveDirectory.HttpClientWrapper.<GetResponseAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.IdentityService.Clients.ActiveDirectory.AdalHttpClient.<GetResponseAsync>d__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.IdentityService.Clients.ActiveDirectory.AdalHttpClient.<GetResponseAsync>d__20`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<SendHttpMessageAsync>d__68.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<SendTokenRequestAsync>d__65.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<RunAsync>d__55.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenCommonAsync>d__56.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenAsync>d__49.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl.<AcquireTokenWithPromptAsync>d__9.MoveNext()'

That really strange, because when I click on sign in, in the upper right corner, there comes a proxy-windows. I authenticated and there is an little intern browers, where I can login in the Microsoft Page with my crendtials. After this, there are the errors:

After this errors, I run a TCPdump and the result is, that Visual Studio not sends any credentials.

I have used two types of the proxy. A diggest and a basic proxy. But nothing.
It won't help to used "Add an Account" under "File --> Account Settings", because there are the errors, too. I can't activate this license directly, because the virtual machine is in a closed network with no directly internet.

I hope anyone can help me to activate Visual Studio 2017 Community, because I need this.

Best regard,
Robert

解决方案

Hi Robert,

Thank you for posting in MSDN forum.

The root cause of this is behind two types proxy setting, the proxy server couldn't verify certificate, it prevents some VS installer resource downloading.

Please refer to Proxy Authorization Required,  have a try to whitelist the following list to unblock all sign-in scenarios in Visual Studio:

◦*.windows.net

◦*.microsoftonline.com

◦*.visualstudio.com

◦*.microsoft.com

◦*.live.com

Then try the following Ping, to check if you could connect to the download server:

The above shows that the network is well-connected, or if it shows any time out error message, it means that the your network can't connect to the resource server, in this situation, how about finding another machine without any proxy setting, refer to Create an offline installer for Visual Studio 2017 to make an offline installer with full resource, copy the files to your computer and perform a VS 2017 installation then.

Best Regards,


这篇关于无法激活Visual Studio 2017社区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆