WCF Http Cound Not Register URL

Topics: General Discussion Forum, July and December Releases Forum
May 11, 2007 at 6:45 PM
Hello,

I am trying to use the WCF Services using the WSSF. While most of the process is streamlined, I am facing difficulties in actually testing the service from a Windows Application. Once I create the services, I can view the Services using the Service Factory>View In Browser command. The service runs from the following location:

http://localhost:2592/TestServices.Host/

I can also go ahead and add a Service Reference and invoke the TestServicesClient from my Windows forms app.However, when I try to execute the Operation from a Windows Forms application, I get the HTTP Could Not Register URL exception.

I looked around and found that other people are having similar problems:
http://blogs.msdn.com/drnick/archive/2006/10/16/configuring-http-for-windows-vista.aspx

My concern is that most of them state that you need to have elevated privileges in order to listen to an HTTP Port, but I am already logged on as an Administrator. Many suggest using the NETSH tool but I am running from an XP environment. Is using the httpcfg.exe my only option?

I have spent considerable amount of time writing the services and have found that other Test Services using WCF work fine without any HTTP URL Registration problems. Is this issue random? Any help would be highly appreciated.

I would also like to know if there are any alternative methods of testing my services.

Thank You
Anup
Developer
May 14, 2007 at 3:33 PM
I'm running on Vista all kind of scenarios like this and I've never got this error (under Admin account with UAC enabled). However, I found some info here AddressAccessDeniedException: HTTP could not register URL that may give you some hints.