开发者

ServiceHost Open Delay

开发者 https://www.devze.com 2023-01-01 14:37 出处:网络
Since updating my workstation with windows 7 ultimate (from XP), I experience a delay of about 40 seconds to after calling Open() on an instantiated ServiceHost.

Since updating my workstation with windows 7 ultimate (from XP), I experience a delay of about 40 seconds to after calling Open() on an instantiated ServiceHost.

When I run the exe with the same config on the host windows server it opens immediately. Any ideas about this behavior on my workstation?

Running Visual Studio 2010 Ultimate, Windows 7 Ultimate x64, 8gig RAM.

Update.... I found that removing the 1. service mex endpoint (leaving a single net.tcp endpoint) 2. service host http base address 3. service behavior httpGetEnabled

resolves the issue. If I change the net.tcp endpoint to use basicHttpBinding, Open tak开发者_JS百科es 40 seconds. But why is there a 40 second delay to set up the endpoint with the http endpoint (mex or service-contract)?

0

精彩评论

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