How to disable WCF Test Client - VS 2012

喜你入骨 提交于 2019-11-30 06:38:48
Liran Ben Yehuda

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..

A simple option that works for me (at least in Visual Studio 2012 Update 4):

Open the WCF project properties and go to the Web section. Set the Start Action setting to Don't open a page. Wait for a request from an external application.

After choosing that option I no longer see the WCF Test Client.

I personally usually choose this start action anyway, since I much prefer hitting F5 in my browser than having yet another tab opened each time I hit F5 in VS.

I found a reasonable work around. All I did was add an empty html page to the project, then right clicked on the html file in Solution Explorer and chose Set As Start Page. A debug session starts but it doesn't go to the WCF TestClient. Not elegant but works.

Old thread but found it while I was suffering the same frustration with VS2013. If you run the project (F5) with the (yourProject)\svc.cs file open in the VS editor then the WCF Client starts. If you hit F5 with any other file as the selected and focused file in the VS editor then IIS and the normal first web page starts. Very simple when one knows.

I had a similar problem, and found this to be caused by the default Start Options under

> Solution Properties
    > Debug
        >Start Options
            >Command line arguemnts:  

it was listing a command line argument of /client:"WcfTestClient.exe" which was launching the test client. Simply removing this argument solved my problem.

No need to extra thing just do thing below.

Tools-->Option -->project and solution-->Build and Run and finally check Only startup project and Dependencies on Run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!