Deployment Manager 2

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

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:

  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:

    <remove name="WebDAVModule" />
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
                <remove name="WebDAVModule" />
          <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
          <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
          <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
        </modules>
        <staticContent>
    
    

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


Didn't find what you were looking for?