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

    Question

  • 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

      Noam

    Thursday, June 7, 2012 9:42 AM

All replies

  •  

    Hello,

     

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

     

    You can upload your project to skydriver

    http://skydrive.live.com/

     

    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


    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

    http://sdrv.ms/LpEMny

    thanks again,

    Noam

    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.

    Thanks!


    David Lamb

    Tuesday, June 12, 2012 7:26 PM
    Moderator
  • 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