.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Search Autocomplete: The given key was not present in the dictionary

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
Hello there! I am having difficulty with my search autocomplete. Below is all the code and error logs. Why am i getting "The given key is not present in the dictionary" when i try accessing the ashx file / searching? Can't seem to find the answer....   AutoCompletePeople.ashx (placed in the _layouts) folder <%@ WebHandler Language="C#" Class="GenericHandler1" %> <%@ Assembly Name="Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Assembly Name="Microsoft.Office.Server.Search, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Assembly Name="Microsoft.Office.Server, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> using System; using System.Web; using System.Data; using Microsoft.SharePoint; using Microsoft.Office.Server.Search.Query; public class GenericHandler1 : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain"; string prefixText = context.Request["q"]; using (SPSite siteCollection = SPContext.Current.Site) { // create a new FullTextSqlQuery class FullTextSqlQuery query = new FullTextSqlQuery(siteCollection); query.QueryText = "SELECT Title FROM SCOPE() WHERE

View Complete Post

More Related Resource Links

The given key was not present in the dictionary.

When i click site columns in Site Settings. I got an error message.  The given key was not present in the dictionary.

FAST Search for SharePoint Dictionary Compilation Job systematically failing

Hello guys, Did anyone run into this problem? I just configured a SP2010 test server to use a freshly installed FAST Search Server and this job, which is scheduled to run every minute, fails systematically... Any thoughts on what might causing this? Below is the message reported in the Application logs The Execute method of job definition Microsoft.Office.Server.Search.Administration.FSDictionaryManagementJobDefinition (ID ccc0e26a-ece9-4d49-ae10-5d46ef675c85) threw an exception. More information is included below. No elements matching the key 'contractType:Microsoft.SharePoint.Search.Extended.Administration.Service.LinguisticManagerService;name:http' were found in the configuration element collection. Thanks!

Looking for suggestions or ideas how to setup to capture search criteria and present to user if they

Requirements call for the ability to save search values so that they can select them at later times to return the results without having to re-enter the values. They have the ability to search on 4 different types of data (Date, Time and Lat/Long), so they would like to capture what was entered and ONLY if they chose to save those values, it will be saved and next time they login, if they are searching, they can pick an old search and submit it again.   Im thinking that i add a checkbox next to each button, if they check it, it saves the data into a table with there values and username. Next time they login and go tothe search page, if there are any records for them in the table, i present them with a link that displays all the values stored and if they select one, it will run the search again and present them with the results.. does that sound like the right way to handle this request? 

CQWP - The given key was not present in the dictionary.

Hi,  After trying various attempts to solve my problem, followed by searching the internet for what seems days, I only found one documented case with the same symptoms (dated 2007 with no responses!).  I'm putting a plea out to see if anyone else has come across the same issue or has any tips on troubleshooting this further...The problem only occurs with Content Query Web Parts.  All other Web Parts function correctly, and CQWP display fine, but I am unable to use the Modify Shared Web Part command on the drop down menu.The site was created using WSP packages and a content migration.  The CQWP (both MS standard and custom developed) have been working fine for about 5 months, until recently when we get the following error.Any thoughts would be greatly appreciated! The given key was not present in the dictionary. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: [KeyNotFoundException:

GBW - The given key was not present in the dictionary, only for some users


Hi Guys,

i search for a solution about an issue with the sites home of a groupboard workspace site, where only some users have the error attached.

I allready restartet the gbw.msp in solution manager and reaktivated Office SharePoint Server Publishing and Office SharePoint Server Publishing Infrastructure.

Are there some other tipps for me ?


Thank you in advance,

