Issue with WCF service with WsHttpBinding hosted on windows service.

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 as follows.












For more details refer https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3427146&SiteID=1
Hope this blog will prevent someone from struggling in this issue in future.

Popular posts from this blog

How to get SharePoint dll version using JavaScript quickly

SharePoint App Only Registration Key Renewal script