2016-12-15 99 views
0

當我運行一個命令行「的NuGet推」命令,上傳失敗,的NuGet,出現以下錯誤死亡:的NuGet推失敗,417(預期失敗)從遠程服務器

System.Net.Http.HttpRequestException: Response status code does not indicate success: 417 (Expectation Failed).

的NuGet的文件沒有給出任何跡象表明這可能意味着什麼。

這裏有什麼問題?

回答

0

This blog post表明這是中間代理服務器干擾nuget.exe正在嘗試的PUT請求的問題。

Http status 417 is caused when your proxy server does not support 100-continue. As a result, the client request does not get a response from the server indicating the client should POST data.

檢查您的系統代理設置和驗證,要麼正在使用的代理服務器支持100-繼續,或者說代理繞過的NuGet被連接到服務器。

可以使用代理設置來配置Nuget本身,以覆蓋系統設置。請參閱Nuget configuration documentation,特別是關於代理。