468,537 Members | 1,577 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,537 developers. It's quick & easy.

strange problem

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
Nov 18 '05 #1
5 1020
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
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
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


Nov 18 '05 #2
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

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> schreef in bericht
news:Ov**************@TK2MSFTNGP09.phx.gbl...
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
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
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

Nov 18 '05 #3
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

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> schreef in bericht
news:Ov**************@TK2MSFTNGP09.phx.gbl...
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
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
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

Nov 18 '05 #4
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" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
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]" <BA************@sympatico.ca> schreef in bericht
news:Ov**************@TK2MSFTNGP09.phx.gbl...
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
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
> 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
>
>



Nov 18 '05 #5
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 [Microsoft MVP]" <BA************@sympatico.ca> schreef in bericht
news:ui**************@TK2MSFTNGP12.phx.gbl...
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" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
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]" <BA************@sympatico.ca> schreef in bericht news:Ov**************@TK2MSFTNGP09.phx.gbl...
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
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
> 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
>
>


Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Paul Drummond | last post: by
25 posts views Thread by Neil Ginsberg | last post: by
1 post views Thread by Sam Kong | last post: by
11 posts views Thread by Martin Joergensen | last post: by
8 posts views Thread by Dox33 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.