Page 1 of 1

The type 'XElement' is defined in an assembly that is not referenced

Posted: Sun May 21, 2023 6:04 am
by Hussain
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.............

Re: The type 'XElement' is defined in an assembly that is not referenced

Posted: Sun May 21, 2023 8:48 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.