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

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

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

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :SharePoint

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

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.

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

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

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:

"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: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

Enabling Users to Maintain SharePoint Content

When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

Some areas of the site usually contain less-dynamic information. Internal memos and corporate policies are common examples of this information. One option for this information is to post these documents in a document library. Documents in a library are often stored in a few different formats: Word, Acrobat (PDF), or HTML. Each of these formats has its drawbacks.

Enabling Users to Maintain SharePoint Content

When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

Need help redirecting users to personalized page


 Hi, first timer here so be gentle.


I've been able to create a cool little website, it's up and running with users logging in and out, I created roles so my administrative team can see sensitive data that's not available to regular and anonymous users.

Now they would like me to create a page specific to each user.  For instance when user A logs in they are redirected to a page that has information that pertains to user A only (like a list of their benefits/ their remaining vacation time). This page needs to be accessible only to user A. 

I've watched a ton of the videos but have yet to see one that covers this topic, any help would be great!!!





Intranet Users Challenged When Using Windows Integrated Security


We've setup an intranet site using Windows Integrated Security. Its up and running and users can access it. However, they are being challenged with a login dialog for the server when they initially access the site.

Isn't is possible to configure the server so that the users aren't challenged AND are recognized as being already authenticated by Windows? We're trying to go with a seamless experience, whereby all they have to do is login to their machine like normal and then go from there.

Users getting logged out because HttpContext.Current is null


We've  been trying to fix this one for a couple years, and I'm just out of ideas, so any help is really appreciated!

We've got a fairly large, complex web application that uses Forms Authentication to authenticate users.  Throughout the application we store and retrieve information about users in the Session object, and in some cases in cookies.  In a couple places we check for the existence of the context, and if it's null we send the user back to the login page to re-establish the session. 

Just a quick run-down of this web app: C#, .NET 3.5, IIS 6, ASP.NET State Service to manage session

As for the session timer, we use our own home-grown timer, which is basically a client-side timer, which is backed up by a check to the SQL database to see when their last activity was.  This seems to work well for us.  It's not perfect, but it allows us to notify the user before the session times out, and allows us to be certain we're not logging a user out before their 60 minutes of inactivity is up.

What's happening is that certain users are being logged out after just a few minutes.  We've eliminated the timer as a cause and believe what's happening is the HttpContext.Current is null, so the user is logged out.  We do not know why the HttpContext.Current is null, and I underst

Getting users list reporting to manager from LDAP


Dear All,

I need to get list of users reporting to a particular manager from the Active directory.

In the active directory there is manager property with contains the data in the following way.


Please help me in building the filter condition.

I am using the following

pUserName="Gegore Lid";

strSearch = "(&(objectClass=user)(objectCategory=user)((Manager cn=" + pUserName + "))";

DirectorySearcher dSearcher = new DirectorySearcher(dEntry, strSearch);

            //Account properites to load
            string[] arrPropertiesToLoad = { "displayName", "department", "manager", "sAMAccountName", "EmployeeNumber", "Title" };

          SearchResultCollection sResultColl = dSearcher.FindAll();

 the above code is not returning any result.

Please help me in this.



Use Membership but bypass / disable password usage for users


I have an application that does LDAP authentication. The authentication is done on the code behind page of my Login.aspx page. Once the user passes LDAP authentication, a cookie is set and I redirect:

FormsAuthentication.RedirectFromLoginPage(UserName.Text, False)

I would like to setup membership in my application and keep track of some user information. But due to company security requirements, I cannot store user passwords on my application. That must stay on the LDAP server only.

Is there a way to store users but disable password storage on the aspnet_membership table?

Getting list of users reporting from specific Manager from Active Directory


Dear All,

I am have requirement like displaying all the user information reporting to specific manager from Active Directory.

Please help me regarding this.



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