Solution 1:

You have to include Microsoft.Owin.Host.HttpListener.dll in your project references.

You can add it through NuGet.

However, if the code executing:

WebApp.Start<SrvcHst> (...);

is contained within a class library, make sure that the executable consuming the library also includes the reference to Microsoft.Owin.Host.HttpListener.dll, or else it would not get deployed with your program, as there are no explicit references to it from the class library.

Have a look at your bin/Debug folder and make sure the DLL is there.

Solution 2:

Make sure you have install package Microsoft.Owin.Host.HttpListener

To install package, use this command line :

Install-Package Microsoft.Owin.Host.HttpListener

Solution 3:

Sometimes NuGet references are added in an incomplete state. If you have the packages installed, however references are not included, try reinstalling them via;

Update-Package -reinstall

in the package manager console.