Visual Studio Developer Center > Visual Studio Forums > Visual Studio Debugger > The binding handle is invalid with Web applications in Visual Studio RTM

Answered The binding handle is invalid with Web applications in Visual Studio RTM

  • Wednesday, November 16, 2005 12:17 PM
     
     

    Hi,

    When I tried to debug the Sample application with RTM, it gives the following error.


    Unable to attach. The binding handle is invalid

    To resolve this error I made changes in Administrative Tools
    à Servicesà Terminal Services.

    I had changed the properties of this service that is I had changed Startup Type as Manual and started the service and after that restarted my system.


    Now Debugging is working perfectly.

    Hope this helps Smile

Answers

  • Sunday, July 02, 2006 5:24 AM
     
     Answered

    Thanks mate.

    You are absolutely correct, same thing happend to me. I just set the Terminal Service "Startup type" to Automatic and then it allowed me to start the service.

    It worked like a charm!

    Oh BTW I was using Visual Web Developer 2005 Express

All Replies

  • Saturday, May 13, 2006 2:22 PM
     
     
    but i donot have terminal service
  • Sunday, July 02, 2006 5:24 AM
     
     Answered

    Thanks mate.

    You are absolutely correct, same thing happend to me. I just set the Terminal Service "Startup type" to Automatic and then it allowed me to start the service.

    It worked like a charm!

    Oh BTW I was using Visual Web Developer 2005 Express

  • Wednesday, July 26, 2006 5:40 PM
     
     
    So can anybody explain why this fixed it?
  • Tuesday, September 12, 2006 9:52 PM
     
     

    Thanks Swami, 

    It works fine now.  

  • Thursday, October 12, 2006 8:26 PM
     
     
    Why in the world would Terminal Server be necessary to debug?  Anybody?  This isn't just with web applications.  I'm writing (I thought) a simple windows app.  Same error, same solution. In my opinion, unless someone can give me a valid reason otherwise, this looks like a big, hairy, multi-legged bug.
  • Friday, November 03, 2006 12:18 AM
    Moderator
     
     

    There's a dependency in the debugger on a process enumeration API.  We are removing that requirement in a future version.

    John

  • Wednesday, November 22, 2006 1:38 PM
     
     

    I am getting this same "binding Handle is invalid" error with Visual Web Developer 2005 Express Edition installed on a Windows XP Pro machine. When I attempt to start the Terminal Services service, I get an error 1058 - the service cannot be started, either because it is disabled, or because it has no enabled devices associated with it.

    I can't seem to find any solution to that issue. Any help here?

    Thanks

  • Tuesday, June 05, 2007 3:38 PM
     
     

    I get this error when I run my web application using ms visual studio 2005 on my laptop.  Don't know what this has anything to do with Terminal Services, but following your directions made this error disappear.  THANK YOU!!!

  • Wednesday, August 01, 2007 9:43 AM
     
     Proposed Answer

     Thanks,

    It works for me .....

    • Proposed As Answer by gguysinger Monday, June 09, 2008 7:15 PM
    •  
  • Thursday, October 04, 2007 7:23 PM
     
     

    When I tried to debug the Sample application with RTM, it gives the following error.


    Unable to attach. The binding handle is invalid


    but when i searched in this forum , people told to start terminal service automatic.. so on


    but.. here in my case i cant find my terminal service in my services . what can i do. please help me


    regards


    kannan

  • Thursday, October 04, 2007 7:24 PM
     
     

    When I tried to run the website  application in vs 2005, it gives the following error.


    Unable to attach. The binding handle is invalid


    but when i searched in this forum , people told to start terminal service automatic.. so on


    but.. here in my case i cant find my terminal service in my services . what can i do. please help me


    regards


    kannan

  • Monday, November 12, 2007 2:42 AM
     
     

    Yeah..It also haapened to me..I can't debug Visual Studio 2005..Some more I also can't find the Terminal Service in services..Is it other places that I can configure it???...

     

  • Wednesday, December 12, 2007 9:31 PM
     
     
    Thanks buddy... its working for me...

     

  • Monday, March 31, 2008 3:59 AM
     
     
    what a weird thing, terminal services for debugging, wow.  It also worked for me. Thanks.

     

  • Tuesday, June 03, 2008 6:17 PM
     
     
    CCalhoun, did you ever find a solution to error 1508?   I had the same experience and haven't solved it yet.
  • Friday, July 04, 2008 6:15 PM
     
     
    fieda said:

    Yeah..It also haapened to me..I can't debug Visual Studio 2005..Some more I also can't find the Terminal Service in services..Is it other places that I can configure it???...

     Try running msconfig, and enabeling terminal services in services tab there



  • Wednesday, August 20, 2008 6:01 AM
     
     
     Nice solutions. It is working. Great!

    Vijay
  • Monday, September 01, 2008 4:22 PM
     
     
     

    That works like charm buddy. Thank you.

  • Wednesday, July 22, 2009 3:48 PM
     
     
    Thank you Swami2,

    This was very helpful.