How to run svcutil.exe due to authentication proxy

I want to run the svcutil.exe tool to access a web service on the Internet. Unfortunately, whenever I try, I get a bunch of errors that include the following message:

Failed to complete the request with HTTP status 407: Proxy server authentication required (ISA server authorization is required to complete the request. Access to the web proxy filter is denied.

As I learned from this related post (with more details here ), the problem is that I'm sitting behind an authentication proxy. This article explains that I need to edit the app.config file, but I cannot figure out how to do this. I think I will use the /svcutilConfig:alternate_app.config switch, but I don’t know how to create a valid .config file to go to this switch. What is the default app.config file that uses svcutil.exe?

+7
Feb 27 '13 at 23:11
source share
1 answer

Well, I think I understood the answer to my question:

It turns out that the default .config file svcutil.exe is called svcutil.exe , and (at least for me) it lives in this folder:

 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin 

I decided to simply edit this file directly (instead of /svcutilConfig with the /svcutilConfig ). I need admin rights for this.

The final contents of this file looked like this:

 <?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <generatePublisherEvidence enabled="false" /> </runtime> <system.net> <defaultProxy useDefaultCredentials="true" /> </system.net> </configuration> 

(with secret sauce buried in the <system.net> element.)

For this to work, I had to run the command line as an administrator, go to the folder indicated above, and run the svcutil.exe command.

Hope this helps another poor soul who is stuck in this mess! Thanks @AndrewWebb for the tips that got me going!

+11
Feb 27 '13 at 23:14
source share



All Articles