SQL Search Addin failing to load

A free Management Studio add-in to search for SQL in your databases

Moderators: JonathanWatts, David Atkinson, Anu Deshpande, Paul Stephenson, Michelle Taylor, Mike Upton, Adam, justin.caldicott

SQL Search Addin failing to load

Postby HeavenCore » Fri Jul 08, 2011 11:15 am

Hi all, i have been using SQL Search fine for years, however, i now have the following error when trying to load MSSMS:

---------------------------
Microsoft SQL Server Management Studio
---------------------------
The Add-in 'SQL Search 1.0' failed to load or caused an exception.
Would you like to remove this Add-in?
If you choose yes, you will need to reinstall the Add-in to use it again.

Error Message: The system cannot find the file specified.

Error number: 80070002
---------------------------
Yes No
---------------------------


Any ideas?

I have tried a re-install, that did not seem to fix the problem.
HeavenCore
 
Posts: 10
Joined: Fri Jul 08, 2011 11:13 am

Postby saintperez » Tue Sep 13, 2011 4:06 pm

I'm having the same issue, did you ever find a resolution?
saintperez
 
Posts: 1
Joined: Tue Sep 13, 2011 4:04 pm
Location: Boca Raton, FL

Postby HeavenCore » Tue Sep 13, 2011 4:43 pm

Afraid not m8, although i must admit i never spent much time on it - Quite often i have a gazillion scripts open etc, restarting MSSMS is a very rare event lol
HeavenCore
 
Posts: 10
Joined: Fri Jul 08, 2011 11:13 am

Postby Brian Donahue » Tue Sep 13, 2011 4:49 pm

It's really, really generic and you have to find out which file can't be loaded. I think most of the time it's Microsoft Extensibility DLL. But you can try enabling fusion logging and it may help.

  • Create a DWORD registry value HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Fusion\\LogFailures and set it to 1
  • Create a string value HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Fusion\\LogPath and set it to an existing directory
  • Launch SSMS and see if a log file pops up in the "default" subfolder of the LogPath.


This can tell you about the missing file, if it's a .NET mamanged assembly (like SQL Search's DLL).
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby john.hunter » Mon Sep 19, 2011 1:58 pm

Hi there I have the same issue

There are several assemblies the framework reports it cannot find:
RedGate.Shared.Utils
RedGate.SQLSearch.Loader
RedGate.SSMSIP
RedGate.SSMSIP.CommonUI
RedGate.SSMSIP.Engine
RedGate.SSMSIP.Loader
john.hunter
 
Posts: 5
Joined: Thu Jul 30, 2009 2:06 pm

Postby Brian Donahue » Mon Sep 19, 2011 2:16 pm

All these reports should say exactly what paths were being searched. You can make sure the assembies are there.

Also this is a half-solution -- the file may not be a .NET assembly. It may be a COM dll or something.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby Brian Donahue » Mon Sep 19, 2011 2:43 pm

You may want to try running regasm against RedGate.SqlSearch.AddIn.dll. Could be that the object is registered with COM at the wrong file path or the registry is corrupt.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby john.hunter » Thu Sep 22, 2011 10:40 am

I think there is something else wrong here and the missing files are a result error.

SSMS is looking for these assemblies its program files folder (C:\\Program Files (x86)\\Microsoft SQL Server\\100\\Tools\\Binn\\VSShell\\Common7\\IDE)

where as all the assemblies seem to be in C:\\Windows\\Downloaded Installations\\{25E61246-CE80-C48D-E730-2906DF476E0B}\\Red Gate\\SSMSIP\\Source

I don't think that copying the missing assemblies into the SSMS folder is the correct solution here.
john.hunter
 
Posts: 5
Joined: Thu Jul 30, 2009 2:06 pm

Postby Brian Donahue » Thu Sep 22, 2011 11:40 am

Er...
It should be looking in the program files (or programdata Vista+) folder. SSMS does try to look for them in it's own trusted location, which you point out in the previous post. Maybe you should log binding success as well as failure so you can make sure the DLL is being loaded successfully and where from.

Mine loads from C:\\ProgramData\\Red Gate\\SQL Search\\Active\\RedGate.SQLSearch.Addin.dll
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby Brian Donahue » Thu Sep 22, 2011 12:02 pm

You should also make sure you're on this version. ftp://support.red-gate.com/patches/SQL_ ... .0.342.zip
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby john.hunter » Thu Sep 22, 2011 12:59 pm

aha thats it the files were missing from
C:\\ProgramData\\Red Gate\\SSMSIP\\Active\\ when I put them in there it all started working.

thanks for the help there.
john.hunter
 
Posts: 5
Joined: Thu Jul 30, 2009 2:06 pm


Return to SQL Search 1

Who is online

Users browsing this forum: No registered users and 1 guest