By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,650 Members | 753 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,650 IT Pros & Developers. It's quick & easy.

new HttpListener in Service OnStart

P: n/a
I have a windows service implementation that creates an HttpListener in
OnStart to help capture port conflict issues while starting vs. when the
service is already started. On Windows 2003 servers calling new HttpListener
hangs, sometimes for minutes and eventually the SCM gives up and reports the
the service hung on start up. I've requested more time in the OnStart before
calling to create the listener, but no helps. If I wait to call new
HttpListener in my MainLoop thread for the service it returns in about 10
seconds. I currently don't have a service dependency on http.sys, but I had
in the past and don't recall it helping. Is there another service depenency
to use or any other clues?
Apr 19 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
It looks to be that the correct service dependencies are HTTPFilter and RPCSS
and not HTTP. HTTPFilter depends on HTTP (http.sys filter).

"Wild Wild Mike" wrote:
I have a windows service implementation that creates an HttpListener in
OnStart to help capture port conflict issues while starting vs. when the
service is already started. On Windows 2003 servers calling new HttpListener
hangs, sometimes for minutes and eventually the SCM gives up and reports the
the service hung on start up. I've requested more time in the OnStart before
calling to create the listener, but no helps. If I wait to call new
HttpListener in my MainLoop thread for the service it returns in about 10
seconds. I currently don't have a service dependency on http.sys, but I had
in the past and don't recall it helping. Is there another service depenency
to use or any other clues?
Apr 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.