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

Images not Appearing on Server

2 Answers 100 Views
ListView
This is a migrated thread and some comments may be shown as answers.
TPerry
Top achievements
Rank 1
TPerry asked on 19 Sep 2012, 03:28 PM
Hello, I am hoping that someone can come to my rescue with this issue.  I have been tearing my hair out and just cannot figure out a solution....  I want a ListView that displays images stored in SQL.  I have a Stored Procedure that returns the data, including a Thumbnail Image that should be displayed.  The data type of the Thumbnail Image is varbinary(MAX).  Locally, it works perfectly.  However, once I publish to the server, it doesn't.  I have three items to display, each with a picture.  The first time, the page loads, it will display image 1, but not image 2 and 3.  If I click Refresh, it will display Image 2 and 3, but not Image 1.  If I click Refresh again, it will display Image 2, but not Image 1 and 3, etc, etc, etc.  I used the code found here:  http://demos.telerik.com/aspnet-ajax/binaryimage/examples/default/defaultvb.aspx?product=listview to create my page.  I even created a blank page, no master page, no tables, no style, etc and literally just copied in the code, changed the DataSource, and the Field Names.  Locally = Perfect.  Server=Same issue.  I'm really at a loss here and would love any insight....  please, please, please, save my forehead from further bruising!

2 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 24 Sep 2012, 11:48 AM
Hello Tara,

Thank you for contacting us.

You could try inspecting the rendered image in the HTML. If it has a src set but no image is returned from the URL, the URL itself may not be valid. If you are using URL rewriting modules, for example, your URL rewriter may not interpret the resource handler URL correctly. You should exclude the resource handler URL from rewriting in these cases. 

One more thing that you should have in mind and is a common reason for questions about the control not showing image is that RadBinaryImage is not supported in web farm or web garden hosting.

All the best,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
TPerry
Top achievements
Rank 1
answered on 25 Sep 2012, 02:38 PM
Actually, we finally found the problem... our IIS server was version 6.  Once we upgraded to IIS7, it worked perfectly.  Frustrting, but at least we finally figured it out.
Tags
ListView
Asked by
TPerry
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
TPerry
Top achievements
Rank 1
Share this question
or