HI
I have written a .NET 8 MVC Application using Telerik Reporting 2025 Q1.
The report works fine when published to local IIS, but fails in a Linux Docker Container:
http://localhost:8080/Home/Report
Error in browser console :
Failed to load resource: the server responded with a status of 500 (Internal Server Error) /api/reports/clients/af4ec7bb24c/parameters report:1
Uncaught (in promise) Invalid report type
HTML5 Report Viewer in View (ReportViewer.cshtml):
$("#reportViewer1").telerik_ReportViewer({
serviceUrl: "@Url.Content("~/api/reports/")",
reportSource: {
// report: "MyReport.trdp"
report: "@Model.ReportType.AssemblyQualifiedName",
parameters: {}
},
...
});
After trying again and again, I finally found the problem: it's the default image set in PictureBox1.
Report1.Designer.cs
this.pictureBox1.Value = ((object)(resources.GetObject("pictureBox1.Value")));
Report1.resx:
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBox1.Value" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBOR......ggg==
</value>
</data>
Once I removed the PictureBox, the report viewer worked correctly in the Linux Docker container.
My Questions:
1. Why does the Report Viewer show only a weak message "Invalid report type" ?
.NET 8 no longer supports System.Drawing.Bitmap in Linux Docker Container,
A clearer error message than just 'Invalid report type' would be helpful.
2. Is there any config to enable more detailed error output?
How can PictureBox default images set in the report designer be supported in .NET 8 Linux Docker containers ?
*The /api/reports/formats endpoint works fine.
Environment:
Windows 10 Pro
Visual Studio 2022
.NET 8 (latest)
Docker Container:
Ubuntu 22.04 (VirtualBox)
Docker version 27.5.1
Best regards
Chris