How to remove server from server explorer list in Visual Studio

gagrim808 91 Reputation points
2025-07-25T15:15:51.3633333+00:00

I am sorry if the tag is wrong. I could not find a visual studio tag.

The issue is that I have by mistake connected to my own pc as a 'Windows Server' and now it is showing up in the Server Explorer of Visual Studio 2022. I am able to view 'Event Logs', 'Services' and whatnot. Actually, I wanted to connect to my SQL server which is also on the pc itself.

Now, when I try deleting it from the list, it temporarily works but as soon as I reload the server explorer or restart visual studio, it shows up again.

I have already tried deleting 'ServerExplorer' folder in roaming app data. There were some other suggestions like deleting 'ServerExplorersettings.settings' and 'DataConnection.xml', but I am unable to find any of these files in the respective directories.
Please help and let me know where the connected servers' list is saved by visual studio so that I may delete it manually.

Developer technologies | Visual Studio | Setup
{count} votes

2 answers

Sort by: Most helpful
  1. Adiba Khan 245 Reputation points Microsoft External Staff
    2025-07-29T10:36:51.77+00:00

    You can follow the following steps:

    1.      Delete from Registered Servers (Manually)

    Check the local user configuration:

    ·         Path:

    %APPDATA%\Microsoft\VisualStudio17.0_xxxxx

    Replace 17.0_xxxxxwith your actual Visual Studio version folder.

    ·         Look for files like:

    ServerExploreSettings.settings

    DataConnections.xml

    DataSources.xml

    If you can’t find these, ensure hidden items are visible and you’re looking under the right user profile.

    2.      Use SQL Server Object Explorer (SSOE) instead

    If you are working with databases only, consider using SQL Server Object Explorer which offers more reliable connection management for SQL-based sources.

    3.      Reset Visual Studio Settings

    If nothing works:

    Devenv /resetsettings

    This will reset all VS settings to default. Only do this if you’re okay losing other custom configurations.

     

    Hope this helps. Please let me know if you have any other query.

     

     

     


  2. Lara 20 Reputation points
    2025-08-04T15:17:48.87+00:00

    This error usually occurs due to permission issues, corrupted cache, or network restrictions. Here are steps you can try to resolve it:

    1. Run the Installer as Administrator

    Right-click on the Visual Studio InstallerRun as Administrator This ensures the installer has proper permissions to access system and network resources.


    1. Clear the Visual Studio Installer Cache

    Corrupted cache files often cause download failures.

    Press Windows + R, type:

    %ProgramData%\Microsoft\VisualStudio\Packages
    

    Delete all contents in this folder.

    Then clear the installer cache:

    %ProgramData%\Microsoft\VisualStudio\Installer
    

    Delete all contents in this folder as well.


    1. Check Proxy, VPN, and Firewall Settings

    Temporarily disable any VPN or proxy.

    Ensure your firewall or antivirus isn’t blocking the installer.

    Add exceptions for:

    *.visualstudio.com
    *.microsoft.com
    

    1. Use the Offline Layout Installer (If Issue Persists)

    If downloads still fail, use the offline installer to bypass network issues:

    vs_enterprise.exe --layout C:\VS2022Offline --lang en-US
    

    (Replace vs_enterprise.exe with the installer for your edition, e.g., Community or Professional.)


    1. Ensure Required Services Are Running

    Open services.msc and confirm the following services are running:

    Windows Update

    Background Intelligent Transfer Service (BITS)


    1. Reinstall the Visual Studio Installer

    If none of the above works, uninstall and reinstall the Visual Studio Installer from the official Visual Studio website.


    Would you like me to:

    Make this shorter and concise for a quick answer, or

    • **Keep it detailed like this for a full professional response?**Here’s a professional answer you could post to the question “How can I fix the 'Unable to download installation files' error in Visual Studio Installer?”: Answer:
      This error usually occurs due to permission issues, corrupted cache, or network restrictions. Here are steps you can try to resolve it:
      1. Run the Installer as Administrator
      • Right-click on the Visual Studio InstallerRun as Administrator
        This ensures the installer has proper permissions to access system and network resources.
      1. Clear the Visual Studio Installer Cache
      Corrupted cache files often cause download failures.
      • Press Windows + R, type:
            %ProgramData%\Microsoft\VisualStudio\Packages
        
        Delete all contents in this folder.
      • Then clear the installer cache:
            %ProgramData%\Microsoft\VisualStudio\Installer
        
        Delete all contents in this folder as well.
      1. Check Proxy, VPN, and Firewall Settings
      • Temporarily disable any VPN or proxy.
      • Ensure your firewall or antivirus isn’t blocking the installer.
      • Add exceptions for:
            *.visualstudio.com
        

    *.microsoft.com ```

    1. Use the Offline Layout Installer (If Issue Persists)

    If downloads still fail, use the offline installer to bypass network issues:

      vs_enterprise.exe --layout C:\VS2022Offline --lang en-US
    

    (Replace vs_enterprise.exe with the installer for your edition, e.g., Community or Professional.)

    1. Ensure Required Services Are Running

    Open services.msc and confirm the following services are running:

    • Windows Update
    • Background Intelligent Transfer Service (BITS)
    1. Reinstall the Visual Studio Installer

    If none of the above works, uninstall and reinstall the Visual Studio Installer from the official Visual Studio website.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.