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
- 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.
- Press Windows Key + R to open Run.
- Type Control and click OK.
- Click on System and Security.
- Click on Windows Defender Firewall.
- From the left pane click on “Allow an app or feature through Window Defender Firewall“.
- Click on Change Settings button.
- Now scroll through all the apps and locate Visual Studio.
- If you don’t find Visual Studio in the list of allowed apps, then click on Allow another app button.
- Click the Browse button and navigate to your Visual Studio installation.
- Select the .exe file in the Visual Studio installation folder and click Open. Click the Add button.
- That’s it. Visual Studio is now added to the exception list.
- Click OK to save the changes.
- Now add the following executable files from Visual Studio to the exception list from the same installation folder.
vstest.executionengine.x86.exe or / vstest.executionengine.exe
- Restart the computer and launch Visual Studio and check if the error is resolved.
2. Check third-party Firewall
- If you are using third-party antivirus on your Windows computer it is possible that it may also come with its own firewall.
- Launch the third-party antivirus software and check the Firewall settings.
- If required, add the aforementioned files to the exception list and save the changes.
- Restart the system and check for any improvements.
3. Disable Firewall
- Click on Start and select Settings.
- Click on Update and Security.
- Select Windows Security.
- Click on Firewall and Network Protection.
- Click on your currently active network (Private / Public / Domain).
- Turn off the Firewall for the selected network.
- Now launch Visual Studio again and check for the error. If the issue persists, disable Firewall for the remaining networks as well.
- 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: