Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a .NET developer working on a project that contains multiple WCF services. Some automated tests try to host these services, but depending on whether I don't run the test with administrative privileges, those tests fail with the following error:

System.ServiceModel.AddressAccessDeniedException : HTTP could not register 
URL http://+:45566/SomeService/. Your process does not have access rights to this namespace 
(see http://go.microsoft.com/fwlink/?LinkId=70353 for details).
  ----> System.Net.HttpListenerException : Access is denied

Following the provided link, it appears I have to give myself (normal domain user) some sort of access right using the netsh command as follows:

netsh http add urlacl url=http://+:45566/SomeService user=DOMAIN\me

Unforunately, there seems to be no way (that I can find) to use wildcards for the port or the relative URL parts, in order to grant myself access to everything on the localhost for example.

Hence my question: what the heck is this ACL, and can I find it in a file or something in order to manipulate it more easily?

Even better: since the local administrator account seems to have access rights by default, could I somehow tell whatever system is behind this to just shut up and let me do my work?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.