Ticket T1285163
Visible to All Users

Report Error "Internal Server Error" in preview in Blazor

created 6 days ago

I’m created a ReportBase (ReportBasePruebas) and a inhereted report “aa” with XtraReport Wizard.
ReportBasePruebas include 4 parameters.
In inhereted report aa.Designet.cs file this code is generated:

this.ParameterPanelLayoutItems.AddRange(new DevExpress.XtraReports.Parameters.ParameterPanelLayoutItem[] {
new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.pEntidad, DevExpress.XtraReports.Parameters.Orientation.Horizontal),
new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.NombreListado, DevExpress.XtraReports.Parameters.Orientation.Horizontal),
new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.NombreEntidad, DevExpress.XtraReports.Parameters.Orientation.Horizontal),
new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.parameter1, DevExpress.XtraReports.Parameters.Orientation.Horizontal)});
this.Parameters.AddRange(new DevExpress.XtraReports.Parameters.Parameter[] {
this.pEntidad,
this.NombreListado,
this.NombreEntidad,
this.parameter1});

When execute the proyect in Visual Studio, the Report Preview display the error “Internal Server Error” the first time 5 seconds.
The report works ok but this annoying message appears.

Parameters.Count = 4 and Report.ParameterPanelLayoutItems.Count = 8

If delete manualy this code (.AddRange), NO error is diplayed.

On every change in the Visual Studio Design the code .AddRange is added, and some time duplicated, triplicated, etc


More tests.
When adding a new parameter to ReportBase, neither Parameters nor ParametersPanelLayoutItems.AddRange are updated in “aa.Designer.cs”

When adding a new parameter to “aa,” it is updated in Parameters but not in ParametersPanelLayoutItems in “aa.Designer.cs”

When running the “aa” report, Parameters is correct (it includes the updated ReportBase parameters + parameters added in “aa”), but ParametersPanelLayoutItems includes the updated ReportBase parameters + the ParametersPanelLayoutItems or ReportBase included when creating the “aa” report (duplicates that appear to be causing the error; changes to subsequent ReportBase parameters are NOT reflected), and sometimes the parameters specific to the “aa” report do not appear.

**If Parameters and Report.ParameterPanelLayoutItems contains diferents components error is displayed.
**

Answers approved by DevExpress Support

created 4 days ago

Hi Fernando,

I appreciate the detailed issue description. I confirm that we're already aware of this code generation issue. Here's the corresponding bug report: Visual Studio Report Designer - Inherited reports have duplicate parameters. We'll reply there once we have a fix to share, and you'll be automatically notified about that via email.

In the meantime, to avoid the exception, you're indeed required to remove duplicated ParameterLayoutItem entries at the subclass level (or just configure all parameters in code-behind if feasible).

Let us know if you have further questions regarding this.

Regards,
Yaroslav

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.