-1

I uploaded a blazor webapp on a host and I get this error while trying to modify or delete a product:

405 - HTTP verb used to access this page is not allowed.
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

It's something to do with the response headers, they don't allow the Put or Delete method.
On localhost when testing the webapp everything is fine. Is it the web host fault or the blazor app?

GSerg
  • 76,472
  • 17
  • 159
  • 346
A N
  • 1
  • 1

1 Answers1

0

This is an IIS error that is typically thrown if WebDav is enabled. This is not a necessary feature for WUG to run in IIS.

You can add these lines to the web.config

<system.webServer>
  <modules>
    <remove name="WebDAVModule" />
  </modules>
  <handlers>
    <remove name="WebDAV" />
  </handlers>
</system.webServer>