Visual Studio 2005 Remote Debugging to Vista

When you run MSVSMON.EXE on Vista, do you get the dreaded message indicating that you need to set the firewall, but when you do, MSVSMON.EXE errors out with an Incorrect Function message? After much struggle, I finally found the trick to remote debugging working correctly. Many thanks to this post on the MSDN Forums from Sam George.

It seems that even with the Vista SP1 Update, MSVSMON.EXE does not properly set the firewall. You’ll need to set it up manually with the following batch file:

netsh advfirewall firewall add rule name=”Microsoft Visual Studio Remote Debugger – UDP 137″ dir=in action=allow enable=yes localport=137 protocol=udp

netsh advfirewall firewall add rule name=”Microsoft Visual Studio Remote Debugger – UDP 138″ dir=in action=allow enable=yes localport=138 protocol=udp

netsh advfirewall firewall add rule name=”Microsoft Visual Studio Remote Debugger – TCP 139″ dir=in action=allow enable=yes localport=139 protocol=tcp

netsh advfirewall firewall add rule name=”Microsoft Visual Studio Remote Debugger – TCP 445″ dir=in action=allow enable=yes localport=445 protocol=tcp

Of course, make sure you run the batch file from an elevated command prompt.

John Robbins

Recent Posts

8-Step AWS to Microsoft Azure Migration Strategy

Microsoft Azure and Amazon Web Services (AWS) are two of the most popular cloud platforms.…

3 weeks ago

How to Navigate Azure Governance

 Cloud management is difficult to do manually, especially if you work with multiple cloud…

4 weeks ago

Why Azure’s Scalability is Your Key to Business Growth & Efficiency

Azure’s scalable infrastructure is often cited as one of the primary reasons why it's the…

1 month ago

Unlocking the Power of AI in your Software Development Life Cycle (SDLC)

https://www.youtube.com/watch?v=wDzCN0d8SeA Watch our "Unlocking the Power of AI in your Software Development Life Cycle (SDLC)"…

2 months ago

The Role of FinOps in Accelerating Business Innovation

FinOps is a strategic approach to managing cloud costs. It combines financial management best practices…

2 months ago

Azure Kubernetes Security Best Practices

Using Kubernetes with Azure combines the power of Kubernetes container orchestration and the cloud capabilities…

2 months ago