Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Articles & Samples > C-Sharp > Error Handling


Search:
What's New - What's Hot
Walkthrough: Handling a Concurrency Exception  Version: 0.00     Price: $0.00  
Total Hits: 22  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Concurrency exceptions (DBConcurrencyException) are raised when two users attempt to change the same data in a database at the same time. In this walkthrough you create a Windows application that illustrates catching a DBConcurrencyException, locating the row that caused the error, and one strategy for you can use for handling it....

Generic Error Logger using ASP.Net & C#     
Total Hits: 476  |  Today: 0Author: Munir Shaikh      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article I just want to put some light on "global.asax" file & how we can make use of "Application_Error"....

Learning the C# Error Handling Mechanism     
Total Hits: 386  |  Today: 0Author: Budi Kurniawan      Rating:  
Read Reviews | Write Review |  Your Rating: 

Error handling is an important feature of a programming language. A good error handling mechanism will make it easier for the programmers of that language to write robust applications. This article introduces you to error handling in C# and offers examples on how to use it....

C# Simplified, part 5: Error Handling and Files     
Total Hits: 587  |  Today: 0Author: Anand Narayanaswamy      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, you will learn about the two types of errors and how to handle them. You will also learn how to access files and directories, and a number of useful things you can do with those files once you have accessed them.C# Simplified covers each and every concept of C# programming language in a concise manner. The articles in this series have been divided into several parts and will provide detailed explanations along with source codes and screenshots. This series has been specifically ...

Error Provider in C#  Version: 0.00     Price: $0.00  
Total Hits: 16  |  Today: 0Author: Scott Lysle      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article shall address the use of the error provider control in Win Forms application development. The error provider control is most useful in displaying errors associated with data entry tasks on a Windows form. The error provider control is typically used to show errors related to data entry, however, the developer may also use it to display any desired icon and accompanying tool tip in response to any monitored event. For example, successful entries could be shown with a green checkmark ...

Error Provider in C#  Version: 0.00     Price: $0.00  
Total Hits: 17  |  Today: 0Author: Tanmay Sarkar      Rating:  
Read Reviews | Write Review |  Your Rating: 

Basically we use an Error Provider control to drive attention to a specific control if a user forgets to put any input information that is required. We can substitute it by a message box. For example, if the name text box is empty on a User Information window and when user tries to save the information, a message pops up saying "Please Enter a valid name" and Name text box gets the focus....

Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'  Version: 0.00     Price: $0.00  
Total Hits: 17  |  Today: 0Author: Nipun Tomar      Rating:  
Read Reviews | Write Review |  Your Rating: 

I keep getting the following error message every time I try to run or build a C++ application in Visual Studio 2008:

Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'.

It only comes up with a C++ program. VB seems to be fine....

On Error Resume Next in C#  Version: 0.00     Price: $0.00  
Total Hits: 20  |  Today: 0Author: Questpond      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is a very simple article and some people may really find it not worth to be termed as article. One of my junior was working for a full day on this. Just wanted to ensure that other people do not face the same problem. In this article we will try to understand how we can simulate the On Error Resume Next feature of VB.NET in C#. We all understand that it’s a bad thing to handle errors, but sometimes some process should continue irrespective there is error or not....

Sedge: An Automated Error Reporting Tool  Version: 0.00     Price: $0.00  
Total Hits: 49  |  Today: 0Author: Andrei Marukovich      Rating:  
Read Reviews | Write Review |  Your Rating: 

Every developer knows how important a good bug report is and every developer wants as much details about the issue as user can provide. There are different solutions that aim to facilitate error reporting process, from tiny third-party components to such powerful technologies like Microsoft Windows Error Reporting, but most of them are designed to report fatal error only....

Application Error Handling: How to Avoid Death by a Thousand Cuts     
Total Hits: 50  |  Today: 0Author: Bryan_Sullivan      Rating:  
Read Reviews | Write Review |  Your Rating: 

When an application error occurs, whether due to user input or an internal function, we as conscientious developers want to present an error message that will help the end user correct the problem. However, it is possible to be too helpful with your error handling approach. By providing overly detailed application error messages to your users, you can actually be opening your site to hackers. Hackers spend the majority of their time performing reconnaissance on a site, slowly gathering multiple ...

