Deployment Manager 2

Help for older versions available.

The remote server returned an error: (405) Method Not Allowed error

When deploying to a private NuGet feed, you may get the following error:

  1. sqlCI error occurred: System.InvalidOperationException: Failed to process request. 'Method Not Allowed'.
  2. The remote server returned an error: (405) Method Not Allowed..
  3. A detailed error report has been saved to: C:\Users\%USER%\AppData\Local\Temp\%Filename%.saencryptedreport
  4. 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:

  1. Go to IIS Manager.
  2. Right-click on the NuGet feed, click on Explore.
  3. Open the web.config file for editing.
  4. Inside the module tag, add the following:

    1. <remove name="WebDAVModule" />
    1. <system.webServer>
    2. <validation validateIntegratedModeConfiguration="false" />
    3. <modules runAllManagedModulesForAllRequests="true">
    4. <remove name="WebDAVModule" />
    5. <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
    6. <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
    7. <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
    8. </modules>
    9. <staticContent>
    10.  

You should now be able to publish to your private NuGet feed.


Didn't find what you were looking for?