When you try to use the Remote Debugging Monitor (Msvsmon.exe) in Microsoft Visual Studio on a Windows Vista-based computer, you may receive the following error message in the
Configure Firewall for Remote Debugging dialog box:
The Windows Firewall is currently blocking remote debugging.
When you try to unblock the Remote Debugging Monitor, you receive the following error message:
Could not configure the Windows Firewall. Incorrect function.
To resolve this problem, follow these steps:
- Manually set the Windows Firewall settings to unblock the Remote Debugging Monitor. For more information, visit the following Microsoft Developer Network (MSDN) Web site:
- Click Start
Collapse this imageExpand this image
, type msvsmon /nofirewallwarn in the Start Search box, and then press ENTER.
To work around this problem, follow these steps:
- Click Start
Collapse this imageExpand this image
, type Notepad in the Start Search box, and then press ENTER. - Copy the following lines to Notepad.
netsh advfirewall firewall add rule name="Microsoft Visual Studio Remote Debugging Monitor - UDP 137" dir=in action=allow enable=yes localport=137 protocol=udp
netsh advfirewall firewall add rule name="Microsoft Visual Studio Remote Debugging Monitor - UDP 138" dir=in action=allow enable=yes localport=138 protocol=udp
netsh advfirewall firewall add rule name="Microsoft Visual Studio Remote Debugging Monitor - TCP 139" dir=in action=allow enable=yes localport=139 protocol=tcp
netsh advfirewall firewall add rule name="Microsoft Visual Studio Remote Debugging Monitor - TCP 445" dir=in action=allow enable=yes localport=445 protocol=tcp
- In Notepad, click Save on the File menu.
- In the File name field, type file_name.bat, and then click Save.
- Run the batch file.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.