OWIN WebApi project on IIS 10 gives 404 on all operations

前端 未结 1 1614
春和景丽
春和景丽 2021-01-28 13:57

I have a OWIN WebAPI project which works in the OwinSelfHost, but always results in 404 when hosted on IIS 10, the only thing that works is the initial page public/index.html. I

相关标签:
1条回答
  • 2021-01-28 14:35

    You have to add OwinHttpHandler to your pipeline:

    <handlers>
           <add name="Owin" verb="*" path="*" type="Microsoft.Owin.Host.SystemWeb.OwinHttpHandler, Microsoft.Owin.Host.SystemWeb" />
     </handlers>
    
    0 讨论(0)
提交回复
热议问题