Disclaimer

Any opinions expressed here are my own and not necessarily those of my employer (I'm self-employed).

Aug 3, 2011

VS2010 remote debugging and Windows 7 firewall

*Update, 2011/09/16: The issue has been fixed in the next major release of Visual Studio.

I've had some trouble getting remote debugging going for a development server at work. Turns out there are some oddities in the way VS 2010 creates and manages the firewall entries that let the remote machine connect back to the local computer. You'd might want to read this before checking out the MSDN articles:  How to: Set Up Remote DebuggingHow to: Configure the Windows 7 Firewall for Remote Debugging.

I was working with a development server that had the remote debugging monitor installed. Others have been debugging on the server, so I was sure that the server was set up correctly. I was pretty sure my problems were caused by the setup on my local machine.

If you lack firewall rules for remote debugging, VS2010 detects this and asks you what to do:


Without giving it much thought I chose to "Unblock remote debugging from computers on the local network (subnet)". After all, the development server was somewhat "local." The remote debugging monitor reported that I connected to the server, but nothing more happened and I timed out with this error message: 
Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named 'xxxxxxx'. The Visual Studio Remote Debugger on the target computer cannot connect back to this computer. A firewall may be preventing communication via DCOM to the local computer.
I then realized that subnet was probably a keyword here, as the server was in the same domain but on a different subnet.



The problem was, I couldn't find a way to trigger the firewall configuration screen again so I had to resort to the MSDN articles mentioned above. If you read the instructions on MSDN, you'll learn that you should add VS2010 to the Allow programs and features list in the Windows 7 firewall settings.



Alas, Microsoft Visual Studio was there, but it was all gray and disabled (I've hidden my other firewall rules). It was impossible to change its settings, so this was a dead end. After looking through the firewall rules found under "Advanced Settings", I stumbled across the inbound rules created by VS2010 (I've rearranged the columns for readability):


If you delete these rules, restart VS2010, and attempt a remote debugging session, you'll be asked again to set up the firewall. I'f you chose "Unblock remote debugging from any computer", you'll get the following rules


The firewall now allows any machine to connect to your Visual Studio remote debugging ports. It doesn't seem like a very secure setting, especially if you connect your computer to untrusted networks every once in a while. And VS2010 still wasn't configurable in the Allow programs and features list, and I wasn't able to get the remote debugging session going. I kept running into the "Unable to connect" error. After tweaking the rules I was finally able to get everything up an running. I had to set the rule to apply to the "Domain" profile, since my computer was part of a domain.


Here are the resulting rules. These would probably make sense for any computer which is part of a domain (though you should tighten up the "Remote address" setting).


After manually updating the firewall rules, VS2010 also became configurable in the Allow programs and features list!


The VS2010 automagic firewall configuration feels somewhat unpolished. I consider it a bug that the firewall rules created by the wizard render VS2010 unconfigurable in Allow programs and features list. For the record, my VS2010 is fully patched.

I didn't find much help on the Internet so I decided to blog this — I assume I'm not the only fast clicking guy on the planet trying to remote debug with VS2010 from a Windows 7 computer that's part of a domain.

100 comments:

  1. I did all the steps mentioned, and I still can't get it to work. This windows security stuff is depressing.

    ReplyDelete
  2. Thank you. This post hepls me a lot.

    ReplyDelete
  3. 1. Go to Control Panel\System and Security\Windows Firewall\Allowed apps
    2. select "microsoft visual studio" in the list
    3. click "details..." button
    4. click "Network Types..." button
    5. tick "domain", "private", "public" options
    6. click ok

    done.

    ReplyDelete
  4. Vermont: Although your Tar High heel lost inside ACC event semifinals, they had Duke to the basics meant for most of the initial half. Justin Knutson, who's got formulated some sort of experienced circumference gameplay, together with a foul-free Fran Acai berry II include the first considerations.
    March Madness

    March Madness Live

    March Madness Live Stream

    March Madness 2017

    Yes, we all know Level Couple has never produced one more Some. That group, filled using skilled scorers which might additionally lock straight down opposing team, will be your partner's earliest
    March Madness 2017 Live

    ncaa March Madness

    ncaa march madness live

    ncaa tournament

    March Madness Bracket

    ncaa final four

    When you’re even now on the fence about that 8-9 game, or would like your consensus opinion on the Previous 3 recommendations, we’ve gained you taken care of with a standing of all 68 matchups inside contest. It's simple to together with help make your choice on some of those mid-major darlings you’ve ended up eyeing for worried potential.
    March Madness

    March Madness Live

    March Madness Live Stream

    March Madness 2017

    March Madness 2017 Live

    ncaa March Madness

    ncaa march madness live

    ncaa tournament

    March Madness Bracket

    ncaa final four

    Villanova: The very best over-all seedling. Inspite of the team’s point inside toughest region (the Distance, by means of matchups vs Duke in addition to SMU looming), Villanova’s three-man a particular problem core from Jalen Brunson, Josh Hart together with Kris Jenkins has the potential to reiterate when domestic champs.

    ReplyDelete
  5. Watch NFL Draft - 2017, Mock, Live Stream, Watch, Online, Tv Coverage. The first round of the NFL will take place Thursday night in Philadelphia, Pennsylvania.

    http://draft-nfl.org/

    NFL Draft

    The NFL Draft

    NFL Draft Live

    NFL Draft Live Stream

    NFL Draft Live Streaming

    NFL Draft 2017

    NFL Draft 2017 Live

    NFL Draft 2017 Live Stream

    2017 NFL Draft

    NFL Mock Draft

    NFL Mock Draft Live

    NFL Mock Draft 2017

    NFL Draft Bracket

    NFL Mock Draft Game

    NFL Mock Draft 2017 Live

    NFL Mock Draft 2017 Online

    NFL Mock Draft 2017 Live Stream

    Fans need to know what time to tune in to the NFL draft to see what their team will do with its top-10 overall pick.

    NFL Draft 2017: How it feels to be picked for the pro ranks.

    Comprehensive NFL Draft news, scores, standings, fantasy games, rumors, and more.

    ReplyDelete
  6. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging diebestenvpn

    ReplyDelete
  7. I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post  https://prywatnoscwsieci.pl

    ReplyDelete
  8. Just admiring your work and wondering how you managed this blog so well. It’s so remarkable that I can't afford to not go through this valuable information whenever I surf the internet!  we need privacy

    ReplyDelete
  9. Your post is very helpful to get some effective tips to reduce weight properly. You have shared various nice photos of the same. I would like to thank you for sharing these tips. Surely I will try this at home. Keep updating more simple tips like this. www.lemigliorivpn.com

    ReplyDelete
  10. Thanks for Nice and Informative Post. This article is really contains lot more information about This Topic.  vpn veteran

    ReplyDelete
  11. You’ve written nice post, I am gonna bookmark this page, thanks for info. I actually appreciate your own position and I will be sure to come back here.
    Escorts Services in Gurgaon
    Indepedent Escorts Services in Aerocity

    ReplyDelete
  12. Welcome to Gurgaon Escorts Services, We provide 100% satisfaction and safety with our very young beautiful Gurgaon Escort Girls. Female Escorts in Gurgaon - Independent Escorts in Gurgaon

    ReplyDelete
  13. I am doing a report on this subject. Your article is full of really useful information. I will make sure to come back to check out your posts for my next report. bezoek website

    ReplyDelete
  14. Pleasant article.Think so new type of elements have incorporated into your article. Sitting tight for your next article.
    Check Balance On Vanilla Mastercard

    ReplyDelete
  15. Thanks for sharing the wonderful information, we are providing some information on
    drone x pro
    photostick review

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. Check out photostick review. It is an amazing backup device that is quite popular these days.

    ReplyDelete
  18. گروه هنری آترینا

    ReplyDelete
  19. To be honest I found very helpful information your blog thanks for providing us such blog

    ReplyDelete
  20. Many people were facing this issue but now they have understood about it and it is beneficial for us that you provided knowledge with images because through this, every person can get solve his issue. Coursework writing services.

    ReplyDelete
  21. Nice and very knowledgable post, thanks for this, I really appreciate your hard work. Keep it up. TikiTunes Best Outdoor Bluetooth Speakers – Review

    ReplyDelete
  22. du hoc canada vnsava
    Chuyên du học Canada Công ty tư vấn du học Canada nào tốt
    Điều kiện du học Canada 2021
    Học bổng du học Canada vnsava

    vnsava
    Thông tin du học Canada mới nhất

    vnsava
    Chính sách du học Canada 2020
    vnsava
    Du học Canada bao nhiêu tiền Việt
    Học bổng du học Canada 2020
    vnsava
    Du học Canada 2020
    Nhất ký du học Canada
    vnsava
    Du học Canada nên học ngành gì
    công ty tư vấn du học Canada vnsava, chính sách điều kiện định cư Canada, học bổng, chi phí, điều kiện xin visa canada
    #vnsava
    @vnsava
    vnsava
    vnsava
    vnsava

    ReplyDelete
  23. I reallpy appriciate it thanks to share with us, Instahard Pills and Trim Fast Keto. Ny name is jerry and this works great

    ReplyDelete
  24. شرکت سهلان (سهلان نما)، از سال ۱۳۷۱ فعالیت حرفه ای خود را در زمینه صنعت سازه های نمایشگاهی و محصولات مرتبط، مبلمان و پارتیشن اداری آغاز نمود، امروز سهلان بزرگترین و شناخته شده ترین شرکت پیشرو در صنعت غرفه سازی، چادر های آلومینیومی، سوله های پیش ساخته، مبلمان و پارتیشن اداری و بسیاری محصولات دیگر میباشد.

    ReplyDelete
  25. طراحی و اجرای دکوراسیون داخلی منزل، دکوراسیون دخلی مجتمع های تجاری ، دکوراسیون داخلی مجتمع های اداری

    ReplyDelete
  26. جراح مغز و اعصاب و ستون فقرات

    ReplyDelete
  27. طراحی و اجرای کابینت mdf

    ReplyDelete
  28. طراحی و اجرای کابینت ام دی اف

    ReplyDelete
  29. طراحی و اجرای مابینت پرکار

    ReplyDelete
  30. طراحی و اجرای کابینت مدرن

    ReplyDelete
  31. طراحی و اجرای کابینت های گلاس

    ReplyDelete
  32. طراحی و اجرای کابینت هایگلاس

    ReplyDelete
  33. Excellent site. A lot of useful information here. I am sending it to several buddies ans additionally sharing in delicious. And of course,
    I really enjoyed reading this post, Thanks for sharing this wonderful post share with us,
    visit my blog.... naked

    ReplyDelete

  34. Anson’s 12 Best Love Poems Ever (to Make You Look Good on Valentine’s Day)

    In this anthology, the journalist and academic brings together the great romantic ‘hits’ of Lorca, Alberti, Lope de Vega, Borges or Rosalía de Castro.

    ReplyDelete
  35. The site in Adsmember continues to provide good services to its users in the field of buying Telegram members and buying Telegram membersbuy real telegram channel members adsmember
    fake member telegram adsmember

    ReplyDelete

  36. graphic designing course in delhi
    Aspirants who want to become successful graphic designers after completing their schooling or college can opt for this course.
    graphic designing course

    ReplyDelete
  37. Chicken shop Delhi For every meat-lover, having fresh chicken means a lot. Furthermore, As good food-lovers, we used to make sure to present our customer's hygienic & organic chicken from our online meat shop.


    Chicken shop Delhi

    ReplyDelete
  38. "`I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!
    Excellent read, Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.

    " antminer L7

    ReplyDelete
  39. I've been looking for photos and articles on this topic over the past few days due to a school assignment, and I'm really happy to find a post with the material I was looking for! I bookmark and will come often! Thanks . Very good written article. It will be supportive to anyone who utilizes it, including me. Keep doing what you are doing – can’r wait to read more posts. Looking at this article, I miss the time when I didn't wear a mask. Hopefully this corona will end soon. My blog is a blog that mainly posts pictures of daily life before Corona and landscapes at that time. If you want to remember that time again. 온카

    ReplyDelete
  40. I think the admin of this web site is in fact working hard in support of his web page, because here every information is quality based material.Wow, wonderful weblog layout! How lengthy have you ever been blogging for The total glance of your web site is magnificent, let alone the content! 파워볼사이트

    ReplyDelete
  41. Amazing!!! I like this website so much it’s really awesome. I have also gone through your other posts too and they are also very much appreciate able and I’m just waiting for your next update to come as I like all your posts. 안전놀이터

    ReplyDelete
  42. Wow that was strange. I just wrote an extremely long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyway, just wanted to say superb blog!| 안전놀이터순위

    ReplyDelete
  43. Through this post, I know that your good knowledge in playing with all the pieces was very helpful. I notify that this is the first place where I find issues I've been searching for. You have a clever yet attractive way of writing. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job It is perfect time to make some plans for the future and it is time to be happy. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Perhaps you could write next articles referring to this article. I want to read more things about it! 아도에이전트

    ReplyDelete
  44. Howdy! This is kind of off topic but I need some help from an established blog. Is it tough to set up your own blog? I’m not very techincal but I can figure things out pretty quick. I’m thinking about making my own but I’m not sure where to start. Do you have any points or suggestions? With thanks 온카맨

    ReplyDelete
  45. Fulfilling the nutrition balance of your body is a not easily possible with the daily appetite you intake although it is also time consuming to prepare those healthy appetites. An easy way is to have external support from nutrifactor Online supplement store in pakistan that has a huge variety of vitamins and supplements to give you your desired nutrition required to remain fit and healthy and maintain your desired appearance as well like enhancing hair, skin, nails, vision and much more.

    ReplyDelete
  46. I certainly thank you for writing this article well, hopefully it will become a reference in journals or other scientific writings and can help many people. thanks.

    ReplyDelete

  47. Excellent article and very good information has been given, I liked it very much and also I would like to tell about my website
    If someone wants to make his future in Graphic Designing and wants to have a bright future then definitely visit my website once.graphic designing course in delhi

    ReplyDelete
  48. Wirecast Pro 12 Free Download new and updated version for Windows. It is full offline installer standalone setup of Wirecast Pro 12 Free Download

    ReplyDelete
  49. Great article! I found your insights really helpful. In fact, I recently wrote a related piece on my blog. If you're interested, check it out [Elementor Review]. Keep up the excellent work!

    ReplyDelete
  50. This comment has been removed by the author.

    ReplyDelete
  51. ES File Explorer Android latest 4.4.0.2.1 APK Download and Install. ES File Explorer easily manages and shares all your local Android and Cloud files.

    ReplyDelete
  52. Download Temu APK latest version 1.15.0 by Temu - Fastest - Free - Safe for android devices. Team Up, Price Down!

    [url=https://solo.to/ahmadkhan]Temu Apk[/url]

    ReplyDelete

Copyright notice

© André N. Klingsheim and www.dotnetnoob.com, 2009-2018. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to André N. Klingsheim and www.dotnetnoob.com with appropriate and specific direction to the original content.

Read other popular posts