【发布时间】:2013-05-03 07:17:21
【问题描述】:
当我尝试推送时,我的 NuGet 服务器抛出 405 Not Allowed。至少,NuGet 控制台是这么说的:
Failed to process request. 'Method Not Allowed'.
The remote server returned an error: (405) Method Not Allowed..
但是当我用 Fiddler 查看实际的 HTTP 响应时,问题似乎完全不同:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code></code>
<message xml:lang="en-US">The URL representing the root of the service only supports GET requests.</message>
</error>
对可能发生的事情有什么想法吗?
谢谢!
【问题讨论】:
-
如果您来到这里并正在查看此问题,请确保您按照 OP 的操作并检查 HTTP 响应,并非所有 405 都相同,并且 NuGet 不会为您提供完整的详细信息。
标签: push nuget nuget-server