CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    George2 is offline Elite Member Power Poster
    Join Date
    Oct 2002
    Posts
    4,468

    Access is denied when listen on a port

    Hello everyone,


    I am using Windows Server 2003. When call the Start method of HttpListener, there is the following exception -- System.Net.HttpListenerException: Access is denied.

    Any ideas how to grant the access?


    thanks in advance,
    George

  2. #2
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104

    Re: Access is denied when listen on a port

    Last edited by cjard; May 29th, 2008 at 05:58 AM.
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

  3. #3
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Access is denied when listen on a port

    I think you will have to use httpcfg utility in this case although I am not sure, but you can check it yourself.

  4. #4
    George2 is offline Elite Member Power Poster
    Join Date
    Oct 2002
    Posts
    4,468

    Re: Access is denied when listen on a port

    Thanks Shuja Ali and cjard,


    1.

    Your ideas give me a lot of hints. I have studied the httpcfg tool, but few information about how to use this tool.

    I have found a sample from the below link, which is,

    httpcfg.exe set urlacl /u http://localhost:80/StevenCheng/ ; /a DA;;GX;;;WD)

    I think it will grant the access to all the URLs whose prefix is "http://localhost:80/StevenCheng/"?

    For example, the following 2 URLs are granted automatically by the above command?

    http://localhost:80/StevenCheng/folder1/1.html
    http://localhost:80/StevenCheng/folder1/folder2/2.html

    2.

    How to use the getsid tool? I can not any help information and sample, for example, how to get the id of an account?


    regards,
    George

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured