The binding handle is invalid with Web applications in Visual Studio RTM
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
Answers
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
- but i donot have terminal service
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
- So can anybody explain why this fixed it?
Thanks Swami,
It works fine now.

- 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.
There's a dependency in the debugger on a process enumeration API. We are removing that requirement in a future version.
John
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
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!!!
Thanks,
It works for me .....
- Proposed As Answer bygguysinger Monday, June 09, 2008 7:15 PM
When I tried to debug the Sample application with RTM, it gives the following error.
Unable to attach. The binding handle is invalidbut 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
When I tried to run the website application in vs 2005, it gives the following error.
Unable to attach. The binding handle is invalidbut 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
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???...
- Thanks buddy... its working for me...
- what a weird thing, terminal services for debugging, wow. It also worked for me. Thanks.
- CCalhoun, did you ever find a solution to error 1508? I had the same experience and haven't solved it yet.
- 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
- Nice solutions. It is working. Great!
Vijay That works like charm buddy. Thank you.
- Thank you Swami2,
This was very helpful.


