Showing posts with label iis5. Show all posts
Showing posts with label iis5. Show all posts

Saturday, March 31, 2012

strange 404 in ASP.NET IIS5

I have been receiving this very strange 404 lately and was wondering
if anyone else out there has had a similar problem. For some reason
when users receive this error and they hit refresh the error goes
away. Seems like a IE or ASP.NET cache problem, but can not find any
articles on it.

404 not found C:\inetpub\mySite\mySite_com_files\pictures.aspx

StackTrace
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context,
String requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)

-MikeOh yeah, sometimes instead of mySite_com_files it will be a username_com_files or username_files. _files is on all these 404's no matter what was before it.

-Mike

-- Mike wrote: --

I have been receiving this very strange 404 lately and was wondering
if anyone else out there has had a similar problem. For some reason
when users receive this error and they hit refresh the error goes
away. Seems like a IE or ASP.NET cache problem, but can not find any
articles on it.

404 not found C:\inetpub\mySite\mySite_com_files\pictures.aspx

StackTrace
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context,
String requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)

-Mike

Strange ASP.NET problem

i've 2 platform which i developed asp.net. 1 is a windows xp with iis5.1 and another 1 is a windows 2000 server.

Both have exactly the same .net framework.. regional settings.. and both are using the same codes and have compile with no problem in both platforms.

Then i've a webform which does a regular expression check on a date. It works perfectly fine in the windows xp machine, upon an invalid date (e.g. aaa, aa/aa/aaaa, 30/30/2222, etc), the message will come out. But when i run the exact same code in the win2k server, upon clicking an invalid date like in the winxp machine, it gives me this error:

The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Funny problem is that it worked on the winxp machine and not the win2k machine? What settings could i be missing in the OS itself? or iis?? Coz the source codes everything is the same.i found out its because the aspnet_client folder is missing thus the validation didn't work and got through the form.

Doesnt the asp.net validation work on the server side? It seems it just work in the client side through javascript. All the while i have the impression that the form validation works both on the client and have some check in the server side as well. But after this, when the javascript isnt available, it passes through.

Saturday, March 24, 2012

Strange Error with urlMappings

Hello

In my computer (XP Pro Sp2, IIS5), when I built my web application : it's work

but when I built in my server 2003, the mappings don't work.

I don't understand why ?

<urlMappings enabled="true">
<add url="~/index.html" mappedUrl="~/Default.aspx" />
</urlMappings


Hello!
I haveexactly the same problem but I'm running on win2000 server.
When I run the site with ctrl-F5 it runs perfectly, all mappings arecorrect, when I upload it to my server the mappings seem to be ignored,just 404 all the time.
Does anyone know?
Best regards,
Peter Larsson


Did you guys figure out a solution ? I just started using urlmappings
Yes, as it turned out I had to execute .html pages through the aspx-dll as well, then it worked like a charm, you change it in the IIS settings.

/P

Thursday, March 22, 2012

Strange IIS Problem

I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.
Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.
What could be the probable cause of this eccentricity & how do I
resolve it?
Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.
Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!On Mar 1, 3:19 am, r...@.rediffmail.com wrote:
> I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
> run ASP applications. I connect to the Internet using a LAN
> connection. My PC is a standalone machine.
> Of late, what I find is if I am not connected to the Internet, it
> takes quite some time for local intranet ASP pages (that physically
> reside in my PC) to get downloaded completely but if I am connected to
> the Internet, then the same ASP pages get downloaded in a jiffy. Since
> last 2-3 days, I have been noticing this strange problem. Earlier
> local intranet ASP pages would get downloaded within no time
> irrespective of whether I was connected to the Internet or not.
> What could be the probable cause of this eccentricity & how do I
> resolve it?
> Please note that I have been working with the same setup (i.e. same IP
> address to connect to the Internet, same ports etc.) since last 3-4
> years but this is the first time I am encountering this problem.
> Another petty discrepancy - usually whenever IE is opened (assuming
> that the home page is set to 'about :blank'), the right-hand side of
> the Status Bar shows the text 'Internet'. When a ASP page on the local
> intranet is accessed, the text on the right-hand side of the Status
> Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
> that even if a ASP page on the local intranet is accessed in IE, the
> text on the right-hand side of the Status Bar still remains
> 'Internet'; it doesn't change to 'Local Intranet'!
let's assume that it's not related to ASP.NET :-)
It seems that you need to check LAN Settings in IE - Tools - Internet
Options. I think you should bypass proxy for local sites and except
the local addresses (for example 10.* if your intranet IP starts from
10.*)

Strange IIS Problem

I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.

Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.

What could be the probable cause of this eccentricity & how do I
resolve it?

Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.

Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!On Mar 1, 3:19 am, r...@.rediffmail.com wrote:

Quote:

Originally Posted by

I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.
>
Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.
>
What could be the probable cause of this eccentricity & how do I
resolve it?
>
Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.
>
Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!


let's assume that it's not related to ASP.NET :-)

It seems that you need to check LAN Settings in IE - Tools - Internet
Options. I think you should bypass proxy for local sites and except
the local addresses (for example 10.* if your intranet IP starts from
10.*)
I've been getting the exact same problem myself...IIS 5.1 is dog slow to return a localhost page.

Also started in the last few days. I've been searching all over to find a solution but no luck..

Seems to be tied into display of images, as htm pages with no images come up quickly.

Hope somebody who has found an answer, sees this.

<rn5a@.rediffmail.comwrote in message news:1172715577.007290.38550@.z35g2000cwz.googlegro ups.com...

Quote:

Originally Posted by

>I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.
>
Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.
>
What could be the probable cause of this eccentricity & how do I
resolve it?
>
Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.
>
Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!
>

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
> >> >> >

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.tiscali.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.tiscali.nl...
see
does
>
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.tiscali.nl...
see
does
>
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.tiscali.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...
> non-existent
> see
> does
>
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.tiscali.nl...
bericht
time.
it
apsx
>