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?
The ServiceModel Metadata Utility Tool can be found at the Windows SDK installation location, specifically %ProgramFiles%\Microsoft SDKs\Windows\v6.
The Windows Communication Foundation (WCF) dotnet-svcutil tool is a . NET tool that retrieves metadata from a web service on a network location or from a WSDL file, and generates a WCF class containing client proxy methods that access the web service operations.
Visual Studio includes two command-line shells for developers, a command prompt and an instance of PowerShell, as follows: Visual Studio Developer Command Prompt - A standard command prompt with certain environment variables set to make using command-line developer tools easier.
To set this path permanently in your command prompt:
Go to Control Panel >> System >> Advanced Tab >> Environment Variables
In System Variables, select the PATH row and click Edit:
Then, paste the directory C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\ and click Ok:
Now, you can use the command without typing the full directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With