2016-03-21 3 views
0

Я пытаюсь установить postharp express 4.1, но установка завершилась с ошибкой «Требуется прокси-аутентификация».Ошибка установки Postsharp

У меня есть и Visual Studio 2012 и 2015, установленные на моей машине. Ниже приводится трассировка в файле журнала postsharp. Любые предложения помогут.

PostSharp.HQ.v3.0.exe Information: 0 : Registry key HKCU\Software\Microsoft\VisualStudio\14.0\ExtensionManager\EnabledExtensions does not exist. 
Leaving: VsxUtilities.MustInstallVsx(this = {PostSharp.HQ.Vsx.VsxUtilities}, {PostSharp.HQ.Vsx.VsxPackage}, {4.2.22}) : True 
PostSharp.HQ.v3.0.exe Information: 0 : detectedVsUpdateVersion (14.0.23107) is unknown or sufficient - package PostSharp Tools for Visual Studio 2015 can be installed. 
PostSharp.HQ.v3.0.exe Warning: 0 : System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. 
    at System.Net.HttpWebRequest.GetResponse() 
    at PostSharp.HQ.Vsx.VsxProcess.InstallVsxTask.GetDownloadUrl(String searchString, String vsixId, Version requiredVsVersion) in c:\src\PostSharp-4.1\UserInterface\PostSharp.HQ\Vsx\VsxProcess.cs:line 482 
    at PostSharp.HQ.Vsx.VsxProcess.InstallVsxTask.<Execute>d__13.MoveNext() in c:\src\PostSharp-4.1\UserInterface\PostSharp.HQ\Vsx\VsxProcess.cs:line 385 
    --- End of inner exception stack trace --- 
---> (Inner Exception #0) System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. 
    at System.Net.HttpWebRequest.GetResponse() 
    at PostSharp.HQ.Vsx.VsxProcess.InstallVsxTask.GetDownloadUrl(String searchString, String vsixId, Version requiredVsVersion) in c:\src\PostSharp-4.1\UserInterface\PostSharp.HQ\Vsx\VsxProcess.cs:line 482 
    at PostSharp.HQ.Vsx.VsxProcess.InstallVsxTask.<Execute>d__13.MoveNext() in c:\src\PostSharp-4.1\UserInterface\PostSharp.HQ\Vsx\VsxProcess.cs:line 385<--- 

ответ

1
расширение

NuGet Package Manager является важным компонентом для PostSharp инструменты для Visual Studio, так что установщик пытается загрузить расширение NuGet диспетчера пакетов из Visual Studio Gallery, если он не установлен или он не отвечает минимальным требованиям версии (NuGet 2.2 для VS2012 и VS2013 и NuGet 3.0 для VS2015).

В этом случае требуется аутентификация прокси, и PostSharp не обрабатывает этот случай.

В качестве обходного пути вы можете установить расширение NuGet Package Manager вручную. Установщик не должен пытаться получить доступ к галерее Visual Studio в этом случае, и WebException не следует бросать.