Local nuget server: 405 Method not allowed

寵の児 提交于 2021-01-27 21:59:24

问题


I've configured a local nuget server as described here: http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds

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.

I've made sure that the App Pool account has Change privileges for the Packages folder.

My config:

<appSettings>
  <add key="requireApiKey" value="true" />
  <add key="apiKey" value="XXXXX" />
  <add key="packagesPath" value="c:\projects\nuget\Packages" />
</appSettings>

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.


回答1:


Removing webdav did work. I've just managed to remove it in the ELMAH folders and not in the root.

Correct config:

<configuration>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="WebDAVModule" />
    </modules>


来源:https://stackoverflow.com/questions/15250245/local-nuget-server-405-method-not-allowed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!