SQL Server Management Studio (SSMS): The Visual Studio component cache is out of date. Please restart Visual Studio.

  • Sandro Pereira
  • Sep 13, 2017
  • 2 min read

This strange error does not occur often, perhaps from time to time, or in different environments, but in reality, I already had the “privilege” of encountering it more than once while I was trying to open the SQL Server Management Studio (SSMS):

The Visual Studio component cache is out of date. Please restart Visual Studio.

The Visual Studio component cache is out of date. Please restart Visual Studio.

Not really a BizTalk Server problem, but you know that behind the curtains, BizTalk Server relies on SQL Server

📝 One-Minute Brief

A troubleshooting note that explains why SQL Server Management Studio fails with the error “The Visual Studio component cache is out of date” and how clearing temporary files or using Disk Cleanup quickly resolves the issue.

Cause

The cause of this problem is unclear, and I wish I could provide a better explanation. In fact, there is an issue open in MSFT about this.

I just assume that something may have happened, maybe an update or something similar, that left something in a corrupt or incorrect state… but despite that, the resolution to this problem is quite simple.

Solution

As I said above, the resolution to this problem is quite simple, and you may have several approaches to accomplish that. One of them is to manually remove all the temporary files from the Windows operating system by:

  • Exit all programs and then hold down the WINDOWS key and type R to open the Run window.
  • In the Run window, type %TMP% and then click OK.
  • This will open the TEMP directory, which is normally C:\Users\<your_user_name>\AppData\Local\Temp.
  • Select and delete all the content of the TEMP folder.

This approach always solved my problem.

But you can also try a different approach to do the same operations as:

  • Open the Disk Cleanup utility.
  • Make sure you select the Temporary files option, then click OK.
The Visual Studio component cache is out of date. Please restart Visual Studio solution
  • When prompted, select Delete Files.

Again, if you try to open Microsoft SQL Server Management Studio now, the Visual Studio component cache is out of date. Please restart the Visual Studio solution error message will have disappeared.

#1 Azure Monitoring Platform

Hope you find this helpful! If you liked the content or found it useful and would like to support me in writing more, consider buying (or helping to buy) a Star Wars Lego set for my son. 

Thanks for Buying me a coffe
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

47 thoughts on “SQL Server Management Studio (SSMS): The Visual Studio component cache is out of date. Please restart Visual Studio.”

  1. Perfect solution! I moved the temporary files into a new “Deleted” folder within the Temp folder just in case I needed any of those 100s of temporary files. After the move, everything seems fine. The issue occurred because Windows restarted unexpectedly after some updates.

  2. Repair also worked for me:

    Control PanelAll Control Panel ItemsPrograms and Features>>Microsoft Sql Server 2016 setup>> Repair

    Thanks

  3. Thanks to upload solution for this problem, by the way first step helpful to resolve my problem. You are real guy that helps of world without any benefit. That’s real thing which isolate and make a real man.

    Very Very thank you

Leave a Reply

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

The Ultimate Cloud
Management Platform for Azure

Supercharge your Azure Cost Saving

Learn More
Turbo360 Widget

Back to Top