Learning the C# Error Handling Mechanism     
Total Hits: 511  |  Today: 0Author: OnDotNet      Rating:  
Read Reviews | Write Review |  Your Rating: 

Error handling is an important feature of a programming language. A good error handling mechanism will make it easier for the programmers of that language to write robust applications. This article introduces you to error handling in C# and offers examples on how to use it....

Learning the C# Error Handling Mechanism     
Total Hits: 1487  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Error handling is an important feature of a programming language. A good error handling mechanism will make it easier for the programmers of that language to write robust applications. This article introduces you to error handling in C# and offers examples on how to use it....

What’s Automated Error Reporting and How Does it Work?  Version: 0.00     Price: $0.00  
Total Hits: 14  |  Today: 0Author: Red Gate Software      Rating:  
Read Reviews | Write Review |  Your Rating: 

Only one thing's worse than finding out your software has bugs: never finding out.

Most users won't bother to report bugs when they find them: it's tricky to remember what caused them and technically challenging to provide the details. So why not let your users give you the whole story in one click, with SmartAssembly’s Automated Error Reporting?...

Logging Errors in a XML File  Version: 0.00     Price: $0.00  
Total Hits: 14  |  Today: 0Author: James Upton      Rating:  
Read Reviews | Write Review |  Your Rating: 

Error handling and logging errors at a common place is something, which is required in every piece of code you write. The attached source code is an error logger class that I've used in all of my applications. This class writes errors to XML files....

Exception and error handling in enterprise applications  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: John Charles Olamendy      Rating:  
Read Reviews | Write Review |  Your Rating: 

Exception and error handling is an important feature in any robust enterprise application. A lot of developers misunderstand and not apply the underlying techniques. Therefore, the end user is confused and does not know what to do when an exception occurs. It's responsible of the developer to try to handle the more exceptions as he can in order for the data to be consistent as well as to free the end user to make decision related to the software application. In this article, I try to cover the k...

File Handling using C#  Version: 0.00     Price: $0.00  
Total Hits: 25  |  Today: 0Author: PIYALI SENGUPTA      Rating:  
Read Reviews | Write Review |  Your Rating: 

The .Net framework provides a few basic classes for creating, reading and writing to files on the secondary storage and for retrieving file system information. They are located in the System.IO namespace and used both in desktop applications and the web applications....

Walkthrough: Exploring Event Logs, Event Sources, and Entries  Version: 0.00     Price: $0.00  
Total Hits: 71  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This walkthrough will take you through the major feature areas of event logging in your Visual Studio application. During this walkthrough, you will learn how to:

* Create an EventLog component.
* Write code to create and delete custom event logs.
* Write entries of various types to the custom log.
* Read entries from the custom log.
* Verify the existence of logs and event sources.
* Clear log entries.
* Use Server Explorer to verify the resu...

Error Event  Version: 0.00     Price: $0.00  
Total Hits: 16  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The remote script object fires the Error event when the remote script terminates prematurely. The Error property contains the WshRemoteError object (which holds information about the error that caused the remote script to terminate prematurely)....

Custom error tracking library in asp.net using XML & C#  Version: 0.00     Price: $0.00  
Total Hits: 35  |  Today: 0Author: Member 3820048      Rating:  
Read Reviews | Write Review |  Your Rating: 

While after project delivery if client come up saying that they are facing problems or application is giving errors, that time it always becomes a headache for a developer to test each things even whole project sometimes to find a smaller errors (by means of error here we are not talking about logical errors, we talking about exceptions which mostly responsible for errors in the application), there are many exceptions .net framework fires which we never come to find out while debugging or develo...

Errors in XML Log with C#/.NET  Version: 0.00     Price: $0.00  
Total Hits: 43  |  Today: 0Author: GriffonRL      Rating:  
Read Reviews | Write Review |  Your Rating: 

Like other programmers I use a lot of try...catch statements in my code to catch exceptions, help debug, and avoid crashs. For that reason, I put a lot of Console.Error.WriteLine(...) in my catch blocks to keep a trace of the exceptions that occured. But when I release an app, even if exceptions should not happen anymore, it is always useful to have some kind of system to keep a trace of raised exceptions. The following code demonstrates a solution to keep a trace of those exceptions in a XML fi...


1  2  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net