Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: ASP Custom Error Handling Problem


Message #1 by "kostas lagos" <nkia@i...> on Wed, 27 Nov 2002 07:57:24
Hello everyone

I have some problems displaying custom error messages.I use IIS 5.0
and i cant get it to show the asp page that i define.I have tried several 
ways to make it work but nothing happens..The procedure i follow is like 
this:I create a directory and i place my asp error handling page in it. 
After that i define in the custom errors tab of my default web site the url
(relative) to the page i want to display for error 500-100.The message i 
get is that it cannot find the page

If anyone knows something else please let me know

Lagos Kostas
Message #2 by "Joe Ingle" <joe@k...> on Wed, 27 Nov 2002 08:27:06 -0000
Hi Lagos

1) Make sure that your IIS Error directory is a virtual directory of 
your main web site. (right click > new > virtual directory)

2) Make sure that "Show friendly http error messages" is *un-checked* in 
IE?

Any problems, let me know.

Joe

-----Original Message-----
From: kostas lagos [mailto:nkia@i...]
Sent: Wednesday, November 27, 2002 7:57 AM
To: ASP Web HowTo
Subject: [asp_web_howto] ASP Custom Error Handling Problem


Hello everyone

I have some problems displaying custom error messages.I use IIS 5.0
and i cant get it to show the asp page that i define.I have tried 
several
ways to make it work but nothing happens..The procedure i follow is like 

this:I create a directory and i place my asp error handling page in it.
After that i define in the custom errors tab of my default web site the 
url
(relative) to the page i want to display for error 500-100.The message i 

get is that it cannot find the page

If anyone knows something else please let me know

Lagos Kostas
Message #3 by "Craig Flannigan" <ckf@k...> on Wed, 27 Nov 2002 08:24:19 -0000
You have entered into the IIS Custom Error page an address like

	../errors/500-100.asp

rather than a full address?



Craig.

-----Original Message-----
From: kostas lagos [mailto:nkia@i...]
Sent: 27 November 2002 07:57
To: ASP Web HowTo
Subject: [asp_web_howto] ASP Custom Error Handling Problem


Hello everyone

I have some problems displaying custom error messages.I use IIS 5.0
and i cant get it to show the asp page that i define.I have tried several
ways to make it work but nothing happens..The procedure i follow is like
this:I create a directory and i place my asp error handling page in it.
After that i define in the custom errors tab of my default web site the url
(relative) to the page i want to display for error 500-100.The message i
get is that it cannot find the page

If anyone knows something else please let me know

Lagos Kostas

_____________________________________________________________________
Please contact I.T. Support if you have received this email in error.
This e-mail has been scanned for all viruses by Star Internet.
_____________________________________________________________________


_____________________________________________________________________
Kingfield Heath Ltd. Email Disclaimer

Confidentiality : This email and its attachments are intended for the
above-named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or
show them to anyone; please reply to this email and highlight the
error.

Security Warning : Please note that this email has been created in
the knowledge that the internet is not a 100% secure communications
medium. We advise that you understand and observe this lack of
security when emailing us.

Viruses : Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that, in keeping with
good computing practice, the recipient should ensure they are
actually virus free.
_____________________________________________________________________
Message #4 by "kostas lagos" <nkia@i...> on Wed, 27 Nov 2002 11:12:34 +0200
yes, when i tried full address iis threw an error saying that it doesnt
accept full path


----- Original Message -----
From: "Craig Flannigan" <ckf@k...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Wednesday, November 27, 2002 10:24 AM
Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem


> You have entered into the IIS Custom Error page an address like
>
> ../errors/500-100.asp
>
> rather than a full address?
>
>
>
> Craig.
>
> -----Original Message-----
> From: kostas lagos [mailto:nkia@i...]
> Sent: 27 November 2002 07:57
> To: ASP Web HowTo
> Subject: [asp_web_howto] ASP Custom Error Handling Problem
>
>
> Hello everyone
>
> I have some problems displaying custom error messages.I use IIS 5.0
> and i cant get it to show the asp page that i define.I have tried several
> ways to make it work but nothing happens..The procedure i follow is like
> this:I create a directory and i place my asp error handling page in it.
> After that i define in the custom errors tab of my default web site the
url
> (relative) to the page i want to display for error 500-100.The message i
> get is that it cannot find the page
>
> If anyone knows something else please let me know
>
> Lagos Kostas
>
> _____________________________________________________________________
> Please contact I.T. Support if you have received this email in error.
> This e-mail has been scanned for all viruses by Star Internet.
> _____________________________________________________________________
>
>
> _____________________________________________________________________
> Kingfield Heath Ltd. Email Disclaimer
>
> Confidentiality : This email and its attachments are intended for the
> above-named only and may be confidential. If they have come to you in
> error you must take no action based on them, nor must you copy or
> show them to anyone; please reply to this email and highlight the
> error.
>
> Security Warning : Please note that this email has been created in
> the knowledge that the internet is not a 100% secure communications
> medium. We advise that you understand and observe this lack of
> security when emailing us.
>
> Viruses : Although we have taken steps to ensure that this email and
> attachments are free from any virus, we advise that, in keeping with
> good computing practice, the recipient should ensure they are
> actually virus free.
> _____________________________________________________________________
>
>

