Tuesday, March 13, 2012

strange problem

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,
EricIs 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:40e5e76c$0$62380$5fc3050@.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
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]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
news:OvSCsVKYEHA.1652@.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:40e5e76c$0$62380$5fc3050@.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
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]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
news:OvSCsVKYEHA.1652@.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:40e5e76c$0$62380$5fc3050@.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
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:40e67498$0$62399$5fc3050@.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]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
> news:OvSCsVKYEHA.1652@.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:40e5e76c$0$62380$5fc3050@.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
>>>>
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]" <BANSPAMken_cox@.sympatico.ca> schreef in bericht
news:ui$AEEQYEHA.2364@.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:40e67498$0$62399$5fc3050@.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]" <BANSPAMken_cox@.sympatico.ca> schreef in
bericht
> > news:OvSCsVKYEHA.1652@.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:40e5e76c$0$62380$5fc3050@.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
> >> >> >

0 comments:

Post a Comment