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


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Item has already been added. Key in dictionary: 'HelpLink.ProdVer' Key being added: 'HelpLink.Pro

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :WPF
 
Hi All, I am getting this error while putting files on remote server. Please suggest me what to do. Following is the stack trace. Void Add(System.Object, System.Object) Item has already been added. Key in dictionary: 'HelpLink.ProdVer' Key being added: 'HelpLink.ProdVer' System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'HelpLink.ProdVer' Key being added: 'HelpLink.ProdVer'    at System.Collections.ListDictionaryInternal.Add(Object key, Object value)    at Microsoft.SqlServer.Management.Smo.SmoException.Init()    at Microsoft.SqlServer.Management.Smo.FailedOperationException..ctor(SerializationInfo info, StreamingContext context)    --- End of inner exception stack trace --- Server stack trace:    at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)    at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)    at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)    


View Complete Post


More Related Resource Links

Item has already been added. Key in dictionary: 'HelpLink.ProdVer' Key being added: 'HelpLink.Pro

  
Hi All, I am getting this error while putting files on remote server. Please suggest me what to do. Following is the stack trace. Void Add(System.Object, System.Object) Item has already been added. Key in dictionary: 'HelpLink.ProdVer' Key being added: 'HelpLink.ProdVer' System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'HelpLink.ProdVer' Key being added: 'HelpLink.ProdVer'    at System.Collections.ListDictionaryInternal.Add(Object key, Object value)    at Microsoft.SqlServer.Management.Smo.SmoException.Init()    at Microsoft.SqlServer.Management.Smo.FailedOperationException..ctor(SerializationInfo info, StreamingContext context)    --- End of inner exception stack trace --- Server stack trace:    at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)    at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)    at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)    

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.

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

Error when trying to add calculated column: ' Item has already been added. Key in dictionary:'

  
I created a subsite under a subsite in my MOSS 2007 site collection. Then I am trying to create a 'local' site content type for Quizzes. Next I am trying to create a calculated column and right after I specify Calculated Column as the type I get a mysterious error Now, Root Cause Analyst Name is a    Root Cause Analyst Name is a site column defined in the Root web, and referenced in the parent subsite, but it has nothing to do with my present effort. ? Can I not create content types in a sub-sub-site, or should I create them all in the root web? Here's the error:     Item has already been added. Key in dictionary: 'Root Cause Analyst Name_Root_x0020_Cause_x0020_Analyst_x0020_Name'  Key being added: 'Root Cause Analyst Name_Root_x0020_Cause_x0020_Analyst_x0020_Name'   at System.Collections.SortedList.Add(Object key, Object value)    at ASP._layouts_fldnew_aspx.__Render__control10(HtmlTextWriter __w, Control parameterContainer)    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)    at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)    at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)    at

Item has already been added. Key in dictionary.. How do I clean up service account? Very nasty

  

I made a few changes in service accounts and now CA Configure Service Accounts and other application pages fail with wtth:

Item has already been added. Key in dictionary: 'dev\svcebrd'  Key being added: 'dev\svcebrd'

Here is what log says when FarmCredentialManagement.aspx opens:

SID |0 cannot be resolved. Using old name: |1. |2

System.ArgumentException: Item has already been added. Key in dictionary: 'dev\svcebrd'  Key being added: 'dev\svcebrd'    at System.Collections.SortedList.Add(Object key, Object value)     at Microsoft.SharePoint.WebControls.ManagedAccountPicker.OnInit(EventArgs e)     at System.Web.UI.Control.InitRecursive(Control namingContainer)     at System.Web.UI.Control.AddedControl(Control control, Int32 index)     at ASP._admin_farmcredentialmanagement_aspx.__BuildControl__control22(Control __ctrl)     at Microsoft.SharePoint.WebControls.InputFormControl.OnInit(EventArgs e)     at System.Web.UI.Control.InitRecursive(Control namingContainer)     at System.Web.UI.Control.AddedControl(Control control, Int32 index)     at ASP._admin_farmcredentialmanagement_aspx.__BuildControl__control16(Control __ctrl)     at Micros

Restore from Recycle Bin - ItemAdding and Item Added

  
When restoring an item (specifically a document back to a document library) I need to be able to conditionally stop the restore from occuring. Let me tell you why... Say I have a doc lib with a custom column on. The column is of type datetime. The value in the column has to be unique. To do this I have an event receiver on itemupdating which runs a simple CAML query on the list to check that the value I provide is not being used elsewhere. If this test passes the update occurs, if not I do a properties.ErrorMessage="Column must contain a unique value" and a properties.Cancel=true. Simple. My problem is, say someone uploads a document, doc A, and gives it the date 01/01/2011. If I try and upload document B with the same date it will stop me - good. However if document A is deleted and I add my document B with 01/01/2011 it will allow that - still good as nothing in the doc lib has that date. The problem now would be if someone restored document A back to the library document A and B would both have the date 01/01/2011. Not good. I've had a look at the event receivers and the SPItemEventProperties object when a restore is performed and both adding and added fire. During adding there doesn't seem to be any of the original list item meta data available for me to interogate? During itemadded I can see the values on the SPListItem contained within the SPItemEventProper

