I put together a small WCF service in VS2008, and when I try to start the host using the HTTP protocol, it bombs because it does not have the appropriate rights. On my line "Host.Open ()" I get this exception: " HTTP was unable to register the URL http: // +: 9001 / . Does not have permission to access this namespace ." I did not have this problem using TCP. My o / s is Vista Home Premium.
This happened when I tried to debug it inside VS2008. After many studies, I decided that I could make the host work by building by going to the bin folder and right-clicking on my executable file, choosing Run as administrator. The same thing happened when I tried to use WcfSvcHost.exe. I had to open the VS2008 command prompt window from my menu using "Run as administrator" before I could successfully start WcfSvcHost to start my service.
Is there a way to do this correctly instead of using this workaround? Will I have similar problems when I try to deploy this next week on Windows 2003 Server?
source share