473,732 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Item has already been added. Key in dictionary:" calling a ws met

I have two projects (one using .NET 1.1 the other using 2.0). When I call a
particular method in a webservice from the 1.1 project everything works
great. When I call the same method from the 2.0 project (identical code) it
throws an exception with the message:

"{"Item has already been added. Key in dictionary:
'AutoCompleteBa ckOrders.Sopran oWebServices.Ba seRequestDTO' Key being added:
'AutoCompleteBa ckOrders.Sopran oWebServices.Ba seRequestDTO'"}
The stack trace looks like this:
" at System.Xml.Seri alization.XmlSe rializer.Serial ize(XmlWriter xmlWriter,
Object o, XmlSerializerNa mespaces namespaces, String encodingStyle, String
id)\r\n at System.Xml.Seri alization.XmlSe rializer.Serial ize(XmlWriter
xmlWriter, Object o, XmlSerializerNa mespaces namespaces, String
encodingStyle)\ r\n at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Seriali ze(SoapClientMe ssage
message)\r\n at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)\r\n at
AutoCompleteBac kOrders.Soprano WebServices.Sop ranoWebServices .psidDeterminat ion(PsidDetermi nationRequestDT O
psidDeterminati onRequestDTO) in
C:\\projects\\M OAB_2007_MAR\\B usinessProcessU Is\\TNWCT\\src\ \AutoCompleteBa ckOrder\\AutoCo mpleteBackorder \\Web
References\\Sop ranoWebServices \\Reference.cs: line 439\r\n at
AutoCompleteBac kOrders.DataHan dler_Soprano.ge tPsidDeterminat ion(String
busOrgId, String productId, String userName) in
C:\\projects\\M OAB_2007_MAR\\B usinessProcessU Is\\TNWCT\\src\ \AutoCompleteBa ckOrder\\AutoCo mpleteBackorder \\Datahandlers\ \DataHandler_So prano.cs:line 37"
Anybody have any guesses?

--
Kevin Schneider
Mar 16 '07 #1
0 2292

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
3923
by: Dave Opstad | last post by:
In this snippet: d = {'x': 1} value = d.get('x', bigscaryfunction()) the bigscaryfunction is always called, even though 'x' is a valid key. Is there a "short-circuit" version of get that doesn't evaluate the second argument if the first is a valid key? For now I'll code around it, but this behavior surprised me a bit...
3
4619
by: Drulli Rokk | last post by:
Hi, Here's a question that has cost this newbie two days of headache already: How can I get my XSLT stylesheet to specify a maximum number of elements to process? I'm now using <xsl:for-each> which processes all the child-nodes at the particuar point in my XML (RSS) file. But what I really want, is this: if number of child-nodes > n then process only the first n
2
7864
by: microsoft | last post by:
When I create a instance of web services proxy in winform, I get the exception. Stack Trace: System.ArgumentException: Item has already been added. Key in dictionary:"winbootdir" Key being added: "winbootdir" at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value)
5
3155
by: Add and Paste | last post by:
Dear Access developers, I have a lot of cut and pasting to do from Excel to an Access form. But instead of just pasting, I want to "add then paste" the value. Does anybody have a way to do this? Existing code would be appreciated! In other words, I'd like to right click on a form text box and add the value stored in the clipboard to the existing value which is in the text box.
0
4203
by: Ralf Gedrat | last post by:
Hello! I have a Application, this throws after some time following exception: Item has already been added. Key in dictionary: "- 1" key being added: "- 1" I use Application.Run with ApplicationContext. This error message comes from deeper levels must be thrown (mscorlib.dll?!) ?.
1
3127
by: nobrainer | last post by:
Hi, I'm a linguist and have a large self-built bilingual dictionary. I want to turn it into a electronic dictionary, can anyone tell me how to start with it? I've some knowledge in Java programming, but don't know how to write a programme that allows you to search in the large e-file just like a GUI interface e-dictionary. any directions?
0
2062
by: SunSet | last post by:
Hello togehther, i want to add a new Popup to the Contextmenue in Word (Right click on the textbody) which all is included in an AddIn. To add a new button works fine with these piece of code: oCommandBars = applicationObject.CommandBars KontextMenu = oCommandBars("Text").Controls.Add(MsoControlType.msoControlPopup, , , , True) KontextMenu.BeginGroup = True
1
1917
by: | last post by:
I got stuck today on an annoying problem involving DataKeys, datasources, and the GridView: I kept getting errors saying things to the effect of""Item has already been added. Key in dictionary: 'Con_ContentID' Key being added: 'Con_ContentID'"" I figured I would post the solution I eventually found, because Googling around on this revealed a number of puzzled people who had the same problem, and few solutions. People kept pointing the...
0
8944
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8773
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9306
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9234
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6733
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2177
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.