hi Peter,
Thanks for your answer.
Peter said:
As for what specific privileges you need, I don't know. You didn't post
any code, nor did you make any statement as to what your code is
attempting to do when the exception occurs.
Sorry, my fault as I've should known better, fyi:
The failing test method is InitializeHost():
---
[TestClass]
public class CalculatorServiceTest : CalculatorLogicTest
{
private ServiceHost serviceHost;
private string testAddress = "
http://localhost:9999/Calculator";
private Binding testBinding = new WSHttpBinding();
[TestInitialize]
public void InitializeHost()
{
serviceHost = new ServiceHost(typeof(Calculator));
serviceHost.AddServiceEndpoint(
typeof(ICalculator), testBinding, new Uri(testAddress));
serviceHost.Open();
}
---
The exception occurs in when opening the service host (serviceHost.Open()).
The exception message:
---
HTTP could not register URL
http://+:9999/Calculator/. Your process does
not have access rights to this namespace (see
http://go.microsoft.com/fwlink/?LinkId=70353 for details).
---
The test error message:
---
Initialization method
WcfServiceTestTest.CalculatorServiceTest.InitializeHost threw exception.
System.ServiceModel.AddressAccessDeniedException:
System.ServiceModel.AddressAccessDeniedException: HTTP could not
register URL
http://+:9999/Calculator/. 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.