chillitom
chillitom

Reputation: 25686

Any small embeddable .Net web server suitable for service status pages?

Is there a simple way, perhaps using the standard libraries, to serve a webpage from my windows service?

I'm not looking for anything fancy I'd just like to serve status/control pages for some of my windows services but don't want to rewrite them as web applications.

Upvotes: 0

Views: 667

Answers (3)

spender
spender

Reputation: 120440

HttpListener is your friend, although making a reservation in the HTTP pipeline for non-admin accounts (i.e. service accounts) is a bit of a pain. There's a codeplex project that you can hack into a custom action on your service installer.

Upvotes: 1

Joel Martinez
Joel Martinez

Reputation: 47749

You could always check out the code for Cassini. It was written for .net 1.1, but I'm sure porting would be easy enough:
http://www.asp.net/downloads/archived-v11/cassini

Upvotes: 0

Lloyd
Lloyd

Reputation: 29668

What about Cassini which used to come with the .NET development framework?

http://www.asp.net/downloads/archived-v11/cassini

Upvotes: 0

Related Questions