This is a migrated thread and some comments may be shown as answers.

PictureBox Invalid image data Too many automatic redirections were attempted

3 Answers 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gordon
Top achievements
Rank 1
Gordon asked on 17 Dec 2020, 06:11 PM

I'm dynamically setting the value on a PictureBox to a api controller that resizes the image from storage and returns the bytes.

ex: https://localhost:44300/company-logos/4?width=96

 

Getting this error:

An error has occurred while processing PictureBox 'Logo':
Invalid image data.
------------- InnerException -------------
Too many automatic redirections were attempted.

 

This was working fine up until a couple weeks ago. Not sure what changed to be honest.

 

If I access the route directly, the controller works as expected (returns the resized image). When setting it in the report, the controller never gets called.

 

If I set the value to an external source, it's working. Of course the image isn't resized though.

ex: https://somedomain.blob.core.windows.net/logos/00000004/635939217942995665_FullSizeRender.jpeg

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 22 Dec 2020, 10:55 AM

Hi Gordon,

The issue is new for us and we need further details. Can you attach a Trace Listener to the project hosting the Reporting engine and send us the generated log when the issue occurs? I hope our code will log the exact Stack Trace of the error.

Which Reporting version do you use?

How do you render the report? In an Html5 Viewer, in a Report designer, in a desktop viewer?

What changed in the environment just before the problem started?

Regards,
Todor
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Gordon
Top achievements
Rank 1
answered on 22 Dec 2020, 07:49 PM

Hi Todor - Thank you for replying.

 

Can't attach txt file, so there's a screen cap. Not sure what's causing the redirects (xhr/cookies?).

 

Ver. 2018.2.516 HTML5 viewer.

 

We recently updated to ASP.NET 4.8

0
Nasko
Telerik team
answered on 25 Dec 2020, 11:27 AM

Hi Gordon,

The log tells me that the URL https://localhost:44300/company-logos/4?width=96 returns HTTP status 302 Found. But it does this multiple times and I am not sure what is the reason for that. URL redirects are usually configured in the application's configuration file. Please check the application to see if such rules have been defined.

Regards,
Nasko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Gordon
Top achievements
Rank 1
Answers by
Todor
Telerik team
Gordon
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or