I'm trying to get ASP.NET Web API self host running. I keep getting this error.
How do I resolve this?
Assuming assembly reference Microsoft.Owin, Version=2.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' matches assembly
Microsoft.Owin, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. You may need to supply runtime policy (CS1701)
Here is my simple start up script.
static void Main(string[] args)
{
using (WebApp.Start<TestApi> ("http://*:9090/"))
{
Console.WriteLine ("server started");
}
}
The two assemblies differ in release and/or version number. For unification to occur, you must specify directives in the application's .config file, and you must provide the correct strong name of an assembly, as demonstrated in the following example code:
OR:
Perhaps you need a binding redirect in your .config