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

  • SEARCH
  • Home
  • 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 6011813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:18:49+00:00 2026-05-23T02:18:49+00:00

We had a problem with WCF hosting on service in Windows 2003. We found

  • 0

We had a problem with WCF hosting on service in Windows 2003.
We found a command line tool (httpcfg) which helped us to resolve the issue temporarily.

The following command line argument needs to run after the service installation:

httpcfg set urlacl -u http://+:8080/ -a "D:(A;;GX;;;S-1-5-21-490459244-4280451753-3120260354-1829)"

We need to pass this argument via installer using C#

That is via service controller after installer event. How would I do the same in C# using ServiceController?

  • 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-05-23T02:18:50+00:00Added an answer on May 23, 2026 at 2:18 am

    I can think of two approaches:

    • Just run httpcfg.exe using System.Diagnostics.Process
    • Use PInvoke to access the underlying Win32 API HttpSetServiceConfiguration

    The second approach is a little messy but not that hard. The PInvoke.net page describes the call and even gives a working example:

    • PInvoke.net: httpsetserviceconfiguration (httpapi)

    EDIT: Some notes about cleanup issues inspired by Rob’s comment. I put them here in this existing answer, because they don’t make a good one on their own.

    Please note, that whatever approach you take (httpcfg.exe or direct use of the HTTP-API), make really sure that you unregister the URLs in your uninstall process.

    The reason is, that HTTP.SYS (which actually is a kernel component) has only so much (nonpaged) memory available for managing URL reservations. If you exceed this, by having to many (possibly stale / left-over) registrations, you get errors and cannot register any new URLs (see http://support.microsoft.com/kb/824033).

    While this is “solvable” by manually using httpcfg.exe to cleanup registrations you think(!) are orphaned (or allowing more memory – careful!) it is a royal pain and totally unnecessary, if uninstallers work as suggested.

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

Sidebar

Related Questions

I recently had a problem during the deployment of a windows service. Four computers
Over a year ago I had been working on a WCF service, which I
I had a problem in site map path I had navigation bar which take
I have created an OData/WCF service using Visual Studio 2010 on Windows XP SP3
The Problem I have a WCF webservice that I am hosting as a webservice
I'm having a problem with setting up a WCF web service integration with a
The problem... I have a WCF Service, I won't waste anyone's time with copy/pasting
We have a WCF service hosted on ServerA which is a server with no-direct
Problem Background I'm building a custom WCF Data Service provider using the Alex James
I'm having a problem when passing a parameter to the WCF service. The parameter

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.