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

AnswerThe binding handle is invalid with Web applications in Visual Studio RTM

  • Wednesday, November 16, 2005 12:17 PMswami2 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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 AMMnimonic Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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 PMprogrammer 2006 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    but i donot have terminal service
  • Sunday, July 02, 2006 5:24 AMMnimonic Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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 PMsenfo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    So can anybody explain why this fixed it?
  • Tuesday, September 12, 2006 9:52 PMNiC_72 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Thanks Swami, 

    It works fine now.  

  • Thursday, October 12, 2006 8:26 PMMedezark Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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 AMJohn Cunningham - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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 PMCCalhoun Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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 PMHamid Sirat Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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 AMsatish VSKP Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer

     Thanks,

    It works for me .....

    • Proposed As Answer bygguysinger Monday, June 09, 2008 7:15 PM
    •  
  • Thursday, October 04, 2007 7:23 PMkannan_poem1984 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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 PMkannan_poem1984 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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 AMfieda Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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 PMMahendra Ghedia Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks buddy... its working for me...

     

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

     

  • Tuesday, June 03, 2008 6:17 PMgguysinger Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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 PMtharakaw Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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 AMvijeyan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
     Nice solutions. It is working. Great!

    Vijay
  • Monday, September 01, 2008 4:22 PMdancinmoonlit Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
     

    That works like charm buddy. Thank you.

  • Wednesday, July 22, 2009 3:48 PMHitesh P Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thank you Swami2,

    This was very helpful.