473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

images not showing on dev-machine

I'm developping a web-app using VS2008 (Pro edition) on a Vista Ultimate
machine
..
For some reason images aren't shown, the only thing shown is the little
square with the circel, triangle and square in it.

Even if I set the ImageURL property in my Page_Load and set it to the
absolute path of the image, it doesn't show.
I have also tried using '~/Images/58.jpg' '/Images/58.jpg' 'Images/58.jpg'
but still the same result.

It's real annoying if something this simple just won't work.

Has anyone encountered this and maybe have some sort of solution for it ?

TIA,
Jurjen.

Jan 13 '08 #1
7 8462
On Jan 13, 10:52*pm, "Jurjen de Groot" <Jurjen.de.Gr...@xs4all.nl>
wrote:
I'm developping a web-app using VS2008 (Pro edition) on a Vista Ultimate
machine
.
For some reason images aren't shown, the only thing shown is the little
square with the circel, triangle and square in it.

Even if I set the ImageURL property in my Page_Load and set it to the
absolute path of the image, it doesn't show.
I have also tried using '~/Images/58.jpg' '/Images/58.jpg' 'Images/58.jpg'
but still the same result.

It's real annoying if something this simple just won't work.

Has anyone encountered this and maybe have some sort of solution for it ?

TIA,
Jurjen.
Ensure that images are appropriately stored and accessible when you
type the full url in the address bar, e.g.

http://localhost/Images/58.jpg (if site is located under root)

if images are there but you can't see them, it could be a permissions
issue, or a format problem
Jan 13 '08 #2
Does the account ASP.NET runs as have file permissions to access the images ?

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Jurjen de Groot" <Ju*************@xs4all.nlwrote in message news:e$**************@TK2MSFTNGP06.phx.gbl...
I'm developping a web-app using VS2008 (Pro edition) on a Vista Ultimate machine
.
For some reason images aren't shown, the only thing shown is the little square with the circel, triangle and square in
it.

Even if I set the ImageURL property in my Page_Load and set it to the absolute path of the image, it doesn't show.
I have also tried using '~/Images/58.jpg' '/Images/58.jpg' 'Images/58.jpg' but still the same result.

It's real annoying if something this simple just won't work.

Has anyone encountered this and maybe have some sort of solution for it ?

TIA,
Jurjen.

Jan 13 '08 #3
I have taken your advice and found out that my ASPNET account is actually NT
AUTHORITY\NETWORK SERVICE. I have granted this user rights for the Image
folder, but the pictures aren't shown. I've granted this user rights from
the root level of my development folder but still the pictures don't show up
in the page.

I've also tried accessing Image-files through System.IO and reading the
content into a string and that works just fine, so I guess access-rights are
configured ok.

I'm a little lost as to what to do next.
Jurjen.
"Jurjen de Groot" <Ju*************@xs4all.nlwrote in message
news:e$**************@TK2MSFTNGP06.phx.gbl...
I'm developping a web-app using VS2008 (Pro edition) on a Vista Ultimate
machine
.
For some reason images aren't shown, the only thing shown is the little
square with the circel, triangle and square in it.

Even if I set the ImageURL property in my Page_Load and set it to the
absolute path of the image, it doesn't show.
I have also tried using '~/Images/58.jpg' '/Images/58.jpg' 'Images/58.jpg'
but still the same result.

It's real annoying if something this simple just won't work.

Has anyone encountered this and maybe have some sort of solution for it ?

TIA,
Jurjen.
Jan 14 '08 #4
If the ASP.NET account has the necessary permissions,
it's likely that you have a problem in your code.

Can you post the code you use to access the image files ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Jurjen de Groot" <Ju*************@xs4all.nlwrote in message news:Oh**************@TK2MSFTNGP03.phx.gbl...
>I have taken your advice and found out that my ASPNET account is actually NT AUTHORITY\NETWORK SERVICE. I have granted
this user rights for the Image folder, but the pictures aren't shown. I've granted this user rights from the root level
of my development folder but still the pictures don't show up in the page.

I've also tried accessing Image-files through System.IO and reading the content into a string and that works just
fine, so I guess access-rights are configured ok.

I'm a little lost as to what to do next.
Jurjen.
"Jurjen de Groot" <Ju*************@xs4all.nlwrote in message news:e$**************@TK2MSFTNGP06.phx.gbl...
>I'm developping a web-app using VS2008 (Pro edition) on a Vista Ultimate machine
.
For some reason images aren't shown, the only thing shown is the little square with the circel, triangle and square
in it.

Even if I set the ImageURL property in my Page_Load and set it to the absolute path of the image, it doesn't show.
I have also tried using '~/Images/58.jpg' '/Images/58.jpg' 'Images/58.jpg' but still the same result.