Message #5 by "Craig Flannigan" <ckf@k...> on Wed, 27 Nov 2002 09:18:26 -0000
I've just been down to look at how my server is configured.

I've got a folder in the root called "Errors"
In IIS -> Custom Errors, I have set:

	Type: URL
	Value: "/errors/500-100.asp"

Thinking about it - it didn't work until I placed the beginning "/" which I
wouldn't have initally done.


HTH
Craig.


-----Original Message-----
From: kostas lagos [mailto:nkia@i...]
Sent: 27 November 2002 09:13
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem


yes, when i tried full address iis threw an error saying that it doesnt
accept full path


----- Original Message -----
From: "Craig Flannigan" <ckf@k...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Wednesday, November 27, 2002 10:24 AM
Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem


> You have entered into the IIS Custom Error page an address like
>
> ../errors/500-100.asp
>
> rather than a full address?
>
>
>
> Craig.
>
> -----Original Message-----
> From: kostas lagos [mailto:nkia@i...]
> Sent: 27 November 2002 07:57
> To: ASP Web HowTo
> Subject: [asp_web_howto] ASP Custom Error Handling Problem
>
>
> Hello everyone
>
> I have some problems displaying custom error messages.I use IIS 5.0
> and i cant get it to show the asp page that i define.I have tried several
> ways to make it work but nothing happens..The procedure i follow is like
> this:I create a directory and i place my asp error handling page in it.
> After that i define in the custom errors tab of my default web site the
url
> (relative) to the page i want to display for error 500-100.The message i
> get is that it cannot find the page
>
> If anyone knows something else please let me know
>
> Lagos Kostas
>
> _____________________________________________________________________
> Please contact I.T. Support if you have received this email in error.
> This e-mail has been scanned for all viruses by Star Internet.
> _____________________________________________________________________
>
>
> _____________________________________________________________________
> Kingfield Heath Ltd. Email Disclaimer
>
> Confidentiality : This email and its attachments are intended for the
> above-named only and may be confidential. If they have come to you in
> error you must take no action based on them, nor must you copy or
> show them to anyone; please reply to this email and highlight the
> error.
>
> Security Warning : Please note that this email has been created in
> the knowledge that the internet is not a 100% secure communications
> medium. We advise that you understand and observe this lack of
> security when emailing us.
>
> Viruses : Although we have taken steps to ensure that this email and
> attachments are free from any virus, we advise that, in keeping with
> good computing practice, the recipient should ensure they are
> actually virus free.
> _____________________________________________________________________
>
>



_____________________________________________________________________
Please contact I.T. Support if you have received this email in error.
This e-mail has been scanned for all viruses by Star Internet.
_____________________________________________________________________


_____________________________________________________________________
Kingfield Heath Ltd. Email Disclaimer

Confidentiality : This email and its attachments are intended for the
above-named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or
show them to anyone; please reply to this email and highlight the
error.

Security Warning : Please note that this email has been created in
the knowledge that the internet is not a 100% secure communications
medium. We advise that you understand and observe this lack of
security when emailing us.

Viruses : Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that, in keeping with
good computing practice, the recipient should ensure they are
actually virus free.
_____________________________________________________________________
Message #6 by "Joe Ingle" <joe@k...> on Wed, 27 Nov 2002 09:27:51 -0000
Kostas

You don't need the full path if you set up your error directory as a vd 
of your main website. Settings on my servers are:

/Errors/500-100.asp

Note lack of ..

This will work

Joe

-----Original Message-----
From: kostas lagos [mailto:nkia@i...]
Sent: Wednesday, November 27, 2002 9:13 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem


