Open Closed

405 Method not allowed #4820


User avatar
0
isteer created

Hello Team,

OUR ABP CONFIGURATION:

ABP Framework version: v7.0.0 UI type: MVC DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): Tiered MVC Exception message and stack trace

Issue: On production site we are getting 405 method not allowed for all update and delete functionality through out the website. But working fine on local and development server on IIS.

Just for example: After login with admin, if we goto Administration-->IdentityManagement-->Roles-->Update permissions for any role, we get this 405 method not allowed.

Attached screenshot of the error. And also checked cors policy which is also correct, following there ABP standards only.

CORS attachement: In appsettings.json have added all URLs in corsorigins:

"App": { "SelfUrl": "https://g2cauthserver.careermaps.co.uk", "CorsOrigins": "https://*.GTCManagement.com,http://localhost:4200,https://localhost:44314,https://localhost:44324,https://g2cauthserver.careermaps.co.uk,https://g2c.careermaps.co.uk,https://g2c.api.careermaps.co.uk", "RedirectAllowedUrls": "http://localhost:4200,https://localhost:44389,https://localhost:44314,https://localhost:44348,https://g2c.careermaps.co.uk", "DisablePII": "false" }

Please suggest what we can do, we have also added following code in web.config :

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

Thanks


14 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can try this: https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/health-diagnostic-performance/http-error-405-website#resolution-for-cause-3

  • User Avatar
    0
    isteer created

    Hello,

    Can not uncheck this WebDAV Publishing feature as using a windows server 2019 windows machine. This feature is disabled by default.

    Thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi, Is this working for you?

    Go to IIS Manager.

    • Click on your app.
    • Go to "Handler Mappings".
    • In the feature list, double click on "WebDAV".
    • Click on "Request Restrictions".
    • In the tab "Verbs" select "All verbs" .
    • Press OK.
  • User Avatar
    0
    isteer created

    Hi, Is this working for you?

    Go to IIS Manager.

    • Click on your app.
    • Go to "Handler Mappings".
    • In the feature list, double click on "WebDAV".
    • Click on "Request Restrictions".
    • In the tab "Verbs" select "All verbs" .
    • Press OK.

    After following these steps, site is not working at all.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can I check it remotely? shiwei.liang@volosoft.com

  • User Avatar
    0
    isteer created

    Hello,

    Going for lunch now, Let me message you post lunch and then you can check on zoom meeting.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    ok

  • User Avatar
    0
    isteer created

    Hello,

    Our users currently working on the production site. We won't be able to do any changes on the production server.

    I will sent an email or send a message here when we have the system for testing and redeployments.

    Thanks,

  • User Avatar
    0
    isteer created

    Hello @liangshiwei Can we connect now for testing it together on zoom call?

  • User Avatar
    0
    isteer created

    Hello @liangshiwei Zoom meeting ended? It is not fixed yet. What do we do next now?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    The meeting has expired, I can sure the problem is related to the g2c.api.careermaps.co.uk project

    But I didn't find it in the IIS, you can remove the WebDAV for it.

    You are using a separation architecture, and the problem occurs when the client proxy request to API(g2c.api.careermaps.co.uk).

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    It’s working now, right?

  • User Avatar
    0
    isteer created

    Hello Yes, It is working now, have removed WebDAV module from API and web both and now it is working.

  • User Avatar
    0
    isteer created

    Thanks for the help, Really Appreciate it.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09