cant start nancy self host without admin rights-open source projects NancyFx/Nancy
My app uses Nancy Selfhosting. When I launch it without admin rights I get a System.Net.HttpListenerException “Access Denied”.
Here is the code:
static void Main(string[] args)
{
var nancyHost = new Nancy.Hosting.Self.NancyHost(new Uri("http://localhost:80/"));
nancyHost.Start();
Application.Run();
}
I have also tried different ports without success. Strangely, I dont get any Exceptions when launching a HttpListener that listens to the same Url. What could be causing this exception?