I'm trying to host my ServiceStack service in a console host. I need the ability to launch my service without administrative privileges. But when I try to do this, I get an exception "Access is denied. An unhandled exception of type 'System.Net.HttpListenerException' occurred in ServiceStack.dll".
Is there any way to launch my ServiceStack self-hosted app without administrative privileges?
To get ServiceStack running without administrative privileges you need to ensure that:
http
localhost
So for example these hosts can be created without administrative privileges:
http://localhost:8000
http://localhost:8080
http://localhost:1050
... etc.Hostnames using wildcards, domains other than localhost, ports lower than 1024 or https require admin rights, unless a rule has been granted using netsh
on Windows, or httpcfg
on mono platforms.
http://localhost:80
http://+:8080
http://*:8080
http://domain.com:8080
http://domain.com:80
https://localhost:8080
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With