To get rid of this error I removed this reference: DevExpress.XtraCharts.v24.1
I converted my project from Framework 4.8 to net 8.0 and DevExpress v24.1