[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +36
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +10290581
   Microsoft.GroupBoard.CurrentGroupSelection.GetLoginNamesOpt(Collection`1 col, SPUser me) +513
   Microsoft.GroupBoard.CurrentGroupSelection.GetLoginNamesRecursively(EGListItem topOrg) +50
   Microsoft.GroupBoard.CurrentGroupSelection.GetLoginNamesRecursively(EGListItem topOrg) +154
   Microsoft.GroupBoard.CurrentGroupSelection.GetLoginNamesRecursively(EGListItem topOrg) +154
   Microsoft.GroupBoard.CurrentGroupSelection.GetLoginNamesRecursively(EGListItem org, SPUser me) +71

advanced search autocomplete


Hi all,

I've had some requirement to show autocomplete for fields in advanced search.

I've made an ashx file which I'll combined with jquery ui autocomplete.

the problem is there are no data showed in the ashx file when I search to the custom properties.

My questions is: is it possible for us to show the value of the custom properties?

for example I have "External Company" column in document library template and I mapped it to DLExtComp. Is it possible to show all External Company which exist in the site collection? How to achieve this?

I've made the ashx file like below:

public void ProcessRequest(HttpContext context)
      context.Response.ContentType = "text/plain";
        if (context.Request.QueryString["q"] != null)
          string _name = context.Request.QueryString["q"].ToString();
          string siteUrl = SPContext.Current.Site.Ro

autocomplete juqery search



iam using autocomplete search using jquery, iam search descirption and i can display that, i want

to get correponding id for that description ,iam only descirption.

"The given key was not present in the dictionary."


Two of the portals in my SharePoint farm are experiencing the same set of strange issues:

-When clicking Site Actions -> Manage Content and Structure I get a page that has this error: The given key was not present in the dictionary.

-If I go to Site Actions -> Site Settings -> Modify Navigation it will be grayed out and unavailable to be selected.


I have a feeling these two issues are connected. Can anyone provide any insight as to what may be going on? I'm starting to pull my hair out. Thanks!

The given key is not present in the dictionary


I have Windows 7 64-bit. I think some time ago I installed the 180-day eval of SQL 2008 (64-bit). I heard about SQL Express so I installed SQL Server 2008 R2 (64-bit). When I try to connect from Management Studio I get the follwing error: TITLE: Connect to Server

Cannot connect to (local).


A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476



 So I then tired to uninstall everything and start over with a fresh install. Now no matter if I try to reinstall, repair or uninstall, I get the following error:

TITLE: SQL Server Setup failure.

Error in the Site Data Web Service. (The given key was not present in the dictionary.)


In my crawl logs, 2 specific document libraries within a site collection are not successfully crawled.  The error in the log is: Error in the Site Data Web Service. (The given key was not present in the dictionary.)  Note that these document libraries were being successfully crawled over the past 4 months.

I can't seem to find any information in the forums or on the net that tells me what this error means.  Does anyone have any experience with this error?

This environment is MOSS 2007 SP1, Windows Server 2003 SE SP2 32-bit WFEs (2 query, 1 index) and SQL Server 2005, Windows Server 2003 SE SP2 64-bit.

Unit Testing SharePoint - Past, Present, and Sporm

As I described in SharePoint: The Wild West of Software Development there is a serious problem when you develop for SharePoint: ensuring quality through unit testing is really, really hard. And that's where a new open source tool just released today called sporm (SharePoint Object Relational Mapper) comes in. While sporm provides many benefits besides simplified unit testing I wanted to focus on this topic first, because sporm's approach, which models the entity framework in the way it supports POCO's, is a unique feature not available with other SharePoint tools like LINQ to SharePoint.

Thinking about new C# method prototypes: object as dictionary

I recently had to write a small Flickr API. I know many .Net API for Flickr already exist but I needed one for a Silverlight application. Whatever, it's only about building some querystrings so I did it by myself. It's been an opportunity to think again about a classical question: how to pass parameters to a method ?

Imagine you have a generic method to call some Flickr functions.

MS SQL Server: Search All Tables, Columns & Rows For Data or Keyword Query

If you need to search your entire database for specific data, this query will come in handy.

So when a client needs a custom report or some sort of custom development using Great Plains, most of the time I will have to track down the data in the system by running this query and find the table(s) it is in.

SharePoint Gets Search Analytics

Microsoft's SharePoint Portal Server 2003 was sold into a large number of organizations based solely on the strength of the search tool. Organizations hungered for a way to find the data they had generated.

Using SharePoint Search feature in ASP.Net Application

Integrating ASP.Net application in to MOSS 2007 to utilize SharePoint Enterprise Search Feature can be done by using Business Data Search.

Get more then google search from here

Just make it home page and enjoy more then google search you not only get google result and prizes for searching but also free ebooks and link from here like orkut,facebook,twitter,yahoomail etc...


Adding Search Refinements in SharePoint 2010

I have been playing around with SharePoint 2010 Search this morning. I love the new UI. The search refinements panel is just begging to be messed with. In my case I wanted to add the file extension JPG as an Image Type refiner.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend