Minha licença para o VS Community 2015 foi obsoleta. Agora, qualquer tentativa de entrar ou atualizar minha licença leva a uma mensagem de erro "Exceção foi acionada pelo destino de uma chamada". Corri devenv /log
e rastreei o problema para uma exceção "Não foi possível carregar o arquivo ou a montagem 'System.Net.Http.Primitives, Version = 1.5.0.0 ...'" que é acionada quando o VS tenta autenticar ou algo assim.
Eu tentei reparar e reinstalar o VStudio, incluindo a ferramenta de desinstalação "scorch" no Github.
Eu tentei executar sfc /scannow
e não encontrei violações de integridade. Tudo o que eu acho on-line relacionado a esta exceção me diz como corrigi-lo para um projeto em execução no VS, mas não como consertá-lo quando o próprio VS lança-lo.
Eu tentei devenv /resetuserdata
e /ResetSettings
. Nada funcionou.
Sinto que preciso atualizar meu GAC manualmente de uma DLL confiável, mas, para minha vida, não consigo descobrir como fazer isso.
Este é o elemento de entrada de log XML completo em que o erro ocorre em devenv /log
:
<entry>
<record>368</record>
<time>2016/12/13 17:21:54.787</time>
<type>Error</type>
<source>UserConnection</source>
<description>User:IdeUser, Exception has been thrown by the target of an invocation.: TargetInvocationException [inner: Could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.] during ExplicitSignIn
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
 at System.Activator.CreateInstance(Type type, Object[] args)
 at Microsoft.VisualStudio.Services.Client.VssConnection.<GetClientInstanceAsync>d__15.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.VisualStudio.Services.Client.VssConnection.<GetClientServiceImplAsync>d__13.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.VisualStudio.Services.Client.VssConnection.<GetClientAsync>d__10'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.VisualStudio.Services.Client.VssServerDataProvider.<ConnectAsync>d__39.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.VisualStudio.Shell.Connected.ConnectedUser.IdeConnector.<ConnectAsync>d__2.MoveNext() (ActivityId: 00000000-0000-0000-0000-000000000000)</description>
Alguma idéia?
Tags visual-studio