hello All I am having a problem when setting image src to local file when running the Application under windows 2008R2 64. the Application is running normally on 2008,Xp,win7 but when running the Application under 2008R2 64 no image is Displayed checking the source of the Page in IE and Chrome I can See the SCR point to the Correct location but right Click the image and view its properties all properties are Not Available . If any one can help Thanks
views:
17answers:
1
A:
First off, is the tag not <img src...>
? You said SCR so I just wanted to make sure you'd typed SCR on purpose or if that was a typo...
I've had the same problem debugging my websites in Visual Web Developer... The image tags all look right, I've even copied the source text (the address of the image) as reported by VWD without any improvement.
What I found was that the problem had to do with how I was specifying the path. I prefer to use absolute paths from the web root, but it seems like some software doesn't like that, try a relative path from the page you're working on:
So instead of:
<img src="~/Images/header.png">
Use
<img src="../Images/header.png">
HTH
Logan Young
2010-07-21 14:24:55
thanks Logan But that not the Issue the issue is when Image src is set to a local file on the Client Machine like "file:///C:\TempFiles\Image1.jpeg"the Image will not Show in windows 2008R2 64 this work fine on windows 2008 , windows 7 and XP . further if you check the page source at runtime you can see the Image src point to the correct path on the Client Machine,if you right Click the Image and Select Properties you will notice that the image have all its Properties set to Not Available, I think its Security Issue with 2008R2 but I dont Know where to Look :(
Jafar
2010-07-21 18:20:21
It seems like a stupid question, but are you 100% sure that the image is actually there and that the name is exactly the same as what you're using (i.e. No spaces anywhere that you could be missing)?It's also happened to me on occasion that although I had the location of a file right, I wasn't able to use it because of a Space in the filename that I was missing.Unfortunately, I've never linked images with `file:///` so I can't help you there... Is there a specific reason you're doing it that way instead of using a more common path format?
Logan Young
2010-07-22 07:04:07
I am 100% sure every thing is OK the Application run normally on windows 2008 and 7 and XP its only show this problem when browse the Application from windows 2008R2 , further investigations show its mostly a Security issue on 2008R2
Jafar
2010-07-22 09:55:20
Ok, well, if it's a security issue, then I'm going to have to step aside now and let someone else help you as I have next to no experiene working on Win Server 2008 R2...
Logan Young
2010-07-22 10:38:59