What causes a HttpListener HTTP 503 error?

RandomInsano picture RandomInsano · Nov 15, 2011 · Viewed 7.5k times · Source

So, we have a large program which uses HttpListener for a small remote admin feature. For reasons I don't understand, some people have issues with a 503 error.

Since we're not supplying the error, there's something happening in the framework. Now, my question is, what inside the framework supplies this error? Is it that the prefixes aren't set properly or something?

We currently have our prefix set as "http://*:8080/".

Advice?

Answer

apdevelop picture apdevelop · Feb 1, 2012

I've got same error on Windows 7, when trying to set permissions for HttpListener using netsh http command. On target system run the command (valid for Windows 7):

netsh http show urlacl    

and check, if your URL "http://+:8080/" already presented in reserved urls list. Try to remove from list (using "netsh http delete urlacl". Similar topic here.