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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

The given key was not present in the dictionary.

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
 
When i click site columns in Site Settings. I got an error message.  The given key was not present in the dictionary.


View Complete Post


More Related Resource Links

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=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Assembly Name="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Assembly Name="Microsoft.Office.Server, Version=14.0.0.0, 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:

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
   Microsoft.GroupBoard.Cu

"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).

------------------------------
ADDITIONAL INFORMATION:

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

------------------------------
BUTTONS:

OK
------------------------------


 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.

Overflow when image not present

  

Hi,


I have the following on an image so that i can load :

onError="Repl_img(this)"

The function is:

function Repl_img(sender)
        {
           // you may need to comment this out if no images are reachable
            try
            {
                sender.src = "dir/NoImage.jpg";
            }
            catch(err)
            {
            }
        }


When i run on a machien which doesn't have the noimage present i receive a stack overflow at line 0

I've put the try catch around it and still receive this.


I'm wondering if i have the try catch correct or i need something else to fix?



AssemblyInfo file not present in ASP.NET Server Control Project

  

Hi,

I have created my first Custom asp.net server control.But i think such projects probably contains AssemblyInfo file.But i am missing that. When i created project that file was not added.

I am working on VS 2008 Team System Edition,with VB.NET language.How to get that file ? 


System.InvalidOperationException: Invalid attempt to read when no data is present.

  

Invalid attempt to read when no data is present.

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.InvalidOperationException: Invalid attempt to read when no data is present.

Source Error: 

Line 53:             if (reader.HasRows)
Line 54:             {
Line 55:                 Response.Write(reader.GetString(0));

Here is my code:

Error Executing CLR Stored Procedure "Item has already been added. Key in dictionary"

  
Hello, I'm consuming a web service through assemblies in a Sql Server 2005 database. The client was made with VB.net 2005. Everything was fine in the deploy phase but once I compile the assembly generated in my sql server database and try to execute the CLR stored procedure defined in the assembly it crashes throwing the following error: Error: There was an error generating the XML document. Inner Exception: Item has already been added. Key in dictionary: 'SqlCifin.InfoComercial.ParametrosConsultaDTO' Key being added: 'SqlCifin.InfoComercial.ParametrosConsultaDTO' Where SqlCifin is the name of the assembly, InfoComercial is the web reference namespace and ParametrosConsultaDTO is a complex type defined in the WSDL to encapsulate the request parameters. I tried almost everything but nothing seems to work: Already checked the enviroment variables and . I would appreciate any help you can provide me.  PD: I'm using WSE 3.0. Thanks, Andres Diab.

Why can't I load an an external resource dictionary that contains type converters?

  
Basically what I'm doing is putting a bunch of type converters as resources in a ResourceDictionary contained in an externally referenced assembly. Let's call the assembly WpfCommon. I'm directly referencing the assembly from my main application. In the App.xaml:       <Application.Resources>         <ResourceDictionary>             <ResourceDictionary.MergedDictionaries>                 <ResourceDictionary Source="pack://application:,,,/Common.Wpf;component/Wpf/ResourceDictionaries/Converters/Converters.xaml"/>             </ResourceDictionary.MergedDictionaries>         </ResourceDictionary>     </Application.Resources>   Converters.xaml:   <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:Common_Wpf_Converters="clr-namespace:Common.Wpf.Converters">     <ResourceDictionary>         <Common_Wpf_Convert

CLR Stored Procedures with WSE - Error "Item has already been added. Key in dictionary"

  
Hi, I'm developing a CLR Stored Procedure that consumes a Third party Web Service with WSE 3.0 (Due to WS Owners). Everything was fine in the Visual Studio Framework, but once I deploy the assemblies in my database and try to call the service from a query windows, it shows an error message:  Error: There was an error generating the XML document. Inner Exception: Item has already been added. Key in dictionary: 'SqlCifin.InfoComercial.ParametrosConsultaDTO' Key being added: 'SqlCifin.InfoComercial.ParametrosConsultaDTO' Stack Trace: at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id) at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle) at System.Web.Services.Protocols.SoapHttpClientProtocol.Serialize(SoapClientMessage message) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at SqlCifin.InfoComercial.InformacionComercialWSServiceWse.consultaXml(ParametrosConsultaDTO parametrosConsulta) at SqlCifin.StoredProcedures.sp_consultaXml(SqlString i_cod_info, SqlString i_motivo, SqlString i_ced_ruc, SqlString i_tipo_ced, SqlXml& o_xml)   I think it has to be something with the WSE but not completely sure. I really need to go t

Header for ultimate recipient is required but not present in the message

  
Hello All-I am getting error message shown below.I am using WSE 3.0/Vs 2005/x509. When my client try to access my webservice, they get error message shown below.Can anyone please help me on this. I am stuch on this issue and can not find a solution anywhere.Feel free to ask me if you have further questions.Thank you very much in adavnce.-Sandip <faultstring>System.Web.Services.Protocols.SoapHeaderException: Server unavailable, please try later ---> System.ApplicationException: WSE841: An error occured processing an outgoing fault response. ---> System.Web.Services.Protocols.SoapHeaderException: Microsoft.Web.Services3.Security.SecurityFault: Header http://schemas.xmlsoap.org/ws/2004/08/addressing:Action for ultimate recipient is required but not present in the message. at Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion.RequireSoapHeaderFilter.ProcessMessage(SoapEnvelope envelope) at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope envelope) at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope requestEnvelope) at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&amp; abortProcessing)

SQL server setup has encountered the following error: The given key was not present in the dictionar

  
For various reasons I have installed and uninstalled SQL Server 2008 developer on my vista machine.. I just received this error after clicking the installation > New SQL Server stand alone installation ....link in the Installation Center SQL server setup has encountered the following error: The given key was not present in the dictionary I had to uninstall and reinstall because the analysis services install failed so I wanted to reinstall.
Categories: 
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