yes, when i tried full address iis threw an error saying that it doesnt
accept full path


----- Original Message -----
From: "Craig Flannigan" <ckf@k...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Wednesday, November 27, 2002 10:24 AM
Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem


> You have entered into the IIS Custom Error page an address like
>
> ../errors/500-100.asp
>
> rather than a full address?
>
>
>
> Craig.
>
> -----Original Message-----
> From: kostas lagos [mailto:nkia@i...]
> Sent: 27 November 2002 07:57
> To: ASP Web HowTo
> Subject: [asp_web_howto] ASP Custom Error Handling Problem
>
>
> Hello everyone
>
> I have some problems displaying custom error messages.I use IIS 5.0
> and i cant get it to show the asp page that i define.I have tried 
several
> ways to make it work but nothing happens..The procedure i follow is 
like
> this:I create a directory and i place my asp error handling page in 
it.
> After that i define in the custom errors tab of my default web site 
the
url
> (relative) to the page i want to display for error 500-100.The message 
i
> get is that it cannot find the page
>
> If anyone knows something else please let me know
>
> Lagos Kostas
>
> _____________________________________________________________________
> Please contact I.T. Support if you have received this email in error.
> This e-mail has been scanned for all viruses by Star Internet.
> _____________________________________________________________________
>
>
> _____________________________________________________________________
> Kingfield Heath Ltd. Email Disclaimer
>
> Confidentiality : This email and its attachments are intended for the
> above-named only and may be confidential. If they have come to you in
> error you must take no action based on them, nor must you copy or
> show them to anyone; please reply to this email and highlight the
> error.
>
> Security Warning : Please note that this email has been created in
> the knowledge that the internet is not a 100% secure communications
> medium. We advise that you understand and observe this lack of
> security when emailing us.
>
> Viruses : Although we have taken steps to ensure that this email and
> attachments are free from any virus, we advise that, in keeping with
> good computing practice, the recipient should ensure they are
> actually virus free.
> _____________________________________________________________________
>
>


Message #7 by "Ken Schaefer" <ken@a...> on Wed, 27 Nov 2002 20:51:54 +1100
You might want to try narrowing down the cause of the error.

First try:
Put your custom error page in the root of your website, and change the error
URL path in the IIS MMC Snapin to:

/myErrorPageNameHere.asp

If that still doesn't work, then you know you have something else wrong.
Unlike what Joe says, it is not necessary to put the file into a virtual
directory. Any old directory is fine, even the website's root directory.

Next try:
What happens if you type the URL directly (after placing the file in the
folder you want) eg:
http://www.mysite.com/errors/500.asp

If you can get to the page, then something is happening when an error is
raised. If you can't get to the page, then something else it up.

Continue process until you solve problem :-)

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "kostas lagos" <nkia@i...>
Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem


: yes, when i tried full address iis threw an error saying that it doesnt
: accept full path
:
:
: ----- Original Message -----
: From: "Craig Flannigan" <ckf@k...>
: To: "ASP Web HowTo" <asp_web_howto@p...>
: Sent: Wednesday, November 27, 2002 10:24 AM
: Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem
:
:
: > You have entered into the IIS Custom Error page an address like
: >
: > ../errors/500-100.asp
: >
: > rather than a full address?
: >
: >
: >
: > Craig.
: >
: > -----Original Message-----
: > From: kostas lagos [mailto:nkia@i...]
: > Sent: 27 November 2002 07:57
: > To: ASP Web HowTo
: > Subject: [asp_web_howto] ASP Custom Error Handling Problem
: >
: >
: > Hello everyone
: >
: > I have some problems displaying custom error messages.I use IIS 5.0
: > and i cant get it to show the asp page that i define.I have tried
several
: > ways to make it work but nothing happens..The procedure i follow is like
: > this:I create a directory and i place my asp error handling page in it.
: > After that i define in the custom errors tab of my default web site the
: url
: > (relative) to the page i want to display for error 500-100.The message i
: > get is that it cannot find the page
: >
: > If anyone knows something else please let me know
: >
: > Lagos Kostas
: >
: > _____________________________________________________________________
: > Please contact I.T. Support if you have received this email in error.
: > This e-mail has been scanned for all viruses by Star Internet.
: > _____________________________________________________________________
: >
: >
: > _____________________________________________________________________
: > Kingfield Heath Ltd. Email Disclaimer
: >
: > Confidentiality : This email and its attachments are intended for the
: > above-named only and may be confidential. If they have come to you in
: > error you must take no action based on them, nor must you copy or
: > show them to anyone; please reply to this email and highlight the
: > error.
: >
: > Security Warning : Please note that this email has been created in
: > the knowledge that the internet is not a 100% secure communications
: > medium. We advise that you understand and observe this lack of
: > security when emailing us.
: >
: > Viruses : Although we have taken steps to ensure that this email and
: > attachments are free from any virus, we advise that, in keeping with
: > good computing practice, the recipient should ensure they are
: > actually virus free.
: > _____________________________________________________________________
: >
: >
:
:

