I have a Self Hosting webApi that I need to add functionality to serve static html files. So I followed this example, but installation of Microsoft.Owin.Static files makes the App Server unable to start
Could not load file or assembly 'Microsoft.Owin, Version=2.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.Owin.Hosting.Builder.AppBuilderFactory.Create()
at Microsoft.Owin.Hosting.Engine.HostingEngine.InitializeBuilder(StartContext context)
at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)
at Microsoft.Owin.Hosting.Starter.HostingStarter.Start(StartOptions options)
at WorkflowService.WorkflowService.OnStart(String[] args)
I found incompatibility where Microsoft.AspNetWebApi v5.2.7 nuget package only tolerates Microsoft.Owin v2.0.2 and I've tried downgrading, to 5.2.3 before achieving this error. I would appreciate any suggestions on hosting a html file(or app with js and css) on the same origin as the Owin hosted webApi.
User contributions licensed under CC BY-SA 3.0