Posts

Showing posts from June, 2008

Issue with WCF service with WsHttpBinding hosted on windows service.

Image
last few weeks our team faced a strange issue with WCF service with WsHttpBinding hosted on windows service. This windows service worked fine when just after installing and even when restrings the service. But when we restart the machine it hangs forever (windows never boots) in Windows 2003 R2 but in windows 2003 standard edition the service stops when restart. After doing hundreds of testing we found that HTTP services require HTTP.sys to be loaded before starting the service. We added HTTPFilter service as a dependency to our windows service using the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\. It worked <:-p .HTTPFilter service depends on HTTP and it loads HTTP.sys at the startup time. Following displays the way to add the regitry key to service called MyService. Here you can see the newly added Multistring key called DependOnService and it's value HTTPFilter. After adding the registry key, in the service properties you can see the added filter