Advertisement

06.08.2008 at 02:38PM PDT, ID: 23467656
[x]
Attachment Details

WCF Example requires elevated privileges on Vista - How do you deal with that?

Asked by anyoneis in .NET Framework 3.x versions, Microsoft Visual C#.Net, Visual Studio 2008

Tags: VS2008, Debug, WCF, MetadataExchange, System.ServiceModel.AddressAccessDeniedException, Vista, UAC, `

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.AddressAccessDeniedException 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.ServiceModel""

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"?

DavidStart Free Trial
[+][-]06.08.2008 at 06:57PM PDT, ID: 21740415

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 3.x versions, Microsoft Visual C#.Net, Visual Studio 2008
Tags: VS2008, Debug, WCF, MetadataExchange, System.ServiceModel.AddressAccessDeniedException, Vista, UAC, `
Sign Up Now!
Solution Provided By: CMYScott
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.09.2008 at 11:44AM PDT, ID: 21745520

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906