strange problem

E

EMW

On my pc on which I created my aspx files, my site works fine.
I use IIS5 and is does everything I want it to do.

I moved my site to the networkserver (it's a intranet site) and then
something strange happens.

On my photo page, I show a few pictures that are found in a certain folder.
But instead of seeing my pictures, I see only the placeholders with a little
icon in the left-upper corner with a red cross in it.
I know it finds the files, because if I change the filepath in the apsx
file, I get a message telling me the file cannot be found.

But why are my pictures not normaly visible?
If I go to them via an URL, I can see them in my explorer.

Because there is a list created, before the pictures are shown, I can see
that all my picture - filenames are put in that list, so the program does
find them.
it just isn't showing them.

Please advise?

rg,
Eric
 
K

Ken Cox [Microsoft MVP]

Is it possible that your browser or a proxy server has cached a non-existent
version of the images? Make sure IE is set to get a new page every time.

I worked at a place where the system cached pages so aggressively that it
was almost impossible to tell if a problem had been fixed.

When you right-click on the missing image to check the properties, does it
give a clue as to where the server "thinks" the image is located?

Ken
 
E

EMW

Yes, it gives the full path of where the images are located.
If I change this path a little, knowing it would never find the images, it
doesn't find them and I get an error.

I have one pulldown listbox and a datagrid on my page.
The images are in a subfolder of the folder "Fotos" and the subfoldernames
are shown in the listbox.
Then the user can select one and the datagrid becomes visible with the
images from that folder.

I works fine on my own PC when running it in VS.NET or when I go to the page
as a user and not as developer.

What could this be?

rg,
Eric
 
E

EMW

btw. I use the physical path of the application to locate the images and
pass this on to every image.

ie.: img.imageurl = "d:\inetpub\wwwroot\........\image.jpg"

There is a few folders in the dotted space, but I didn't want to write them
all...

If I call an image in IE with http:// etc. then it shows the image.

I'm puzzeled...

rg,
Eric
 
K

Ken Cox [Microsoft MVP]

You can't use a physical path like that because the browser will look on the
local machine for the image. You have to use a relative path.

That's where your problem lies. You can't use the file system path that way.

Ken
 
E

EMW

Finally solved it. This page helped:
http://west-wind.com/weblog/posts/269.aspx

for the imageurl I needed to use "~/fotos/image1.jpg".

thanks!
Eric


Ken Cox said:
You can't use a physical path like that because the browser will look on the
local machine for the image. You have to use a relative path.

That's where your problem lies. You can't use the file system path that way.

Ken

EMW said:
btw. I use the physical path of the application to locate the images and
pass this on to every image.

ie.: img.imageurl = "d:\inetpub\wwwroot\........\image.jpg"

There is a few folders in the dotted space, but I didn't want to write
them
all...

If I call an image in IE with http:// etc. then it shows the image.

I'm puzzeled...

rg,
Eric



"Ken Cox [Microsoft MVP]" <[email protected]> schreef in bericht
Is it possible that your browser or a proxy server has cached a non-existent
version of the images? Make sure IE is set to get a new page every time.

I worked at a place where the system cached pages so aggressively that it
was almost impossible to tell if a problem had been fixed.

When you right-click on the missing image to check the properties, does
it
give a clue as to where the server "thinks" the image is located?

Ken


On my pc on which I created my aspx files, my site works fine.
I use IIS5 and is does everything I want it to do.

I moved my site to the networkserver (it's a intranet site) and then
something strange happens.

On my photo page, I show a few pictures that are found in a certain
folder.
But instead of seeing my pictures, I see only the placeholders with a
little
icon in the left-upper corner with a red cross in it.
I know it finds the files, because if I change the filepath in the apsx
file, I get a message telling me the file cannot be found.

But why are my pictures not normaly visible?
If I go to them via an URL, I can see them in my explorer.

Because there is a list created, before the pictures are shown, I can see
that all my picture - filenames are put in that list, so the program does
find them.
it just isn't showing them.

Please advise?

rg,
Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top