The type 'XElement' is defined in an assembly that is not referenced
Posted: Sun May 21, 2023 6:04 am
Hi Team,
I'm doing custom report using C# with Multiple dataTables, While adding dataset as "report.regData(dataSet)" the code is using System.XML.Linq.Xelement Library ....
Even after Adding the the Library, I was getting the error as "The type 'XElement' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml.XDocument"...
Can u suggest me to add dataset in another way or any specific version of the Libraries required to compile the code?
Thanks In Advance.............
I'm doing custom report using C# with Multiple dataTables, While adding dataset as "report.regData(dataSet)" the code is using System.XML.Linq.Xelement Library ....
Even after Adding the the Library, I was getting the error as "The type 'XElement' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml.XDocument"...
Can u suggest me to add dataset in another way or any specific version of the Libraries required to compile the code?
Thanks In Advance.............