Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bh 444 posts 1544 karma points
    Aug 22, 2024 @ 13:51
    bh
    0

    v14.2 ApiError Method Not Allowed

    I get the error notification "ApiError Method Not Allowed" anytime I try to save anything in Umbraco. I was getting this error previously and fixed it by updating my http > https URL rewrite. But, that isn't working now.

    I tried removing my http > https rewrite rule altogether...I still get the error.

    There's nothing in the logs. Nothing in event viewer on my server. I've checked IIS and I'm not blocking any verbs.

    It works fine locally, but fails on my server. I'm running probably 80 other Umbraco (< v14.0) sites on that server.

  • Ole Andreas Myhre Olsen 15 posts 85 karma points
    Aug 28, 2024 @ 13:05
    Ole Andreas Myhre Olsen
    0

    I got this error after deploying a site and running uSync. I have not found any way to fix this 🤷‍♂️

  • bh 444 posts 1544 karma points
    Aug 28, 2024 @ 13:23
    bh
    0

    @OleAndreasMyhreOlsen I have uSync on mine too. Interesting. Taking a shot here @KevinJump you have any insight on what might be causing this result?

  • bh 444 posts 1544 karma points
    Aug 28, 2024 @ 20:24
    bh
    0

    @OleAndreasMyhreOlsen I just spun up a minimal v14.2 site without uSync and this error still exists. It's an Umbraco issue, not a uSync issue.

  • Ole Andreas Myhre Olsen 15 posts 85 karma points
    Aug 29, 2024 @ 06:52
    Ole Andreas Myhre Olsen
    0

    Thanks for testing without uSync.

    I wonder why uSync manages to create document types and content while I cannot do it as administrator?

  • Sebastian Müller 3 posts 75 karma points
    Aug 30, 2024 @ 06:39
    Sebastian Müller
    2

    Hi everyone,

    I ran into the same problem and was able to fix it by disabling the WebDAV module for this specific web app.

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

    Maybe this fix will work for you as well. :)

  • Ole Andreas Myhre Olsen 15 posts 85 karma points
    Sep 02, 2024 @ 07:30
    Ole Andreas Myhre Olsen
    0

    Thx!

    I wasn't aware that I had one 🙈

    But this can be marked as solution 😃👏👏👏

  • Ole Andreas Myhre Olsen 15 posts 85 karma points
    Aug 30, 2024 @ 07:19
    Ole Andreas Myhre Olsen
    0

    What version are you refering to, Sebastian? Looks like web.config


    I managed to reproduce the error on local machine by messing up the Id in appsettings.json

      "Umbraco": {
        "CMS": {
          "DeliveryApi": {
            "Enabled": true
          },
          "Global": {
            "UseHttps": true,
            "Id": "",
            "SanitizeTinyMce": true
            }
          },
        }
      }
    }
    
  • Ole Andreas Myhre Olsen 15 posts 85 karma points
    Aug 30, 2024 @ 08:01
    Ole Andreas Myhre Olsen
    0

    Nope, that was not it!

  • Sebastian Müller 3 posts 75 karma points
    Aug 30, 2024 @ 07:30
    Sebastian Müller
    0

    It's the web.config file that IIS automatically generates when creating a web application. It is located in the web root directory.

  • Ole Andreas Myhre Olsen 15 posts 85 karma points
    Aug 30, 2024 @ 12:27
    Ole Andreas Myhre Olsen
    0

    I cleaned the db and deployed again, and that worked for about 2 minutes. Then the error came back.

    I'm deploying to a loadbalanced environment, does that have anything to do with it?

  • bh 444 posts 1544 karma points
    Aug 30, 2024 @ 14:12
    bh
    0

    @OleAndreasMyhreOlsen you would need to make sure that the web.config on all servers have the new web.config change proposed by @SebastianMüller

    I'd love to test this as it looks like a simple fix, but just yesterday after messing with this for 2 weeks I bailed on v14 and spun this site up as v13.

    @SebastianMüller what does that webdav config do in the context of Umbraco, do you know? Is it needed or does turning it off create a security vulnerability?

  • Paul White 1 post 71 karma points notactivated
    Nov 16, 2024 @ 19:00
    Paul White
    0

    I have just run into this issue on a V14 website deployed on IIS. The web.config change immediately fixed the issue. Thanks Folks

  • Michael Nielsen 155 posts 812 karma points
    25 days ago
    Michael Nielsen
    0

    I've run into this issue also in v14.3.1 hosted on IIS.

    Disabling WebDAVModule fixed it 👍

    Is this an Umbraco bug, or something with IIS?

Please Sign in or register to post replies

Write your reply to:

Draft