{"id":7892,"date":"2015-11-06T16:35:12","date_gmt":"2015-11-06T16:35:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/06\/cant-start-nancy-self-host-without-admin-rights-open-source-projects-nancyfx-nancy\/"},"modified":"2015-11-06T16:35:12","modified_gmt":"2015-11-06T16:35:12","slug":"cant-start-nancy-self-host-without-admin-rights-open-source-projects-nancyfx-nancy","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/06\/cant-start-nancy-self-host-without-admin-rights-open-source-projects-nancyfx-nancy\/","title":{"rendered":"cant start nancy self host without admin rights-open source projects NancyFx\/Nancy"},"content":{"rendered":"<p>My app uses Nancy Selfhosting. When I launch it without admin rights I get a System.Net.HttpListenerException &#8220;Access Denied&#8221;.<\/p>\n<p>Here is the code:<\/p>\n<pre><code>static void Main(string[] args)\n    {   \n        var nancyHost = new Nancy.Hosting.Self.NancyHost(new Uri(\"http:\/\/localhost:80\/\"));\n        nancyHost.Start();\n        Application.Run();\n    }\n<\/code><\/pre>\n<p>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?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My app uses Nancy Selfhosting. When I launch it without admin rights I get a System.Net.HttpListenerException &#8220;Access Denied&#8221;. Here is the code: static void Main(string[] args) { var nancyHost = new Nancy.Hosting.Self.NancyHost(new Uri(&#8220;http:\/\/localhost:80\/&#8221;)); nancyHost.Start(); Application.Run(); } I have also tried different ports without success. Strangely, I dont get any Exceptions when launching a HttpListener that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7892","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7892"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7892\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}