我們創建了一個本地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. )'.
當我把這個網址與瀏覽器我沒有得到任何錯誤。
此設置有什麼問題?