Postsharp安装错误

时间:2016-03-21 15:46:32

标签: postsharp

我正在尝试安装postharp express 4.1,但安装失败,并显示“需要代理身份验证”错误。

我的计算机上安装了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 个答案:

答案 0 :(得分:1)

NuGet Package Manager扩展是Visual Studio的PostSharp工具的基本组件,因此安装程序会尝试从Visual Studio库下载NuGet Package Manager扩展(如果未安装或不符合最低版本要求)(NuGet 2.2 for VS2012和VS2013以及VS2015的NuGet 3.0。)

在这种情况下,需要代理身份验证,PostSharp不能很好地处理这种情况。

作为解决方法,您可以手动安装NuGet Package Manager扩展。在这种情况下,安装程序不应尝试访问Visual Studio库,并且不应抛出WebException。