I gave up what I was working with and moved on to the simplest of code:
class Program
{
static void Main(string[] args)
{
var nancyHost = new Nancy.Hosting.Self.NancyHost(new Uri("http://localhost:8080"));
nancyHost.Start();
Console.ReadLine();
nancyHost.Stop();
}
}
public class MainModule : Nancy.NancyModule
{
public MainModule()
{
Get["/"] = x =>
{
return "Hello world!";
};
}
}
When i browse
http:
I get:
Service is unavailable
HTTP Error 503. The service is not available.
I tried several solutions. Enabling Multiple Options: Nancy Remote Self-Service
Any ideas?
source
share