I'm trying to load one of Microsoft's own resource files so that I can use values contained within in an extended SearchBox web part.
My code to load the resource file is as follows:
Assembly searchAssembly = System.Reflection.Assembly.Load( "Microsoft.Office.Server.Search, Version=188.8.131.52, Culture=neutral, PublicKeyToken=71e9bce111e9429c"); ResourceManager s_rmLocStrings = new ResourceManager( "Microsoft.Office.Server.Search", searchAssembly);
However, I get the following error:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Microsoft.Office.Server.Search.resources" was correctly embedded or linked into assembly "Microsoft.Office.Server.Search" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Microsoft.Office.Server.Search.resx (and it's localised version) are both in the app_globalresources, so I think I'm just referring to the resx in the wrong way.