Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable WCF Test Client - VS 2012

I have a new WCF Service Application, when I hit F5 to debug, the WCF Test Client always comes up, but I would like to disable it since I am using soapUI to test instead.

I have tried the answer here - https://stackoverflow.com/a/8441887/903056 but this XML node is no longer in the project file for VS 2012. I have tried several other things myself as well, such as changing default start page and trying to force debug to start a browser session instead.

like image 782
EkoostikMartin Avatar asked Mar 06 '13 16:03

EkoostikMartin


People also ask

How do I enable 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.

What is WCF Test Client?

WCFTestClient is a simple GUI tool to test your WCF service. You can provide values to input parameters of service operations, invoke it, and see the response values. You can find the WCF Test Client (WcfTestClient.exe) at C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\

How do you test SVC?

Visual Studio provides you a test client to run and debug the service. To use this test client, select your service in Solution Explorer ( CustomerProfile. svc ) and, from the Debug menu, select Start Debugging (or just press F5). Visual Studio will run the code in debug mode using the WCF Test Client, as shown in ...


1 Answers

This is realy frustrated but you can try one of the followings to disable the WCF test client:

1.Open the requested project properties and select the Web tab. Select the Current Page radio button (I believe that the Specific Page button is selected), Save the project and run(F5).

2.You can modified the prject XML (.csproj) file and add

<EnableWcfTestClientForSVCDefaultValue>False</EnableWcfTestClientForSVCDefaultValue>

attribute to <WebProjectProperties> node. That should be done by the followings:

2.1 Unload the requested project (right click -> Unload Project).

2.2 Edit <ProjectName>.csproj (right click again on the project)

2.3 Look for WebProjectProperties node and add <EnableWcfTestClientForSVCDefaultValue>False</EnableWcfTestClientForSVCDefaultValue> to it.

2.4 Reload the poject.

I hope you will find that unswer helpfull..

like image 56
Liran Ben Yehuda Avatar answered Oct 01 '22 13:10

Liran Ben Yehuda