473,890 Members | 1,885 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 1517
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
4953
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
4522
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
1489
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
3558
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
2324
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
2951
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
3112
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
7401
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
1695
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
9975
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
9812
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10799
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
10899
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
10446
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9614
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...
0
7154
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();...
0
5832
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4655
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

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.