How to find newly added item in the share point site?

  
How to find the recently added item in the share point page If the any user added the items in the custom list, library, list,Announcement, Picture library,etc......... i need to show all item that added last 2 days. Is that any object model available to find all item in the share point site???Instead of searching every list.

New Item Added to List/Library trigers Alert to non-AD Security Group

  
I am trying to implement an alert when a new item is added to a list. Idealy this alert would be sent to either a SharePoint Group or a AD Distribution Group. I do not have access/authroization to create security groups. The research I have found so far tells me that I can only add AD users and AD mail-enabled security groups through the alert GUI. My questions is first is this a valid finding? Second, if I create a custom workflow can I have the workflow triger on new item added and have it send a notification to the specified SharePoint/Distribution group? Thank you in advance for your assistance.  

Restoring from Site Collection Recycle Bin - Item Added

  
When I restore a list item from the normal recycle bin I can access the item using properties.ListItem. However, when restoring from the Site Collection recycle bin, the listitem is null?! Ok, I thought, the SPItemEventProperties object I have also provides me with WebUrl, ListId and ListItemId so I can spin up a new SPSite with WebUrl, use openweb to get my SPWeb, use ListId to get the correct list and then the ListItemId to get the item. A bit long winded but should get me where I need to be. This would be ok, but at runtime I got an exception list not found. On investigation it seems the WebUrl property is wrong. I've run this on a few different lists/sites and it is consistently wrong! The value I'm seeing is http://[webapp]/sites/[sitecol]/sites/[sitecol]/[web]. Note the repitition of /sites/[sitecol]?! This is really frustrating and very poor. So not only is the ListItem property null(?), but there is no easy way to get the list item manually! Does anyone else see this behaviour? Sharepoint is really testing my sanity this week!    

Error: An item with the same key has already been added

  

I get the error An item with the same key has already been added

when I try to invoke a service method in my WPF client, Following is the stack trace

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)


SPMetal Error: An item with the same key has already been added.

  

I created a Visual Web Part project in VS 2008. Try to create the proxy code for a site using SPmetal. I got this error:

Error: An item with the same key has already been added.

Any idea?

Thanks,

WX


DataGrid/DataTable: Deleting Added Item Issue

  

Hello.

I’ve a DataGrid bound to a DataTable, and I’ve a problem deleting rows programmatically.

If I add a new row (using UI) and I mark the row with an error (using SetColumnError), and press the Delete key, the new row is deleted, everything is ok.

If I delete the new row (with errors) programmatically, the row is deleted, but no rows appear in the grid. There isn’t way to add a new row anymore, the grid has no items.

If I delete the new row (programmatically) and it hasn’t errors everything is ok. The row is deleted, and a new empty row appears in the grid. I can add more rows correctly.

Item level events not fired when items are added by routing

  

Hi,

 I want to set item level permission in a library. Therefore I developed an itemceiver that should catch new items in that library. My problem: no event is fired (I tried ItemAdding, ItemAdded, ItemUpdating, Itemupdating, ItemCheckingIn, ItemCheckedIn) . All items get into the library through routing, that means, the item is first stored in a dropofflibrary, than routed in my library where I want to set the permission. Probably the events are not fired by routing.The events are fired correctly, when I update or check in an item as soon as they are edited in my library.

Is there a way to set item level permission when routing is used?

Many thanks in advanced.

 

Stefan


SQL Server 2008 - "An item with the same key has already been added"

  

Hello,

While trying to perform various tasks on the system, including important ones like backing up and restoring databases, I get the following message:

Message Box Title - "Microsoft SQL Server Management Studio"

Message - "An item with the same key has already been added (mscorlib)"

I have followed the other threads and made sure that the system has all updates and service packs applied to the operating system as well as the SQL Server instance. I have restarted the system as well to no avail.

What do I need to do to get this issue resolved?

Thank you for your time.

Regards,

Christopher Koeber


Regards, Christopher K.

WSS OOB Workflow to send e-mail when item added to List?

  

I need to the below thing in WSS OOB Workflows . IF please let me know if you know
In WSS I have List with Name Emps. and colmns as EMPName as Single line text and EMPemail1,EMPemail2 as people picker fields.

When An item is added to the List worklfow should start and I need to send mail to EMPemail1 column person.
In the next step mail should send to Email2 person.


displaying dynamic added value in reports

  

Hi,

I my application i have generated dynamic rows that contains some textbox values, i need to take those values and display in

reports. I am storing that dynamically added values in another table. please help me.


Workflow field not being added to list or views when adding a workflow

  

This problem just started happening in my entire site collection.  Anytime I associate a workflow to any list or doc lib the Workflow column that shows the status and links to the history is not beind added to the list or any views and is nowhere to be found.   Here's exactly what I'm doing:

1.  Go the List settings -> workflow settings -> add a workflow (for this example the OOB approval workflow)

2.  After adding I go to the List, the workflow column doesn't exist.

3.  I go to "modify view", and the workflow column is not listed in the available columns.

Any help is greatly appreciated.


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