我们创建了一个本地NuGet源,其中包含Nuget.Server。它是一个简单的ASP.NET应用程序,托管在作为本地公司网络一部分的IIS Web服务器上。Visual Studio 2015/2017本地NuGet源HTTP 403
饲料的URL看起来是这样的:
https://abc.company.com/packages/nuget
为遵循国际空间站启用身份验证:
的.NET authrization看起来是这样的:
如果我用Postman或Fiddler调用上面提到的feed url,我会得到以下respo NSE:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<service xml:base="https://abc.company.com/packages/nuget/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
<workspace>
<atom:title>Default</atom:title>
<collection href="Packages">
<atom:title>Packages</atom:title>
</collection>
</workspace>
</service>
如果我现在在Visual Studio的NuGet包源添加的网址: ,然后选择出现以下屏幕,在这里我输入域凭据(域\用户)新创建的软件包源,但没有任何反应:
如前所述,当我访问该网站的任何浏览器(IE,Chrome浏览器,边缘),我没有进入我的凭据和菲德勒/邮差也确实不需要任何证书。
在VS PackageManager输出我收到以下错误信息:
[Local] The V2 feed at 'https://abc.company.com/packages/nuget/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='net462'&includePrerelease=true&$skip=0&$top=26' returned an unexpected status code '403 Forbidden (The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. )'.
当我把这个网址与浏览器我没有得到任何错误。
此设置有什么问题?