Tuesday, 28 July 2009

The type initializer for 'Sitecore.Search.SearchManager' threw an exception

If you get this (or similar) error, check that the version of the Sitecore.Kernel.dll referenced by class libraries is the same as used by the web site. It fixed a problem I had anyway!

2 comments:

EconomicFarce said...

Hey Neil,

I'm having the same problem that you were having in this post it seems and can't really find much data about it on the internet other than your brief post. Unfortunately, from your post I'm not entirely sure how to go about solving tho problem. Could you give me some more information as to what steps you actually took to resolve the issue? Thanks!

Neil Pullinger said...

Hi,
I had several projects in my Visual Studio solution. I just needed to make they were all referencing the same kernel DLL. I put the kernel in a "depends" directory. In my web site and all projects that use it, I point to that DLL (ie. don't have separate kernel DLLs per project). Hope this makes sense!