wcfwcftestclient

WCF : How to disable WCF Test Client


I created a new WCF Application. It has a svc file & a code behind, When I try to debug (F5) then I see the following.

  1. If svc file is open & press F5 then it opens the web browser
  2. If code behind file is currently open & press F5 then WCF Test client opens.

Why there are different behavior? I do not want to use Test Client, how to disable it in the app so that it would not come again.

Atul Sureka


Solution

  • Open your project properties, go to the Debug tab, under start options you will see something like /client:"WcfTestClient.exe"

    delete that line.

    For a WCF Service Application and WCF Workflow Service Application you need to modify the .csproj.user file. A full write up can be found here.

    The key part is

        <WebProjectProperties>
          <EnableWcfTestClientForSVC>False</EnableWcfTestClientForSVC>
        </WebProjectProperties>