更新时间:2023-02-15 23:03:23
In order to understand theory - take a look at this question. If you want your OWIN self-hosted WEB API application to be running on IIS, you need to use Owin.Host.SystemWeb package. You should:
P.S.您总是可以在Visual Studio中查看标准的脚手架空Web API项目.它包括现成的IIS Web主机
P.S. You can always take a look at a standard scaffolded empty Web API project in Visual Studio. It includes IIS web host out-of-the-box