Private Nuget Server responds with (405) Method Not Allowed while pushing or deleting a package

So you’ve deployed your own private NuGet server to IIS but you get this annoying exception trying to push packages:

(405) Method Not Allowed

Well as stated in many web pages removing WebDAVModule does fix the issue, but be sure you add the configuration in the right section! (not in the elmah section) or the fix wont work!

2  <system.webServer>
3    <validation validateIntegratedModeConfiguration="false" />
4    <modules runAllManagedModulesForAllRequests="true">
5      <remove name="WebDAVModule" />
6    </modules>
7    ...

In-Person or online Networking?
Do IT Certifications help?
comments powered by Disqus