Telerik Report in Blazor fails in IIS

1 Answer 92 Views
.NET Core Report Viewer - Blazor
Edwin
Top achievements
Rank 1
Edwin asked on 06 Mar 2024, 07:47 AM

Hi All,

I am using the telerik reporting trial version in blazor. On the development machine everything works fine and report display.

But when i deploy to iis for testing, the report does not show.

Attached is an error from the console.

Kindly help.

Thank you

1 Answer, 1 is accepted

Sort by
0
Momchil
Telerik team
answered on 08 Mar 2024, 02:10 PM

Hi Edwin,

Judging by the screenshot, it seems that not only the report viewer's resources cannot be loaded successfully but other static content, such as print.js and avatar_johny.jpg cannot be downloaded either.

Currently, I can only guess but a common reason for such issues is that IIS is not serving the static content. You can take a look at the following Stack Overflow thread for potential solutions.

C# - CSS, Images, JS not loading in IIS - Stack Overflow

You can also double-check the routes for the viewer's JS and CSS resources and make sure that they are valid in the context of the production environment. If you are using local copies of the files, make sure they are carried over during the deployment process and that the IIS user has permission to access them (see Why isn't IIS serving my static CSS / JS files? - Server Fault).

If the above does not help, you can attach a sample where the issue is reproducible and I will try to propose something more concrete. Alternatively, if you cannot share a sample, recording the following logs will be of help too.

I hope this helps.

Best Regards,
Momchil
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
.NET Core Report Viewer - Blazor
Asked by
Edwin
Top achievements
Rank 1
Answers by
Momchil
Telerik team
Share this question
or