gpt4 book ai didi

configuration - Vs2012 无法使用代理连接到 Nuget

转载 作者:行者123 更新时间:2023-12-04 04:59:33 27 4
gpt4 key购买 nike

我在 VM(Windows 7 64 位)中运行 Visual Studio 2012 并且无法访问 Nuget。我在 VM 上使用的用户名不是我用来通过代理进行身份验证的用户名,因此我的 devenv.exe.config 文件如下所示:

<system.net>
<defaultProxy useDefaultCredentials="false" enabled="true">
<proxy usesystemdefault="True"/>
</defaultProxy>
<settings>
<servicePointManager expect100Continue="false"/>
<ipv6 enabled="true"/>
</settings>
</system.net>

最初,当我打开扩展和更新时,我收到以下消息:

A connection to the server could not be established because the following error(s) occurred: There was no endpoint listening at http://visualstudiogallery.msdn.microsoft.com/Services/v2011/Extension.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. Unable to connect to the remote server A connection attemp dailed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 65.52.103.91:80



在阅读了几篇文章后,我转到工具 -> 选项 -> 环境 -> Web 浏览器,然后单击 Internet Explorer 选项...按钮。然后我去连接 -> 局域网设置,虽然我们使用了配置脚本,但我添加了一个代理服务器并点击确定。

现在在线扩展和更新时消息已更改:

A connection to the server could not be established because the following errors(s) occured: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The Authentication header recieved from the server was 'NTLM, Basic realm="Our Proxy Server". The remote server returned an error:(401) Unauthorised.



那么我如何让它让我使用正确的凭据来传递代理?

最佳答案

您是否尝试使用 Windows 凭据管理器?

您应该能够注册如下所示的 Windows 凭据:

Internet or Network Address : *.mycompany.com
User Name : Your User Name
Password : Your Password

您也可以将网络地址限制为仅代理服务器。

关于configuration - Vs2012 无法使用代理连接到 Nuget,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16311374/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com