From: Brian Stoop on
I want to embed IIS into a windows service, to save the user having to
configure it externally.

Is there any documentation available?


Thanks, B



From: Felix Palmen on
* Brian Stoop <b.stoop(a)consultant-spam.free.com>:
> I want to embed IIS into a windows service, to save the user having to
> configure it externally.

You can't. But ASP.NET has a builtin web server (HttpListener) and you
can handle the client's request in a matter that they're forwarded to
your self created AspHost object. I did this for serving asp.net pages
from embedded resources.

Unfortunately, I only know of a german article covering this subject,
but maybe you can understand some of the code there:

1. Covers handling HTTP Requests:
<http://msdn.microsoft.com/de-de/library/bb979275.aspx>

2. Covers processing them with ASP.NET:
<http://msdn.microsoft.com/de-de/library/bb979258.aspx>

--
Felix Palmen (Zirias) + [PGP] Felix Palmen <felix(a)palmen-it.de>
web: http://palmen-it.de/ | Ca http://palmen-it.de/pub.txt
my open source projects: | Fingerprint: ED9B 62D0 BE39 32F9 2488
http://palmen-it.de/?pg=pro + 5D0C 8177 9D80 5ECF F683
From: Brian Stoop on
thanks B

"Felix Palmen" <felix(a)palmen-it.de> wrote in message
news:N3e8I4c89c6e9T5bc6(a)erwin.home.palmen-it.de...
>* Brian Stoop <b.stoop(a)consultant-spam.free.com>:
>> I want to embed IIS into a windows service, to save the user having to
>> configure it externally.
>
> You can't. But ASP.NET has a builtin web server (HttpListener) and you
> can handle the client's request in a matter that they're forwarded to
> your self created AspHost object. I did this for serving asp.net pages
> from embedded resources.
>
> Unfortunately, I only know of a german article covering this subject,
> but maybe you can understand some of the code there:
>
> 1. Covers handling HTTP Requests:
> <http://msdn.microsoft.com/de-de/library/bb979275.aspx>
>
> 2. Covers processing them with ASP.NET:
> <http://msdn.microsoft.com/de-de/library/bb979258.aspx>
>
> --
> Felix Palmen (Zirias) + [PGP] Felix Palmen <felix(a)palmen-it.de>
> web: http://palmen-it.de/ | Ca http://palmen-it.de/pub.txt
> my open source projects: | Fingerprint: ED9B 62D0 BE39 32F9 2488
> http://palmen-it.de/?pg=pro + 5D0C 8177 9D80 5ECF F683