Last post Apr 12, 2008 12:50 AM by JohnieB
Sep 11, 2007 03:31 PM|JohnieB|LINK
I setup a very simple web site - in VS 2005 - using the Personal Web Site Starter Kit. It works great on my local machine, but when I run the site from my host site all the images in the Photo of the Day or Albums are the dreaded "Red X". There's nothing
from my Host's "Knowledgebase" refering to images problems, nor can I find a specific reference to the Starter Kit having problems - so I appear to be unique. Lucky me!
Anyway...Does anyone have suggests concerning what I might be doing incorrectly or areas I can look? I've been through th basics - like checking my Internet Options to ensure images are allowed - and they are. This appears to me to be either something internal
to the kit that I need to "tweek" to get it to render the image on the host site, or possible a security setting on the host site.
Any help would be greatly appreciated.
Sep 11, 2007 03:46 PM|jguadagno|LINK
Make sure you copied the images to the host and that the URL paths are not hard coded values.
In Internet Explorer, right click on the X and look at the properties to see what the browser is looking for, that should help you.
Sep 11, 2007 03:57 PM|JohnieB|LINK
The Personal Web Site Starter Kit establises a "Personal.mdf" database file, which is accessed through SQLExpress. The images are stored in the database, probably steamed into the formview control, and it is the rendering on the host that isn't working because
on my local machine it works great.
I have seen a number of suggested 'fixes" for the dreaded Red X that say not to use hard coded URL paths. I know that to connect to the site the connection strings that came with the kit had to be slightly tweeked...so my next step is to dig into the code
and see how the images are being rendered. It appears to be hitting the database fine and has the key to the image from the database...but the image simply isn't being properly displayed.
Sep 11, 2007 06:06 PM|jguadagno|LINK
It might be the path that the code writes the images to (if they are extracted from the database). Check the path and make sure the ASPNET process has write access to it.
Sep 12, 2007 06:10 PM|JohnieB|LINK
For what it's worth...this happens on another web page (not my own, actually my banks!).
In both cases, the properties of the web displayed images are "Type: Not Available" and "Size: Not Available" - thus I believe IE doesn't know how to display the image because it doesn't know it's an image.
When I run the web site on my local machine through VS 2005, it returns the file as a type jpeg, and has all the size information correctly displayed in the properties. My web site on the host is reading the database fine, but the images just won't render
properly because the information is not being passed back to me.
Very strange. Could be firewall related I guess....I'll keep digging.
Apr 09, 2008 06:29 PM|ramonmq|LINK
I am having the same problem. Were you able to fix it?
Apr 12, 2008 12:50 AM|JohnieB|LINK
Yes. My bank fixed their own problem. As for my website....I reported the problem to my host service...after a week or so they said they had "fixed the problem" ad sure enough the images started to appear properly. I believe there was a setting somewhere
on the host that needed changing...because they didn't admit anything was screwed up...they just "fixed the problem".
Sorry I don't have more than that...but reporting it to my host corrected the issue for me.