Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can the Wcf Test Client be used without Visual Studio?

When WcfTestClient.exe is copied to another machine by itself, runtime errors prevent you from connecting to a WCF service, for example:

System.IO.FileNotFoundException: Could not load file or Assembly 'Microsoft.Build.Utilities.Core, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

How can this tool be used without installing Visual Studio?

like image 931
Dnana Avatar asked Jun 14 '11 06:06

Dnana


People also ask

How do I run a WCF Test Client?

After you create a new WCF service project and press F5 to start the debugger, the WCF Service Host begins to host the service in your project. Then, WCF Test Client opens and displays a list of service endpoints defined in the configuration file.

How do I open a WCF Test Client in VS 2019?

In Visual Studio 2019 go to: Tools > Get Tools and Features > Select the Individual Components tab > Type wcf in the search box and install it. This installs the component, and you should be able to load it from the command prompt or other methods suggested in the answer.

What is WCF client?

A WCF client is a local object that represents a WCF service in a form that the client can use to communicate with the remote service. WCF client types implement the target service contract, so when you create one and configure it, you can then use the client object directly to invoke service operations.

How do I open a WCF file?

How to start the WCF Test Client? Open the folder "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" and double-click on WcfTestClient.exe. If you have a 64 bit OS then look in the "Program Files (x86)" folder. From the command prompt we can open the tool by passing the service URI as a command argument.


1 Answers

To run WCFTestClient.exe as a standalone appplication (without install a full version of Visual Studio 2010):

  1. Create a directory in the dest. machine and copy wcftestclient.exe there (only that file).
  2. Copy Microsoft.VisualStudio.VirtualTreeGrid.dll (version 10) from file below to same directory of wcftestclient.exe in the dest. machine.

    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualStudio.VirtualTreeGrid\v4.0_10.0.0.0__b03f5f7f11d50a3a 
  3. You would create in your destination machine the following two registry keys:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx40Tools-x64] "InstallationFolder"="\"  [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx40Tools-x86] "InstallationFolder"="\" 

    Step note: You could export them from your development machine (maybe you could find another version, but please try with v7.0A first).

  4. Then you will need copy from:

    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\svcutil.exe 

    to your destination machine (same directory as wcftestclient.exe)

    Step note: Is important this version of svcutil.exe

  5. Run wcftestclient.exe

Final notes: You will need only two .exe files and one .dll (wcftestclient.exe, svcutil.exe and Microsoft.VisualStudio.VirtualTreeGrid.dll) to run the application.

More information

like image 149
TagFolks Avatar answered Sep 21 '22 10:09

TagFolks