Translate

Wednesday, May 4, 2011

Why do you get Error in opening servicehost. System.ServiceModel.AddressAccessDeniedException?

Error in opening servicehost. System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:MyUri/ . Your process does not have access rights to this namespace. Net.HttpListenerException: Access is denied

I was using Windows 7 (64 bit), Open command prompt with admin privileges and execute following command that fixed the issue for me:
netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user

For more information look at the link: http://msdn.microsoft.com/en-us/library/ms733768.aspx

No comments:

Post a Comment