Sunday, March 13, 2011

Problem running WCF service on Windows Vista using Visual Studio

Impact: The project throws AddressAccessDeniedException while opening a service host using host.Open()

Solution: This exception occurs due to the new security settings in Windows Vista. This impacts your ability to run HTTP web services because listening at a particular HTTP address is a restricted operation. By default, every HTTP path is reserved for use by the system administrator. Your services will fail to start giving you an exception. To get rid of this exception follow the steps mentioned below.
  1. Close Microsoft Visual Studio if opened.
  2. Right click on the Microsoft Visual Studio in Start -> All Programs or from the shortcut on your desktop.
  3. Then click on Run as administrator.
  4. Now try to run your WCF project.

1 comment: