Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7745361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:59:46+00:00 2026-06-01T09:59:46+00:00

We are trying to deploy a simple C# (framework 2.0) application which uses HttpListener

  • 0

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)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:59:47+00:00Added an answer on June 1, 2026 at 9:59 am

    Okay, under the hood HttpListener class calls

    [StructLayout(LayoutKind.Sequential)]
    internal struct HTTPAPI_VERSION
    {
        internal ushort HttpApiMajorVersion;
        internal ushort HttpApiMinorVersion;
    }
    
    [DllImport("httpapi.dll", CallingConvention=CallingConvention.StdCall, SetLastError=true, ExactSpelling=true)]
    internal static extern unsafe uint HttpInitialize(HTTPAPI_VERSION version, uint flags, void* pReserved);
    

    On XP:

    version.HttpApiMajorVersion = 2; 
    version.HttpApiMinorVersion = 0;
    flags = 5;
    pReserved = null;
    

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to deploy an PHP application which is written with Zend Framework to
i am trying to deploy simple asp.net mvc frameworkd application in may shared hosting
I am trying to deploy a simple rails application to an heroku account, I
I'm trying to deploy an application in weblogic which is based on a Spring
I am trying to deploy a very simple & my first JSF application (following
Im trying to deploy a simple application with capistrano nginx and unicorn /srv/paintings.git (
I am trying to deploy a simple windows desktop app using a SQL Server
Im using Eclipse 3.4, EclipseMe 1.7.9. Im trying to deploy/create package a simple project
Hi I am trying to deploy an application using webstart. I have a requirement
I'm trying to deploy an application on Azure but I'm facing some problems. on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.