locked
The type 'System.Xml.Serialization.IXmlSerializable' is defined in an assembly that is not referenced

    Question

  • Hi All,

    I am getting the following error , when i am trying to use the Data Table in my test(  DataTable dt = new DataTable()) , i have added the System.XML as a reference and added name space  using System.Data , I have found some information at http://social.msdn.microsoft.com/Forums/en/netfxremoting/thread/34d4c3d5-29c8-4aae-81ce-fc674659df60, But not understandable,Please help me out how to resolve the issue

     

    This is the error I am getting  :

    Error    1    The type 'System.Xml.Serialization.IXmlSerializable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.  

    Thanks


    Rajendra
    • Edited by RajendraC Wednesday, September 07, 2011 10:43 AM
    Wednesday, September 07, 2011 10:42 AM

Answers

  • Hi,

    Try  adding System.XML to refrences

    that will resolve the issue


    All life is an experiment. The more experiments you make the better. -------------------------------------- Vinay
    Monday, September 12, 2011 10:06 AM

All replies

  • Hi,

    Try  adding System.XML to refrences

    that will resolve the issue


    All life is an experiment. The more experiments you make the better. -------------------------------------- Vinay
    Monday, September 12, 2011 10:06 AM
  • veryyy veryyy thankss... :):):) Resolved my problem :)
    Tuesday, February 21, 2012 3:22 PM