Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Configuring HTTP Listener - Access is denied #38

Closed
eezewski opened this issue Oct 7, 2014 · 3 comments
Closed

Error Configuring HTTP Listener - Access is denied #38

eezewski opened this issue Oct 7, 2014 · 3 comments
Labels

Comments

@eezewski
Copy link

eezewski commented Oct 7, 2014

I am trying to configure the metrics visualizer to use the following endpoint on one of our servers:

http://localhost:1234/

When I reached out to that server by name 'http://servernameremoved:1234' I was greeted by a 400 error.

I then added an ACL entry using:

netsh http add urlacl url=http://+:1234/ user="NETWORK SERVICE"

This resulted in me now getting error 503. The service is unavailable.

When I tried to restart my NT service it wouldn't start anymore with the following error in the log:

2014-10-07 17:22:50,674 [5] ERROR Metrics.MetricsConfig [(null)] - Metrics: error configuring HttpListener
System.Net.HttpListenerException (0x80004005): Access is denied
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Metrics.Visualization.MetricsHttpListener.Start() in c:\Users\eti\Work\Metrics.NET\Src\Metrics\Visualization\MetricsHttpListener.cs:line 30
at Metrics.MetricsConfig.WithHttpEndpoint(String httpUriPrefix) in c:\Users\eti\Work\Metrics.NET\Src\Metrics\MetricsConfig.cs:line 60
at Metrics.MetricsConfig.ConfigureHttpListener() in c:\Users\eti\Work\Metrics.NET\Src\Metrics\MetricsConfig.cs:line 196

What am I doing wrong?

@etishor
Copy link
Owner

etishor commented Oct 8, 2014

You can try changing the prefix from localhost to + :

Metric.Config.WithHttpEndpoint("http://+:1234/")

If this does not work you can try changing the port, maybe some other app is listening on that port.
It is not required, but you could try to start the "net tcp port sharing service".

@eezewski
Copy link
Author

eezewski commented Oct 9, 2014

Hey thanks, that change to my configuration worked. 😃

@etishor
Copy link
Owner

etishor commented Oct 10, 2014

Awesome :)

@etishor etishor closed this as completed Oct 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants