无法在 Visual Studio 2017 中进行身份验证

Mic*_*ris 2 visual-studio visual-studio-2017

我的 Visual Studio 2017 试用期已过,无法登录解锁程序。身份验证每次都失败,并出现错误:

An error has occurred and we can no longer retrieve information for your account. 
Please reenter your credentials.
Run Code Online (Sandbox Code Playgroud)

我检查了 的日志servicehub,他们都说(为了可读性添加了换行符):

Error : 
  Error starting hub controller: 
    System.InvalidOperationException:
      Controller terminated before accepting connections.
        Exit code: -1073741502.
Run Code Online (Sandbox Code Playgroud)

或者

Error : 
  Exception retrying connect to json rpc: 
    System.InvalidOperationException: 
      Controller terminated before accepting connections.
        Exit code: -1073741502.
Run Code Online (Sandbox Code Playgroud)

我尝试以管理员身份运行该程序,删除会话令牌,使用不同的 Microsoft 帐户,甚至使用不同的 PC。不同的 PC 问题让我觉得我的网络可能有问题,但我不确定那可能是什么。

小智 6

我不知道你是否在你的机器上使用 nodejs,但我知道并且 nodejs 配置完全是潜在的问题。我添加了一个“NODE_OPTIONS”环境变量,无论出于何种原因,它显然对 Visual Studio 和其他软件造成了严重破坏。

见这篇文章:https : //developercommunity.visualstudio.com/content/problem/287499/systeminvalidoperationexception-controller-termina.html

  • 伟大的!感谢分享。通过环境变量为nodejs配置了额外的内存,但apparantley VS不喜欢这样 (2认同)