473,396 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

customized error message

Hello everybody,

Please let me know how to avoid giving physical path & line number in the
error messages of web applications. Instead i would like to replace it with
general error message to the user.

Regards,
Mehroz
Jul 19 '05 #1
3 1674
Hi Mehroz,

Follow the steps in this article, but do it for a 500 page as opposed to a
404.
http://www.aspfaq.com/show.asp?id=2162

Also, one thing you should probably do, depending on the completeness of
your 500 page, is do:

<% Response.Clear %>
Your 500 error page content
<% Response.End %>

This way you can have a full page, from <html> to </html> as your 500 page
without it blending into the current page content.

Ray at home

"Mehroz" <Me*****@ducont.com> wrote in message
news:ug**************@TK2MSFTNGP11.phx.gbl...
Hello everybody,

Please let me know how to avoid giving physical path & line number in the
error messages of web applications. Instead i would like to replace it with general error message to the user.

Regards,
Mehroz

Jul 19 '05 #2

The url given by you shows to customise only a particular error- that is
for "file not found".

I want to trap errors of the following nature -
Microsoft VBScript runtime error '800a0009'

Subscript out of range: '[number: 3]'

/WebSite/Badpage1.asp, line 8

I don't users to see the runtime error number and also
"/WebSite/Badpage1.asp, line 8 " as a part of the message.

Regards,
Mehroz

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
I think Ray meant to post this URL:
http://www.aspfaq.com/2335

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Mehroz Batul" <me*****@ducont.com> wrote in message
news:ep**************@TK2MSFTNGP12.phx.gbl...

The url given by you shows to customise only a particular error- that is
for "file not found".

I want to trap errors of the following nature -
Microsoft VBScript runtime error '800a0009'

Subscript out of range: '[number: 3]'

/WebSite/Badpage1.asp, line 8

I don't users to see the runtime error number and also
"/WebSite/Badpage1.asp, line 8 " as a part of the message.

Regards,
Mehroz

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James | last post by:
Does anyone know if it is possible, in C#, to use a customized window frame? For example, programs like Winamp and AdAware do not use the standard box window frame, but a customized design. ...
1
by: Jean Bredeche | last post by:
Hi: I am trying to create customized confirmation/error/etc dialogs in my application. Up to now we've been using MessageBox.Show and passing it the various necessary flags (buttons, icons,...
4
by: Brian Henry | last post by:
I want to have a custom page for errors, instead of the standard page which we get now built into asp.net, so i can have the error page shown in the company's template... how would i go about doing...
0
by: Chris | last post by:
To centralize much of the database connectivity and variable declarations, I decided it would make sense to create my own class that inherits from the page class and derive each of my form classes...
2
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
5
by: RedHair | last post by:
I have a ASP.NET 2.0 web page which inherits a customized base page class and have a master page, their relation is as below Customized base page class --> web page --> master page How to...
6
by: Victor | last post by:
Hi. all I have a customize web control. I have three simple properties and customized render class. then I add this control into my datalist like <asp:DataList ID="datalist" runat="server"...
3
by: teephish | last post by:
Hello, I'm currently in the process of creating a small access database and I'm having some problems with creating a customized search. I would like the user to be able to search a record by last...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.