473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

new HttpListener in Service OnStart

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
1 4729
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: JSheble | last post by:
I've written a Windows Service using C#, but I cannot seem to figure out how to cancel or prevent the service from starting under certain conditions. For example, in the OnStart I read in some...
5
by: vinoth | last post by:
Hi, I have created WindowsService Project.In that Project OnStart Method i have written the following Code. In this code the Server is waiting for the connection from client. When the Client...
8
by: Jerry Camel | last post by:
I want my service to terminate automatically if the specified parameters are invalid. I tried to use a servicecontroller component to attach to the service, but I think that it's failing because...
4
by: Groundskeeper | last post by:
I can't seem to get a custom UnhandledException handler working for a Windows Service I'm writing in VB.NET. I've read the MSDN and tried various different placements of the AddHandler call, to no...
5
by: davesmith | last post by:
I have a very simple console app using an HttpListener to listen for incoming HTTP requests (see code below). My client and server machines are both in an ADS domain and I'm logged into both using...
7
by: Sunil Varma | last post by:
Hello all, I wrote a Windows Service in VC.NET 2005 I want to debug the solution. I tried as mentioned in the following link. ...
2
by: TonyJ | last post by:
Hello!! Below I have written the main method, the C-tor and the OnStart. Who is calling OnStart? It must be the operating system that calls it after the C-tor has finished 1. Main is always...
3
by: Smithers | last post by:
I'm writing a new Windows Service. During the OnStart event procedure I initialize a few things. If initialization fails, then I do not want for the service to start. What I currently have is...
2
by: Smithers | last post by:
I have a service that will periodically send email messages to system adminstrators. I would like for this service to send a email notification whenever the service is started and when it is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.