Blazor app with WebReportDesigner CSharp.Net8.BlazorIntegrationDemo - ASPNETCORE_ENVIRONMENT other than Development

0 Answers 7 Views
.NET Core Report Designer - Web Report Viewer - Blazor
Sergii
Top achievements
Rank 1
Sergii asked on 15 Sep 2025, 10:39 AM
Hi,

there probably an issue with ASPNETCORE_ENVIRONMENT for WebReportDesigner: can't apply anything than "Development".

Steps to reproduce:

Have installed Telerik_Reporting_2025_Q3_19_2_25_813.msi in order to have installed Examples.

In Examples find out

"\CSharp\.NET 8\BlazorIntegrationDemo"

in CSharp\.NET 8\BlazorIntegrationDemo\Properties\launchSettings.json
clone section CSharp.Net8.BlazorIntegrationDemo as CSharp.Net8.BlazorIntegrationDemo.Development.Test, where change

"ASPNETCORE_ENVIRONMENT": "Development" -> "ASPNETCORE_ENVIRONMENT": "Development.Test"

you should get something like:
---
    "CSharp.Net8.BlazorIntegrationDemo.Development.Test": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development.Test"
      },
      "applicationUrl": "http://localhost:57349"
    }
---

profile CSharp.Net8.BlazorIntegrationDemo still works, but when I run for profile CSharp.Net8.BlazorIntegrationDemo.Development.Test I get 
---
Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer: Warning: Unhandled exception rendering component: Could not find 'telerikReportViewerInterop.createReportViewerWidget' ('telerikReportViewerInterop' was undefined).
Error: Could not find 'telerikReportViewerInterop.createReportViewerWidget' ('telerikReportViewerInterop' was undefined).
    at http://localhost:57339/_framework/blazor.web.js:1:537
    at Array.forEach (<anonymous>)
    at l.findFunction (http://localhost:57339/_framework/blazor.web.js:1:505)
    at b (http://localhost:57339/_framework/blazor.web.js:1:5248)
    at http://localhost:57339/_framework/blazor.web.js:1:3041
    at new Promise (<anonymous>)
    at y.beginInvokeJSFromDotNet (http://localhost:57339/_framework/blazor.web.js:1:3004)
    at gn._invokeClientMethod (http://localhost:57339/_framework/blazor.web.js:1:62730)
    at gn._processIncomingData (http://localhost:57339/_framework/blazor.web.js:1:60119)
    at connection.onreceive (http://localhost:57339/_framework/blazor.web.js:1:53760)
---

No answers yet. Maybe you can help?

Tags
.NET Core Report Designer - Web Report Viewer - Blazor
Asked by
Sergii
Top achievements
Rank 1
Share this question
or