locked
Starting dsshost RRS feed

  • Question

  • Hi there,

    I am not able to launch dsshost /p:50000. It gives the following error message:

     

    "C:\Microsoft Robotics Studio (1.0)>dsshost /p:50000
    *** Initialization failed in DSS boot loader: Could not start HTTP Listener.

        The two most common causes for this are:
     1) You already have another
        program listening on the specified port
     2) You dont have permissions to
        listen to http requests. Use the httpreserve command line utility to run
        using a non-administrator account.
     Exception message: Incorrect function

    C:\Microsoft Robotics Studio (1.0)>"

     

    Does anyone have any information regarding that?

     

    Regards

    Monday, July 2, 2007 1:01 AM

Answers

  • Three possibilities:
    1. You already have dsshost running and bound to the port.  You can fix this by opening task manager and making sure there are no dsshost processes running.
    2. There is a zombie dsshost process bound to the port.  dsshost died some unnatural death and the OS won't release the port. A reboot is the easiest fix.
    [ for 1 and 2, you can always try a number other than /p:50000 ]
    3. You don't have sufficient permissions to bind to the port.  Use bin\httpreserve.exe to reserve the port. Just run the program from the command line without arguments to see how to use it.  You will probably have to have admin priviledges to successfully run it.

    cheers,
    R

    Tuesday, July 3, 2007 4:05 PM

All replies

  • Three possibilities:
    1. You already have dsshost running and bound to the port.  You can fix this by opening task manager and making sure there are no dsshost processes running.
    2. There is a zombie dsshost process bound to the port.  dsshost died some unnatural death and the OS won't release the port. A reboot is the easiest fix.
    [ for 1 and 2, you can always try a number other than /p:50000 ]
    3. You don't have sufficient permissions to bind to the port.  Use bin\httpreserve.exe to reserve the port. Just run the program from the command line without arguments to see how to use it.  You will probably have to have admin priviledges to successfully run it.

    cheers,
    R

    Tuesday, July 3, 2007 4:05 PM
  • I have restarted the computer and still the problem is there. Also I am using an administrator account. I have tried to use httpreserve.exe tool and tried to reserve some ports but still the problem was there. I am attaching the snapshot.

     

     

    C:\Microsoft Robotics Studio (1.0)>httpreserve /Port:50000 /UserTongue Tiedal -Force
    Port 50000 reserved.

    C:\Microsoft Robotics Studio (1.0)>dssHost /port:50000
    *** Initialization failed in DSS boot loader: Could not start HTTP Listener.

        The two most common causes for this are:
     1) You already have another
        program listening on the specified port
     2) You dont have permissions to
        listen to http requests. Use the httpreserve command line utility to run
        using a non-administrator account.
     Exception message: Incorrect function

    C:\Microsoft Robotics Studio (1.0)>

     

     

    Regards

    Wednesday, July 4, 2007 9:04 PM
  • This should not be very related but do you get the same error when using the latest MSRS 1.5 CTP?
    Friday, July 6, 2007 9:19 PM
  • I didn't try MSRS 1.5. Should I use it to solve this problem. Can't this problem be solved in 1.0?

     

    Regards

     

    Saturday, July 7, 2007 4:25 AM
  • This is probably a permissions issue. I know the runtime in v1.5 (even CTP) is more reliable than 1.0 and there has been some fixes on the host. So why not try it out? If you have any projects to migrate, there is a DSS project migration tool that makes it easy.

     

    Saturday, July 7, 2007 4:34 AM
  • Thanks for your response but the size of v1.5 is about 64 and it will take a very long time to download it (because of my low speed connection). I hope that this problem could be solved using v1.0? btw I am using admin account so why should I face permission problems?

     

    Regards

     

    Saturday, July 7, 2007 7:35 AM
  • DssHost has its own layer of security at the node level. Follow the instructions in this thread to go over the security issues if the problem is security. I think the instructions there should also work for v1.0.

     

    BTW, if your internet connection is slow I suggest wait for the v1.5 release and download that. It should become available soon.

    Saturday, July 7, 2007 8:03 AM
  • Btw, what OS are you running? On Vista, because of LUA being a member of the admin group no longer means that you actually run as admin and that can cause this error to pop up.

     

    If you are admin running on XP and Win2K3 then maybe some other process is running on port 50000. Have you tried using some other port, 60000, say?

     

    In MSRS 1.5 you can query to see which user(s) have been registered to use the HTTP listener on port 50000 like this:

     

    Code Snippet

    httpreserve /p:50000 /q

     

    Henrik

    Monday, July 9, 2007 9:13 PM
  •  

    I am using Windows XP SP2 upgraded from Home edition. I have tried several other ports and still get the same error. (Note: I am using version 1.0)

     


    "C:\Microsoft Robotics Studio (1.0)>dsshost /port:60000
    *** Initialization failed in DSS boot loader: Could not start HTTP Listener.

        The two most common causes for this are:
     1) You already have another
        program listening on the specified port
     2) You dont have permissions to
        listen to http requests. Use the httpreserve command line utility to run
        using a non-administrator account.
     Exception message: Incorrect function

    C:\Microsoft Robotics Studio (1.0)>"

     

    Regards

     

     

    Wednesday, July 11, 2007 2:23 AM
  • Do you still get the error after using httpreserve? BTW, Microsoft Robotics Studio 1.5 was just released early this week. Can you try the new version?

     

    Thanks

     

    Wednesday, July 11, 2007 6:42 PM
  • Yes, I still get the problem even after using httpreserve

     

     

    Setting environment for using Microsoft Visual Studio 2005 x86 tools.

    C:\Microsoft Robotics Studio (1.0)>httpreserve /userTongue Tiedal /port:50040
    Port 50040 reserved.

    C:\Microsoft Robotics Studio (1.0)>dsshost /port:50040
    *** Initialization failed in DSS boot loader: Could not start HTTP Listener.

        The two most common causes for this are:
     1) You already have another
        program listening on the specified port
     2) You dont have permissions to
        listen to http requests. Use the httpreserve command line utility to run
        using a non-administrator account.
     Exception message: Incorrect function

    C:\Microsoft Robotics Studio (1.0)>

     

    Regards

     

    Thursday, July 12, 2007 7:17 PM
  • This is strange. For testing this I would try installing MSRS on another machine or on Virtual PC.
    Thursday, July 12, 2007 7:25 PM
  • This is a wild guess but is it possible you're running some anti-virus/personal firewall software that's preventing you from binding to the port?  Can you run other any other services (eg IIS)?

    R


    Thursday, July 12, 2007 11:42 PM
  • i´m using vista and i can run it what can i do?

    Monday, September 3, 2007 10:54 AM