473,756 Members | 3,390 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<Custom Error> ???

dear all,

i am a bit confused on the way custom error are handling and occurs.
First of all I have understand that customer error is used to defined more
user friendly message to my end user and that custom errors mask out more
details error if the web side is access from the local web server browser

right ?

If it is so I have read that setting the mode attribute to OFF in web.config
files will disable custom errors and send more details error instead.

Does this will remove custom error from my end users or only from Local web
server browser ?

What to do then to be able to send custome error to my end user but details
error only from my web server, is it the RemoteOnly attribute ?

regards
serge

Nov 27 '05 #1
1 1513
Hi Serge,

I think your confused, or you got me confused anyway :-)
In asp.net or in any other program for that matter, you want your end users
to recieve an error without revealing information about how the internals of
your system work.
This is because you don't want the bad guys to hack there way into your
system and of course sending a message containing error codes isn't really
user friendly.

The RemoteOnly attribute takes care of this part you can set is to true or
false depending on the situation your in. In development you can allow debug
information to be send to the client in production you don't want this to
happen.

-----
The second part of the story in adding your own exceptions to the code. You
can do this to add information to the probably already excisting exception.
The framework itself profides examples for this. Take the ArgumentExcepti on
and the ArgumentNullExc eption. ArgumentNullExc eption inherits the
ArgumentExcepti on but is more specific this exception gets thrown when a
argument on a method call is not allowed to be null. While the
ArgumentExcepti on gets thrown when there is something wrong with a passed
argument.

There is a lot about exception handling that can be said to muth to be
dealed with in this reply.

The default settings take care of most of the problems.

You can add the some error handling code in your global.asax to make sure
you handle every error in your application.

Good luck,

--
Rainier van Slingerlandt
(Freelance trainer/consultant/developer)
www.slingerlandt.com
"serge calderara" wrote:
dear all,

i am a bit confused on the way custom error are handling and occurs.
First of all I have understand that customer error is used to defined more
user friendly message to my end user and that custom errors mask out more
details error if the web side is access from the local web server browser

right ?

If it is so I have read that setting the mode attribute to OFF in web.config
files will disable custom errors and send more details error instead.

Does this will remove custom error from my end users or only from Local web
server browser ?

What to do then to be able to send custome error to my end user but details
error only from my web server, is it the RemoteOnly attribute ?

regards
serge

Nov 27 '05 #2

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

Similar topics

1
4945
by: Bruce Sams | last post by:
Hello, I am running Tomcat 4.x and have tried to set global error handling using the following kind of entries in the web.xml file. But there is no redirection and I always end up with the tomcat generated error page in the browser. Does anyone have a solution to this problem? <error-page>
8
4515
by: middletree | last post by:
What's wrong with this code? strLongDesc = Replace(Replace(Replace(Replace(Trim(Request.Form("LongDesc")),"'","''"),vbC rLf,"<br>"),"<",&lt;),"<",&gt;) Background: This field is a textarea, and I needed to account for apostrophes, which I had already done, and replaced line breaks with html line breaks on my page which displays this stuff. That works fine. But then a user entered this
1
1482
by: Rob R. Ainscough | last post by:
Can someone tell me how to debug a Windows Install problem? I've created the installer project from home PC, transfered the installer project to my work PC, build the project on my work PC, but now when I run the Setup.exe it immediate generates a small dialog box with the following: <Error Message> Only option is to press Ok button which brings me to my Installation Incomplete dialog where Close is the only option.
1
3554
by: info | last post by:
Hi, My Page.IsValid displays this message as it's value. It manifests as requiredfieldvalidator.validate() always being true. Does anyone know how I can trap this error? Regards, C
4
2319
by: Neo Geshel | last post by:
Just moved to C# from VB.NET, frustrated to hell and back by inability to get much-copied (from about 20+ different resources) literal example to work. Master Page content: <meta name="keywords" content="<asp:Literal ID="ltrlKeywords" Runat="server" />"></meta> Code-Behind:
2
2943
by: purnimakarnati | last post by:
When I added a textbox and assigned the value to the textbox and added to htmltablecell while debugging I am able to see the correct assigned value but if I see the contents in the HTMLTABLE in quick watch it is showing the error of type InnerHtml <error: an exception of type: {System.NotSupportedException} occurred> str can any body tell the reason and tell the solution Thanks in advance and greatly appreciated. Thanks, purnima
3
3107
by: Yash | last post by:
Hi all, I found that while we are updating our application, the application is not known to tomcat, untill it is completed. So tomcat sends 503 page as resource not found. I want to know is virtual hosting is the right way to deal with this issue. Is it possible to customise the 503 page, so that, for any resource not found issue, tomcat displays the customised page. I am trying to set the page in tomcat directory itself. I have gone...
2
7393
by: Calvin Cheng | last post by:
Hi, I am attempting to convert a bunch of .txt files into html using the docutils package. It works for most of the txt files except for the index.txt file which gives 2 errors: (1) <Error/3Unknown Directive type "toctree" (2) (ERROR/3) Unknown interpreted text role "ref".
3
1688
by: AleXmanFree | last post by:
Hi , I have got problem with passing my inline based value to y user control (or custom control, no matter which one I use, I have tried both to make sure it doesnt matter) . So say I have property called ImagePath and i want to pass my value through asp.net specific inline cunstruction: <uc:MyControl runat=server id="someId" ImagePath="<%= Request.ApplicationPath %>/App_Themes/<%= Page.Theme %>/Images/ ball_.png" />, problem that in...
0
9455
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10031
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9869
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9838
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8709
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7242
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2665
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.