The remote server returned an error: (405) Method Not Allowed error
Published 07 August 2013
When deploying to a private NuGet feed, you may get the following error:
sqlCI error occurred: System.InvalidOperationException: Failed to process request. 'Method Not Allowed'. The remote server returned an error: (405) Method Not Allowed.. A detailed error report has been saved to: C:\Users\%USER%\AppData\Local\Temp\%Filename%.saencryptedreport If this is blocking you, then you can email that file to support@red-gate.com for us to investigate.
This is caused by WebDAV being enabled on the private NuGet feed. To resolve the error, you need to disable WebDAV:
- Go to IIS Manager.
- Right-click on the NuGet feed, click on Explore.
- Open the web.config file for editing.
Inside the module tag, add the following:
<remove name="WebDAVModule" />
You should now be able to publish to your private NuGet feed.