I have created an ASP.NET Owin self hosted webapi application. Below is owin self host code snippet
using Microsoft.Owin.Hosting;
namespace OwinSelfHostSample
{
class Program
{
public static void Main(string[] args)
{
string localhost = "http://localhost:80";
// Start OWIN host
using (WebApp.Start<LocalStartup>(localhost))
{
Console.ReadLine();
}
}
}
}
I can run Owin exe and reach out to my service endpoints like http://localhost:80/keepalive etc
When I try to deploy this as a guest executable to a local service fabric cluster following instructions at here, publish happens successfully but i am not able to hit the endpoint. I always gets 503 service unavailable http response. No related errors in event viewer as well.
My guess would be that your endpoint is not properly configured in service fabric.