Load SearchFacets webpart at runtime

Nov 16, 2010 at 7:45 AM

Hi All,

I have a requirement to load Facet webparts to load in a search page at runtime, it's to be loaded in results.aspx, For which I have written the code,

but problem is I can't find the "Microsoft.SharePoint.Portal.ExtendedSearch" dll in refrences, dll is there in GAC, facets are working on a test page in search center.

But I am not able to add reference to dll in my project. Only difference I found is, "Microsoft.SharePoint.Portal.ExtendedSearch" is of .Net Framework 2.0 and my project's .Net Framework version is 3.5, and in add reference window in .NET tab it says "Filtered to: .Net Framework 3.5" I wanted to add reference to dll from GAC not from,
C:\Inetpub\wwwroot\wss\VirtualDirectories\{PortNumber}\bin\Microsoft.SharePoint.Portal.ExtendedSearch.dll

Please let me know if someone has done this.