当我运行一个命令行“的NuGet推”命令,上传失败,的NuGet,出现以下错误死亡:的NuGet推失败,417(预期失败)从远程服务器
System.Net.Http.HttpRequestException: Response status code does not indicate success: 417 (Expectation Failed).
的NuGet的文件没有给出任何迹象表明这可能意味着什么。
这里有什么问题?
当我运行一个命令行“的NuGet推”命令,上传失败,的NuGet,出现以下错误死亡:的NuGet推失败,417(预期失败)从远程服务器
System.Net.Http.HttpRequestException: Response status code does not indicate success: 417 (Expectation Failed).
的NuGet的文件没有给出任何迹象表明这可能意味着什么。
这里有什么问题?
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,特别是关于代理。