Hello Peter,
Thank you for posting.
As for the HttpListener's permission issue you mentioned, based on my
research, it is caused by the URLACL of the windows xp or windows 2003's
HTTP.SYS kernal modulet. By default only SYSTEM or the local Administrators
group can listen to http prefixes.If you want to let other custom accounts
listening on certain URL prefixes, you need to explicitly grant access to
other accounts.
For this it is convenient to use the httpcfg.exe tool, for example:
httpcfg.exe set urlacl /u
http://localhost:80/StevenCheng/ /a
D

A;;GX;;;WD)
In the above command, "set urlacl" means we'll add an URLACL configuration
entry. And the URLACL's url is specified through /u switch, the security
ACL is supplied through the /a switch(use SDDL string).
In the above example, "D

A;;GX;;;WD)" means we grant(A) Generic Execute
permission(GX) to everynoe(WD). If we want to grant permission to a
specific user, we need to use that user account's SID (to replace the WD
here ).
There is a tool named "GetSid.exe" in the platform sdk which can help
conveniently get sid string of a specific user account.
The httpcfg.exe tool can be get through the windows XP sp2 support tools or
windows 2003 SP1 support tools(getsid.exe is also included in the tools):
#Windows Server 2003 Service Pack 1 32-bit Support Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=6ec50b78-8be1-4e81-
b3be-4e7ac4f0912d&DisplayLang=en
#Windows XP Service Pack 2 Support Tools
http://www.microsoft.com/downloads/details.aspx?amp;displaylang=en&familyid=
49AE8576-9BB9-4126-9761-BA8011FABF38&displaylang=en
In addition, I've also noticed that the existing documentation on
HttpListener class is far from complete which hasn't mentioned most of the
things I listed here. Regarding on this, I've also sent the feedback to our
internal dev team so that they can notice this doc problem. Meanwhile, I
would also recommend you submit this request and feedback about this in our
product feedback center so that our dev team can also hear more about the
products and docs from the community.
Thanks for your understanding!
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial
response from the community or a Microsoft Support Engineer within 1
business day is
acceptable. Please note that each follow up response may take approximately
2 business days
as the support professional working with you may need further investigation
to reach the
most efficient resolution. The offering is not appropriate for situations
that require
urgent, real-time or phone-based interactions or complex project analysis
and dump analysis
issues. Issues of this nature are best handled working with a dedicated
Microsoft Support
Engineer by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.