ASP.NET Core with IIS - HTTP Verb Not Allowed

前端 未结 7 836
[愿得一人]
[愿得一人] 2020-11-29 02:33

We have an ASP.NET Core 2.0 web site that also presents a couple of simple Web API methods for UI enhancement purposes.

The

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 03:14

    To prevent WebDav from getting enabled at all, remove or comment the following entry from the ApplicationHost.config:

    
    

    The entry is located in the modules section.

    Exact location of the config: C:\Windows\System32\inetsrv\config\applicationHost.config

    This worked well for me in .Net Core 2.2

提交回复
热议问题