Message #8 by "Joe" <joe@k...> on Wed, 27 Nov 2002 10:15:46
Sorry, basing my suggestion on a set up that works fine for me :-)

Joe
Message #9 by "kostas lagos" <nkia@i...> on Wed, 27 Nov 2002 12:54:04 +0200
Thank you for your interest

My problem was that I hadnt enabled the server side script debugging..Now
everything works fine

Thanks again

kostas Lagos
----- Original Message -----
From: "Ken Schaefer" <ken@a...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Wednesday, November 27, 2002 11:51 AM
Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem


> You might want to try narrowing down the cause of the error.
>
> First try:
> Put your custom error page in the root of your website, and change the
error
> URL path in the IIS MMC Snapin to:
>
> /myErrorPageNameHere.asp
>
> If that still doesn't work, then you know you have something else wrong.
> Unlike what Joe says, it is not necessary to put the file into a virtual
> directory. Any old directory is fine, even the website's root directory.
>
> Next try:
> What happens if you type the URL directly (after placing the file in the
> folder you want) eg:
> http://www.mysite.com/errors/500.asp
>
> If you can get to the page, then something is happening when an error is
> raised. If you can't get to the page, then something else it up.
>
> Continue process until you solve problem :-)
>
> Cheers
> Ken
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> From: "kostas lagos" <nkia@i...>
> Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem
>
>
> : yes, when i tried full address iis threw an error saying that it doesnt
> : accept full path
> :
> :
> : ----- Original Message -----
> : From: "Craig Flannigan" <ckf@k...>
> : To: "ASP Web HowTo" <asp_web_howto@p...>
> : Sent: Wednesday, November 27, 2002 10:24 AM
> : Subject: [asp_web_howto] RE: ASP Custom Error Handling Problem
> :
> :
> : > You have entered into the IIS Custom Error page an address like
> : >
> : > ../errors/500-100.asp
> : >
> : > rather than a full address?
> : >
> : >
> : >
> : > Craig.
> : >
> : > -----Original Message-----
> : > From: kostas lagos [mailto:nkia@i...]
> : > Sent: 27 November 2002 07:57
> : > To: ASP Web HowTo
> : > Subject: [asp_web_howto] ASP Custom Error Handling Problem
> : >
> : >
> : > Hello everyone
> : >
> : > I have some problems displaying custom error messages.I use IIS 5.0
> : > and i cant get it to show the asp page that i define.I have tried
> several
> : > ways to make it work but nothing happens..The procedure i follow is
like
> : > this:I create a directory and i place my asp error handling page in
it.
> : > After that i define in the custom errors tab of my default web site
the
> : url
> : > (relative) to the page i want to display for error 500-100.The message
i
> : > get is that it cannot find the page
> : >
> : > If anyone knows something else please let me know
> : >
> : > Lagos Kostas
> : >
> : > _____________________________________________________________________
> : > Please contact I.T. Support if you have received this email in error.
> : > This e-mail has been scanned for all viruses by Star Internet.
> : > _____________________________________________________________________
> : >
> : >
> : > _____________________________________________________________________
> : > Kingfield Heath Ltd. Email Disclaimer
> : >
> : > Confidentiality : This email and its attachments are intended for the
> : > above-named only and may be confidential. If they have come to you in
> : > error you must take no action based on them, nor must you copy or
> : > show them to anyone; please reply to this email and highlight the
> : > error.
> : >
> : > Security Warning : Please note that this email has been created in
> : > the knowledge that the internet is not a 100% secure communications
> : > medium. We advise that you understand and observe this lack of
> : > security when emailing us.
> : >
> : > Viruses : Although we have taken steps to ensure that this email and
> : > attachments are free from any virus, we advise that, in keeping with
> : > good computing practice, the recipient should ensure they are
> : > actually virus free.
> : > _____________________________________________________________________
> : >
> : >
> :
> :
>
>
>


  Return to Index