Changing WCF Base Address

By default, the base address of my wcf test application

http://localhost:8732/Design_Time_Addresses/evalservice 

but when I delete Design_Time_Addresses and go to a simple base address as below

 <add baseAddress="http://localhost:8732/evalservice" /> 

I get the following error

 Please try changing the HTTP port to 8732 or running as Administrator. System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:8732/evalservice/. 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 

and when I return it back to Design_Time_Addresses, the problem will be solved.

What is Design_Time_Addresses and how can I change it to a simpler base address?

+5
source share
1 answer

The Design_Time_Addresses namespace is automatically registered by the .NET platform to allow non-administrator users to develop WCF services :

You can change access using the netsh.exe tool [...] under the administrator account. The following is an example of using netsh.exe.

netsh http add urlacl url=http://+:9002/MyService user=<domain>\<user>

Another workaround would be to start Visual Studio as an administrator.

+7
source

All Articles