Search code examples
wcfvisual-studio-2010web-services

VS2010 SvcUtil.exe command not recognized


I am attempted to generate a proxy through the SvcUtil.Exe tool that if offered on the visual studio command line. I have checked in the default directory where this resides, and I have seen that the executable is there in the following directory

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

I have my client which I am attempting to generate a proxy for at

C:\Users\Eric\Documents\Visual Studio 2010\Projects\WcfServiceConsole

As directed by MSDN, I have navigated to the directory of my client, and I have used the following command:

svcutil.exe /language:cs /out:generatedProxy.cs /config: app.config http:
//localhost:8000/service

I am getting the usual error response from the command line:

"svcutil.exe is not recognized as an internal or external command, operable program
 or batch file".

What can I do sot hat I can navigate to my project's solution, and then use this tool?


Solution

  • You can either set the path of the svcutil that you want to use in the path variables, or specify the full path C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\svcutil.exe /language:cs /out:generatedProxy.cs /config: app.config http: //localhost:8000/service