In trying to do a simple WCF example, I have run into a UAC issue. The example is here:
http://bloggingabout.net/blogs/dennis/archive/2007/04/21/wcf-simple-example.aspx?The problem is that when I try to debug this console program service host, I get an exception:
"System.ServiceModel.Addre
ssAccessDe
niedExcept
ion was unhandled
Message="HTTP could not register URL
http://+:8080/. Your process does not have access rights to this namespace (see
http://go.microsoft.com/fwlink/?LinkId=70353 for details)."
Source="System.ServiceMode
l""
Surfing around leads me to the idea that dealing with MetadataExchange requires elevated privileges. OK, How do people do this? Do you just run Visual Studio as Administrator? Wouldn't it be nice if when you pressed F5 or ctrl-F5, if the option to run with elevaed privileges was offered? Or if it could be configured in the project debug properties, e.g., "Debug with elevated privileges"?
David
Start Free Trial