项目场景:
.NET Core WebApi
问题描述:
用 ASP.NET WebApi 写REST 服务,试图发送 HttpDelete 请求, 但得到以下错误:
Asp.NET Web API - 405 - HTTP verb used to access this page is not allowed - how to set handler mappings
解决方案:
https://stackoverflow.com/questions/9854602/asp-net-web-api-405-http-verb-used-to-access-this-page-is-not-allowed-how
<system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
</handlers>
</system.webServer>
问题描述:
读取appsettings.json中文乱码问题
解决方案:
工具 =>自定义 => 命令 =>添加命令 =>文件 =>找到高级保存选项点击
打开appsettings.json,然后点高级保存选项,选择 utf-8 with sign保存。