Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 144333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:14:13+00:00 2026-05-11T08:14:13+00:00

I’ve got a problem with a SOAP Web Reference that was generated by Visual

  • 0

I’ve got a problem with a SOAP Web Reference that was generated by Visual Studio 2005 (.NET framework is v2.0.50727.42) – it works fine under the Debug build configuration (and has for months) but now that I want to go live and have compiled using the Release configuration, it has stopped working.

Exceptions are raised at runtime whenever I call a method on the Web Reference. The most common exception is:

System.InvalidOperationException: There was an error generating the XML document. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'MayriseWebServices.RefuseService.PremiseSummaryStructure'  Key being added: 'MayriseWebServices.RefuseService.PremiseSummaryStructure' 

The language for the project and the generated Web Reference is VB.NET rather than C#. As the generated Reference.vb code doesn’t actually change, just the build type, I can’t find anything there, and I obviously can’t debug the Release build.

I’ve noticed that the Release build splits off a *.XmlSerializers.dll assembly from the main build. Are there known problems with this?

I’d rather not go live with the Debug build for obvious reasons. Maybe I should do some reading about CodeDOM, I have been meaning to!

I should mention that I’ve found a post with reasons why a Release build will run differently but it seems to be focused on C++.

Thanks for any help you can give.

UPDATE: The third suggestion to turn off the serialization assemblies has fixed the problem. I changed the ‘Generate serialization assemblies’ setting from ‘Auto’ to ‘Off’ in the Advanced Compile Options, and my tests pass now. I wasn’t aware of that setting.

I’m not sure what the underlying problem with the serialization assemblies is. I’ll provide an update if I get a chance to debug the Release assembly using your advice in the second suggestion.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:14:13+00:00Added an answer on May 11, 2026 at 8:14 am

    I do not have an answer for you, though I have some thoughts on how to troubleshoot this issue.

    1. Since this is a runtime error that only occurs with a RELEASE build, not a DEBUG build, I am wondering whether the VB compiler emits the same IL or not. What you might want to do is compile your DEBUG version of the assembly, then compile the RELEASE version of the assembly. Once you have both a DEBUG and RELEASE version of the assembly, use ILDASM.exe to perform a dissassembly of both assemblies. Save the files as text and use WinDiff.exe to compare them. This may or may not provide you with some clues.
    2. You may want to alter your project settings for the RELEASE configuration to generate the PDBs (/debug:pdbonly). This will allow you to debug as long as you start the process from within Visual Studio.
    3. The *.XmlSerializers.dll assemblies that are generated are intended to improve the initial calls that cause serialization to occur. As a troubleshooting step, you can turn that off in the RELEASE configuration of your project properties to see whether or not you still have the same issue.

    I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Right click the root node in Solution Explorer -> Properties… May 12, 2026 at 1:08 am
  • Editorial Team
    Editorial Team added an answer objectForKey: is an NSDictionary method. An NSDictionary is a collection… May 12, 2026 at 1:08 am
  • Editorial Team
    Editorial Team added an answer Basic HTTP authentication: http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html May 12, 2026 at 1:08 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.