缺省iis 不支持除get和post外的方法,你百度下打開支持就行
按這個配置 https://blog.csdn.net/lynehylo/article/details/80623190
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
<remove name="WebDAV" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\reportWeb.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
<modules runAllManagedModulesForAllRequests="true" runManagedModulesForWebDavRequests="true">
<remove name="WebDAVModule"/>
</modules>
</system.webServer>
</location>
</configuration>