本地nuget服务器:405不允许使用方法 [英] Local nuget server: 405 Method not allowed
问题描述
I've configured a local nuget server as described here: http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds
我可以浏览到它并查看提要.但是我不能向它发布软件包.我一直都出现错误405.
I can browse to it and look at the feed. But I can not publish packages to it. I just get error 405 all the time.
我已经确保应用程序池帐户对Packages文件夹具有更改"特权.
I've made sure that the App Pool account has Change privileges for the Packages folder.
我的配置:
<appSettings>
<add key="requireApiKey" value="true" />
<add key="apiKey" value="XXXXX" />
<add key="packagesPath" value="c:\projects\nuget\Packages" />
</appSettings>
我还发现了此问题: http://nuget.codeplex.com/workitem/1789 .我已经删除了WebDav模块/处理程序,但仍然会收到错误消息.
I've also found this issue: http://nuget.codeplex.com/workitem/1789. I've removed the WebDav module/handler but do still get the error.
推荐答案
删除webdav确实可行.我只是设法在ELMAH文件夹中而不是在根目录中将其删除.
Removing webdav did work. I've just managed to remove it in the ELMAH folders and not in the root.
正确的配置:
<configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule" />
</modules>
这篇关于本地nuget服务器:405不允许使用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!