We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

401 error in put request [Answered]RSS

2 replies

Last post Apr 30, 2021 01:39 AM by samwu

  • 401 error in put request

    Apr 29, 2021 04:27 PM|smileaml|LINK

    I havea .net core web application hosted on win server 2012, in the put request I got a 401 error, but it work fine in get request. i had  installed the IIS CORS Module but no luck.

    Can someone help me?

  • Re: 401 error in put request

    Apr 29, 2021 05:29 PM|lextm|LINK

    smileaml

    in the put request I got a 401 error,

    Read IIS log files to see which sub status code you got, https://docs.microsoft.com/en-us/troubleshoot/iis/http-status-code#4xx---client-error as 401 is a very large family.

    Lex Li
    Want to have a chat on the issues you meet? Find me at https://booktime.xyz/p/lextm
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: 401 error in put request

    Apr 30, 2021 01:39 AM|samwu|LINK

    Hi Smileaml,

    smileaml

    I havea .net core web application hosted on win server 2012, in the put request I got a 401 error, but it work fine in get request. i had  installed the IIS CORS Module but no luck.

    You can try to diable anonymous and enable windows authentication iis for the site.

    Or

    You can also try to enable all verbs on the iis server -> .NET Authorization Rules.

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >