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?