It's real annoying if something this simple just won't work.

Has anyone encountered this and maybe have some sort of solution for it ?

TIA,
Jurjen.

Jan 14 '08 #5
On Jan 14, 1:40 pm, "Jurjen de Groot" <Jurjen.de.Gr...@xs4all.nl>
wrote:
I've also tried accessing Image-files through System.IO and reading the
content into a string and that works just fine...
Binary read is working.
On Jan 14, 9:24*pm, "Jurjen de Groot" <Jurjen.de.Gr...@xs4all.nl>
wrote:
the first and second image don't show in the
(vs2008) Designer, but the other 5 do show just fine. When running the page
they are not visible.
But browsing in the web browser is not working.

Right?

If the format of the file is correct (it's not a text, or any other
file saved with the .jpg extension) and you can open it in Paint, or
Photoshop, but not in the browser, then it could be a format problem.
There are some situations when browsers (at least IE and FF) cannot
show some jpeg files, if I'm not wrong, in CMYK encoding. In this case
you can save file in RGB to see if this helps.
Jan 14 '08 #6
Now that the app is running in test in the field, the images are shown just
fine. It's just really strange that when running local there's problem with
this.
Thanks for all your help on this.
Jurjen
"Jurjen de Groot" <Ju*************@xs4all.nlwrote in message
news:e$**************@TK2MSFTNGP06.phx.gbl...
I'm developping a web-app using VS2008 (Pro edition) on a Vista Ultimate
machine
.
For some reason images aren't shown, the only thing shown is the little
square with the circel, triangle and square in it.

Even if I set the ImageURL property in my Page_Load and set it to the
absolute path of the image, it doesn't show.
I have also tried using '~/Images/58.jpg' '/Images/58.jpg' 'Images/58.jpg'
but still the same result.

It's real annoying if something this simple just won't work.

Has anyone encountered this and maybe have some sort of solution for it ?

TIA,
Jurjen.
Feb 3 '08 #7
Try going into IIS Manager and for your Default Web Site set the Home
Directory to the path on disk where your website resides. For me it is
C:\Development\Project23.net (my current web project).

That will upset some other programs that do web demos on your local machine,
like some 3rd party controls that demonstrate their stuff using the local
web server and expect C:\inetpub\wwwroot to be your home directory, but you
can change it back and forth as needed.

It works well for me and allows me to test and debug my projects as if they
were on the production server.

"Jurjen de Groot" <Ju*************@xs4all.nlwrote in message
news:uK*************@TK2MSFTNGP02.phx.gbl...
Now that the app is running in test in the field, the images are shown
just fine. It's just really strange that when running local there's
problem with this.
Thanks for all your help on this.
Jurjen
"Jurjen de Groot" <Ju*************@xs4all.nlwrote in message
news:e$**************@TK2MSFTNGP06.phx.gbl...
>I'm developping a web-app using VS2008 (Pro edition) on a Vista Ultimate
machine
.
For some reason images aren't shown, the only thing shown is the little
square with the circel, triangle and square in it.

Even if I set the ImageURL property in my Page_Load and set it to the
absolute path of the image, it doesn't show.
I have also tried using '~/Images/58.jpg' '/Images/58.jpg'
'Images/58.jpg' but still the same result.

It's real annoying if something this simple just won't work.

Has anyone encountered this and maybe have some sort of solution for it ?

TIA,
Jurjen.

Feb 6 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Morgan | last post by:
Hello I have been using the CDONTS.Newmail object for a number of years to send nicely formatted HTML Emails with inline images. I am now trying to switch over to using CDO and I cannot...
8
by: lawrence | last post by:
Under the domain publicpen.com I've several dozen sites in subdiretories, such as www.publicpen.com/honenbeger. I've no trouble with any of these sites. But under one, which I put in yesterday,...
40
by: Geoff Cox | last post by:
Hello, I am still having problems - apologies if the answer is in previous postings! I now have, in the header, <sctipt> var myimages=new Array();
2
by: Dev | last post by:
Dear Friends, I have 20 images in Array list.How do display the images into picture box every 1 second.If anyone knows please let me know....I don't want reload the form.The images are comming...
19
by: Steve Franks | last post by:
I am using VS.NET 2005 beta 2. When I run my project locally using the default ASP.NET Development Web Server it runs using a root address like this: http://localhost:11243/testsite/ However...
7
by: somnamblst | last post by:
I am using jQuery & hideAllExcept.js from this demo tute http://enure.net/dev/hide-all-except-one/ The issue is that on a page with other content, the images I have placed in the toggleThis...
2
by: Alexei Prada | last post by:
Hi guys, I'm not really advanced in html or css, and I'm having a problem that is really getting me out of my nerves. So I redesigned my portfolio site with dreamweaver as my main html css editor....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.