Press "Enter" to skip to content

Tips for enabling WCF test client

There are two ways to open the WCF test client outside of Visual Studio: The first method is to double-click on the path to it (Visual Studio installation path \Common7\IDE\WcfTestClient.exe). The second method is to enter the “WcfTestClient” command in the “Visual Studio Command Prompt”, a

ifferent project templates for Visual Studio provide different WCF test client startup methods. The following table is a project template related to WCF in Visual Studio 2010 Beta2:

Project template name Template location .NET Frameworkversion
WCF service library New Project -> WCF Node 3.0/3.5/4.0
WCF service application New Project -> Web Node 3.0/3.5/4.0
WCF Workflow Service Application New Project -> WCF Node 4.0
WF order service New Project -> WCF Node 3.5
WF state machine service New Project -> WCF Node 3.5
Joint service library New Project -> WCF Node 3.5/4.0
WCF service New website 3.0/3.5/4.0

Table 1

WCF Service Library , WF Order Service , WF State Machine Service :

Enable debugging (F5) will start the WCF service host (WCF Service Host) hosted project by default, and will automatically enable the WCF test client,

 If you want F5, do not start the WCF test client, you can modify the project properties -> debug -> command line parameters, 

WCF service application , WCF workflow service application :

When in the “Solution Explorer”, the focus is selected in the .svc or .xamlx file for a particular service, F5 will launch the WCF test client.

If you want to always start IE in F5, you can disable the WCF test client by adding the EnableWcfTestClientForSVC property configuration in the .csproj.user file:

<Project>

  <ProjectExtensions>

    <VisualStudio>

      <FlavorProperties>

        <WebProjectProperties>

          <EnableWcfTestClientForSVC>False</EnableWcfTestClientForSVC>

        </WebProjectProperties>

      </FlavorProperties>

    </VisualStudio>

  </ProjectExtensions>

</Project>

    In addition, there is a default value setting for the EnableWcfTestClientForSVC property in the .csproj file. If the .csproj.user file does not have a setting for this property, then the property uses the default value in the .csproj file:

<Project>

  <ProjectExtensions>

    <VisualStudio>

      <FlavorProperties>

        <WebProjectProperties>

         <EnableWcfTestClientForSVCDefaultValue>False</EnableWcfTestClientForSVCDefaultValue>

        </WebProjectProperties>

      </FlavorProperties>

    </VisualStudio>

  </ProjectExtensions>

</Project>

The following table shows the logical relationship between the settings of the .csproj.user and .csproj file related properties and the startup client type:

.csproj.user

File settings

True False Not set Not set Not set
.csproj

File settings

True/False/ not set True/False/ not set True False Not set
start up

Client type

WCF test client IE WCF test client IE IE

Table 2

For example, in a project group that uses source control, the .csproj.user file will not be shared, and the .csproj file will be shared. If you only want to change the startup behavior of your individual WCF test client, you should modify the .csproj.user file; if you want to change the startup behavior of everyone who develops the project, you should modify the .csproj file.

Joint Service Library :

The WCF test client does not test this service, so the FCF test client is not automatically started when F5.

WCF service (website) :

    The WCF test client is not automatically started when F5. If you want to get the same startup behavior as the WCF service application , you can modify the C:\Users\<username>\AppData\Local\Microsoft\WebsiteCache\websites.xml file (the files in the XP/2003 system are in similar locations):

<DesignTimeData>

  <Website RootUrl=”C:\” CacheFolder=”WCFService1″ EnableWcfTestClientForSVC=”true” />

</DesignTimeData>

    Note that you should close Visual Studio before modifying the websites.xml file, otherwise the overlay websites.xml file will be overwritten when Visual Studio is closed.

116 Comments

  1. Oybrjo Oybrjo January 21, 2024

    purchase azithromycin pill azipro price buy azipro 250mg generic

  2. Szpiegowskie Telefonu Szpiegowskie Telefonu January 30, 2024

    Dzięki programowi monitorowania rodziców rodzice mogą zwracać uwagę na czynności wykonywane przez ich dzieci na telefonie komórkowym oraz łatwiej i wygodniej monitorować wiadomości WhatsApp. Aplikacja działa cicho w tle urządzenia docelowego, nagrywając wiadomości konwersacyjne, emotikony, pliki multimedialne, zdjęcia i filmy. Dotyczy każdego urządzenia z systemem Android i iOS.

  3. Szpiegowskie Telefonu Szpiegowskie Telefonu February 11, 2024

    Jeśli myślisz o użyciu aplikacji szpiegowskiej na telefon komórkowy, dokonałeś właściwego wyboru.

  4. Iffcyi Iffcyi March 14, 2024

    buy ciprofloxacin pills for sale – cost bactrim buy augmentin generic

  5. 저희는 구글 계정 판매 전문 회사입니다.우리의 구글 계정은 이메일, 문서, 캘리더, 클라우드 저장 등의 기능을 포함한 포괄적인 디지털 솔루션을 제공합니다.구글 계정을 통해 우리는 사용자에게 효율적인 협업 플랫품을 제공하여 개인과 팀이 일과 삶을 더 스마트하게 관리할 수 있도록 지원합니다.

  6. Izveidot bezmaksas kontu Izveidot bezmaksas kontu April 4, 2024

    Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  7. 네이버 아이디 구매 네이버 검색: 네이버 검색 엔진은 웹에서 정보를 검색하는 데 사용됩니다. 사용자가 검색어를 입력하면 웹 페이지, 이미지, 블로그, 뉴스 등 다양한 결과를 제공합니다.

  8. Krdooa Krdooa April 12, 2024

    buy ivermectin 12mg for humans – doryx online order cefaclor 500mg online

  9. sklep internetowy sklep internetowy April 15, 2024

    Wow, fantastic blog format! How lengthy have you ever been running a blog for?
    you make blogging look easy. The entire glance of your website is magnificent, let alone the content!
    You can see similar here sklep

  10. 네이버 아이디 판매 네이버는 다양한 온라인 서비스와 웹사이트를 제공하며, 대한민국을 중심으로 아시아와 기타 지역에서 많은 이용자들에게 서비스를 제공하고 있습니다. 네이버의 주요 서비스 종류는 다음과 같습니다

  11. 비아그라 구매방법 비아그라 구매방법 April 17, 2024

    CSIR-CIMAP h비아그라 구매방법as played an비아그라 구매방법 important r비아그라 구매방법ole

  12. 파워맨 남성클리닉 파워맨 남성클리닉 April 20, 2024

    비아그라는 처방전이 필요한 약물로 분류되어 있기 때문에, 올바른 절차를 따라 구매해야 합니다. 여기서는 비아그라를 구매하는 올바른 방법에 대해 알아보겠습니다.

    비아그라 구매방법

  13. mosquitoes 비아그라 구매 사이트etc.) are pr비아그라 구매 사이트edicted for 비아그라 구매 사이트plan

Leave a Reply

Your email address will not be published. Required fields are marked *