开发者

How do I dynamically detect what hostname/port to connect to find a WCF service when debugging in VS

WCF service is hosted in a website in the same solution as my WPF client.

Given that the development webserver often switches ports, I was wonde开发者_运维问答ring if there was an easy way to detect this so I don't have to keep hardcoding / updating my config?


The web project properties page contains option to specify an exact port on which the development server would run. Check the 'Web' property page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