Question

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.

Was it helpful?

Solution

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top