Applies to
ApexSQL Refactor
Summary
This article shows what should be done when “System.IO.FileNotFoundException” is displayed
SymptomsWhen starting Microsoft SQL Server Management Studio, “System.IO.FileNotFoundException” is displayed
Cause
Some system libraries are missing in the PublicAssemblies catalog
Resolution
- Check whether the Microsoft.VisualStudio.CommandBars.dll library exists in one of the following locations
- Locate the folder with Global Assembly Cache Tool gacutil.exe. Execute the following CLI command in the gacutil.exe directory
x:/Program Files/Microsoft Visual Studio/Common/7IDEPublicAssemblies/
x:/ProgramFiles/CommonFiles/MicrosoftShared/MSEnvPublicAssemblies/
If there is no such file in the mentioned locations, try reinstalling SQL Server client components using the SQL Server installer
gacutil /l Microsoft.VisualStudio.CommandBars
If nothing is returned, run the following command to add the missing *.DLL to the Global Assembly Cache
gacutil /i [Full path to the Microsoft.VisualStudio.CommandBars.dll]
About ApexSQL Refactor
ApexSQL Refactor is a SQL formatter and database refactoring tool for SQL Server. Format SQL queries, refactor SQL code, database tables and much more
Last updated
July 30, 2012