2016-03-21 55 views
0

我正在嘗試安裝postsharp express 4.1,但安裝失敗並顯示錯誤「Proxy Authentication Required」。Postposer安裝錯誤

我的機器上安裝了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包管理器擴展是PostSharp工具Visual Studio的重要組成部分,所以安裝程序會嘗試下載從Visual Studio庫一個NuGet包管理器擴展,如果未安裝或不符合最低版本要求(針對VS2012的NuGet 2.2和針對VS2015的VS2013和NuGet 3.0)。

在這種情況下需要代理身份驗證,並且PostSharp不能很好地處理這種情況。

作爲解決方法,您可以手動安裝NuGet程序包管理器擴展。在這種情況下,安裝程序不應嘗試訪問Visual Studio庫,並且不應引發WebException。