2016-03-21 1 views
0

J'essaie d'installer postsharp express 4.1 mais l'installation échoue avec une erreur "Authentification proxy requise".Erreur d'installation Postsharp

J'ai installé Visual Studio 2012 et 2015 sur ma machine. Voici la trace dans le fichier journal postsharp. Toutes les suggestions aideront.

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<--- 

Répondre

1

NuGet Extension Package Manager est un composant essentiel pour les outils PostSharp pour Visual Studio, donc installateur essaie de télécharger une extension Package Manager NuGet de Visual Studio Gallery si elle est pas installé ou ne répond pas à une exigence de version minimale (NuGet 2.2 pour VS2012 et VS2013 et NuGet 3.0 pour VS2015).

Dans ce cas, une authentification proxy est requise et PostSharp ne gère pas bien ce cas. Pour contourner ce problème, vous pouvez installer l'extension NuGet Package Manager manuellement. Le programme d'installation ne doit pas essayer d'accéder à Visual Studio Gallery dans ce cas et WebException ne doit pas être lancé.