new XmlSerializer(type) get an exception - Record not found on lookup. (Exception from HRESULT:0x80131130)


  • hi,

    I'm developing a C# project(.winmd) for calling a Web Service, and a C++ Metro Application which calls the Web Service.

    I have a problem when I try to serialize a class that was declared in the .winmd project

    I get an exception on:

    System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(type);


    I tried the same code in another C# project( .dll) and it works fine.

    please advise


    Thursday, June 7, 2012 9:42 AM

All replies




    Would you please provide us the whole codes to reproduce this issue,


    You can upload your project to skydriver



    It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.


    Best regards,


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Friday, June 8, 2012 5:03 AM
  • hi Jesse,

    thanks for you reply,

    I uploaded a test solution to skydriver


    thanks again,


    Sunday, June 10, 2012 7:24 AM
  • I'm not seeing a solution shared. You can email it to me, davidlam at Microsoft dot COM if you like as well.


    David Lamb

    Tuesday, June 12, 2012 7:26 PM
  • Was this resolved? What was the issue?

    Kushal Shah - This posting is provided "AS IS" with no warranties, and confers no rights

    Thursday, June 14, 2012 8:56 PM