I want to host my WebApi project in IIS and Self-Host context. In my researches, For IIS hosting, I found these two packages:
1- Microsoft.AspNet.WebApi.WebHost (src)
This package contains everything you need to host ASP.NET Web API on IIS
2- Microsoft.Owin.Host.SystemWeb (src)
OWIN server that enables OWIN-based applications to run on IIS using the ASP.NET request pipeline.
My WebApi app can be loaded in IIS with both of them. So the question is what is the difference between these two packages and in which condition I should use them.
P.S. I get some error when hosting with second package in some scenarios.