WCF : How to disable WCF Test Client

前端 未结 8 1689
悲哀的现实
悲哀的现实 2020-12-24 02:31

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 t
8条回答
  •  臣服心动
    2020-12-24 03:20

    If you want to run the project in a browser,

    1. Go to the properties of the project
    2. Click -> Web
    3. In the servers section, mention the iis (iisexpress, local IIS) and specify the URL "http://localhost:11111/"

    this will take the program to the browser

    To take it only to wcf test client, follow the above steps, but the URL should point to the service. http://localhost:11111/yourservice.svc .. will do.

    Thank you

提交回复
热议问题