January 07, 2021

Published January 07, 2021 by

InvalidOperationException: Object of type 'DevExpress.Blazor.Reporting.DxReportDesigner' does not have a property matching the name 'ReportUrl'

This is the code I wrote seeing a sample code.

@page "/reportdesigner"

<DxReportDesigner ReportUrl="HelloWorld" Height="1000px" Width="100%" AllowMDI="true">
   <DxReportDesignerWizardSettings UseFullscreenWizard="true" />
</DxReportDesigner>

This code throws an internal server error in Version 20.2 of DevExpress Blazor Reporting.

InvalidOperationException: Object of type 'DevExpress.Blazor.Reporting.DxReportDesigner' does not have a property matching the name 'ReportUrl'. Microsoft.AspNetCore.Components.Reflection.ComponentProperties.ThrowForUnknownIncomingParameterName(Type targetType, string parameterName)

To get rid of this problem 'ReportUrl' should be replaced by 'ReportName'

Correct Code

@page "/reportdesigner"

<DxReportDesigner ReportName="HelloWorld" Height="1000px" Width="100%" AllowMDI="false">
    <DxReportDesignerWizardSettings UseFullscreenWizard="false"/>
</DxReportDesigner>