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

Stimulsoft Reports.NET discussion
Post Reply
Hussain
Posts: 11
Joined: Mon May 01, 2023 5:17 am

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

Post 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.............
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply