Enable debugging for XmlSerialization problems

I had a problem with Xml Serialization recently and had to find out what was causing the problem. Fortunately there is a solution (although not a very nice one)

Add the following to your app.config / web.config

      <add name="XmlSerialization.Compilation" value="4" />

The switch values for this are:-

Name Setting Comment
Off 0 None
Error 1 Only error messages
Warning 2 Warning messages and error messages
Info 3 Informational messages, warning messages, and error messages
Verbose 4 Verbose messages, informational messages, warning messages, and error messages

Now when you run the application it wont delete the temp files that are generated for the serialization process. You can drag the file that is generated into Visual Studio and place a breakpoint in the code and see what’s happening. The files are generated into the current user Local Settings\Temp folder.


  1. Definitely believe that which you said. Your favorite justification appeared to be on the web the simplest thing to be aware of.
    I say to you, I definitely get annoyed while people consider worries that they plainly don’t know about.
    You managed to hit the nail upon the top and also defined out the whole thing without having side effect ,
    people could take a signal. Will probably be back to get more.

  2. Was it dark or heartburn no more pdf free milk. Every ligament has a serious effect on the organs and the attorney general for telling a patient needs to be paid for.
    Low-carb diets have been around as long as you know that once someone has
    preexisting medical conditions and problems. There also
    is found in all levels of HDL, low-density lipoprotein LDL and
    very real.

  3. I do consider all the ideas you’ve introduced on your post.
    They are really convincing and will certainly work. Nonetheless,
    the posts are very brief for starters. May just you please lengthen them a bit from next time?
    Thank you for the post.

  4. It all depends on the type of motor you are trying to cool and how much heat is being generated inside of it.
    Here are several things you are able to do to prevent these types of situations:.
    Keep away from any company which has a huge amounts of problems.

    Here is my page: http://www.youtube.com

  5. So get your hands on this new gadget and never miss a great shot.
    The camera fares well in comparisons with the Canon Power – Shot A590, the best-selling low-end camera
    line on the market. If you would like more information, be sure to check out the Tao
    Wireless mobile phones site.

  6. Why are all these comments not about the original blog post?

    Also, the method in this blog post is outdated and doesn’t work.

Comments are closed.