Windows 10 Firewall blocking Visual Studio [SOLVED]

Tashreef Shareef
by Tashreef Shareef
Windows & Software Expert
Tashreef Shareef is a software developer turned tech writer. He discovered his interest in technology after reading a tech magazine accidentally. Now he writes about everything tech from Windows to iOS and streaming services... Read more
Affiliate Disclosure
Solved Visual Studio Blocked by Firewall
To fix various PC problems, we recommend DriverFix: This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:
  1. Download DriverFix (verified download file).
  2. Click Start Scan to find all problematic drivers.
  3. Click Update Drivers to get new versions and avoid system malfunctionings.
  • DriverFix has been downloaded by 0 readers this month.

If you are using Visual Studio.Net for development purpose, you might have issues with Windows 10 Firewall blocking Visual Studio. The full error reads Failed to queue test run: Windows Firewall is preventing your tests from running. To allow tests to run, you must first add Microsoft Visual Studio to the Windows Firewall exceptions list.

This can also happen due to third-party internet security software.

Here are a couple of troubleshooting tips that can help you to fix Windows 10 firewall blocking Visual Studio error.

How do I stop Firewall from blocking Visual Studio?

1. Add Visual Studio to Firewall Exception List

  1. Now, this is a very obvious solution to this. You need to add Visual Studio to the Firewall exception list. If you haven’t done already, here is how to do it.
  2. Press Windows Key + R to open Run.
  3. Type Control and click OK.
  4. Click on System and Security.
  5. Click on Windows Defender Firewall.
  6. From the left pane click on “Allow an app or feature through Window Defender Firewall“.
    Windows 10 firewall blocking visual studio
  7. Click on Change Settings button.
  8. Now scroll through all the apps and locate Visual Studio.
  9. If you don’t find Visual Studio in the list of allowed apps, then click on Allow another app button.Windows 10 firewall blocking visual studio
  10. Click the Browse button and navigate to your Visual Studio installation.
  11. Select the .exe file in the Visual Studio installation folder and click Open. Click the Add button.
    Windows 10 firewall blocking visual studio
  12. That’s it. Visual Studio is now added to the exception list.
  13. Click OK to save the changes.
  14. Now add the following executable files from Visual Studio to the exception list from the same installation folder.
    devenv.exe
    mstest.exe
    mtm.exe
     vstest.executionengine.x86.exe or / vstest.executionengine.exe
  15. Restart the computer and launch Visual Studio and check if the error is resolved.

Learn how to allow programs to freely communicate through Windows Firewall with these steps.


2. Check third-party Firewall

Windows 10 firewall blocking visual studio

  1. If you are using third-party antivirus on your Windows computer it is possible that it may also come with its own firewall.
  2. Launch the third-party antivirus software and check the Firewall settings.
  3. If required, add the aforementioned files to the exception list and save the changes.
  4. Restart the system and check for any improvements.

3.  Disable Firewall

  1. Click on Start and select Settings.
  2. Click on Update and Security.
  3. Select Windows Security.
    Windows 10 firewall blocking visual studio
  4. Click on Firewall and Network Protection.
  5. Click on your currently active network (Private / Public / Domain).Windows 10 firewall blocking visual studio
  6. Turn off the Firewall for the selected network.
    Windows 10 firewall blocking visual studio
  7. Now launch Visual Studio again and check for the error. If the issue persists, disable Firewall for the remaining networks as well.
  8. Check again for any improvements.

Also, disable the third-party Firewall temporarily to check if that is causing the error.

Following the steps in this article should resolve any issues with the Firewall and Visual Studio.

RELATED STORIES YOU MAY LIKE:

This article covers:Topics:

There are no comments yet. Please leave a comment

add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *