We are trying to deploy a simple C# (framework 2.0) application which uses HttpListener class on a Windows XP SP3 system: the application aborts at initialization because HttpListener.IsSupported property is false.
Question: what could make HttpListener unsupported on a (reasonably) up-to-date XP system ?
Things that could matter:
- User is not administrator on his system
- There may be security policies on the computer which I’m not aware of (and which I’m not sure I am able to check without being administrator myself)
Okay, under the hood
HttpListenerclass callsOn XP:
Which is described here. And sets
bool supported = HttpInitialize(...) == 0;You can try to call it directly using PInvoke and check system error code returned