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 > Visual Basic.Net > Error Handling


Search:
What's New - What's Hot
VB .NET Error Handling     
Total Hits: 276  |  Today: 0Author: Ujwal Watgule      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, you’ll learn how to build blocks of code that handle run time errors, also referred as exceptions which occur as a result of normal operating conditions for example. Errors due to a disk not being in the drive or to an offline printer. Visual Basic .NET includes the Try---Catch code block, a new syntax for handling error. In this article you’ll learn how to trap run time errors using Try---Catch code block, and you’ll learn how to use the Err.Number and Err.Description propertie...

HOW TO: Write to an Event Log Using Visual Basic .NET (Q301279 )     
Total Hits: 2720  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to add your own entries to the operating system's event log using the Microsoft .NET Framework....

Error Handling In Visual Basic Projects  Version: 0.00     Price: $0.00  
Total Hits: 180  |  Today: 0Author: hooshang Karami      Rating:  
Read Reviews | Write Review |  Your Rating: 

Insert Error Hanler In Your Visual Basic Projects Easily. When A System Developed By Programmer The Important Step IS Supporting System and

Debugging System The most Popular Step Is Reporting Bugs By Users That Using This Systems But Somtimes Users Dont Reports Error.

My End Goal Of This Error Handler Program Is Help to VB system Developers To Reporting This Bugs. This System Is Very UseFull Tools For This Idea.It Is Inserts Error HAndler Tag In Vb Forms By This Error Handling You ...

How to: Handle Errors and Exceptions that Occur with Databinding  Version: 0.00     Price: $0.00  
Total Hits: 31  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Oftentimes exceptions and errors occur on the underlying business objects when you bind them to controls. You can intercept these errors and exceptions and then either recover or pass the error information to the user by handling the BindingComplete event for a particular Binding, BindingSource, or CurrencyManager component....

Handling .NET forms and their events in VB6 main application     
Total Hits: 253  |  Today: 0Author: Emad Al-Ashi.      Rating:  
Read Reviews | Write Review |  Your Rating: 

I always wanted to post an article in CodeProject. I was always "taking" not "giving" anything back to this community and that made me feel guilty. I think its time to "give" back something useful to this community....

Life Without On Error Goto Statements     
Total Hits: 234  |  Today: 0Author: Deborah Kurata      Rating:  
Read Reviews | Write Review |  Your Rating: 

In previous versions of Visual Basic, the best practice for handling errors was put On Error Goto in every routine, but there is no On Error statement in Visual Basic .NET. This article describes how to use new Visual Basic .NET features to handle errors without using On Error Goto statements. This is the second in a series of articles that describe the fundamental changes in Visual Basic® and how to do today with Visual Basic .Net what you used to do in prior versions of Visual Basic. The first...

Error Handling in Visual Basic .NET     
Total Hits: 2020  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article discusses the options for handling exceptions in Microsoft Visual Basic .NET. Visual Basic .NET supports two different ways to keep an unexpected error from terminating an application: unstructured error handling and structured error handling. These events are run-time errors--also called exceptions-- that are responses to abnormal or exceptional conditions that are caused by the execution of a block of code....

Using the Try.Catch.Statement     
Total Hits: 1970  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Structured error handling will be a completely new concept to Visual Basic and VBScript developers. Since the .NET Framework requires the use of Strong Typed Languages, such as Visual Basic it is time to learn how to use this method of error handling....

ASP.NET and VB.NET Error Handling     
Total Hits: 2915  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

One of the main features of ASP.NET over ASP is it's new error handling features. The only way to capture errors in the ASP/VBScript was using the "On Error Resume Next" statement and checking each line for an error with "If Err.Number <> 0 Then " statements. Developers who where using JScript instead of the VBScript at the server-side where lucky. They've had access to the "Try... Catch" statements provided by JScript. Well it's all over now. Now all the .NET enabled languages support better er...

Write to the Event Log In VB.NET     
Total Hits: 1681  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This function uses Event Log objects from the System.Diagnostics Namespace to write to the event log in Visual Basic.NET. It was tested in Visual Basic.NET Beta 1. You should add the imports statement before pasting the function; otherwise, you will get compiliation errors (in Beta 1 at least). Refer to the comments for more information....

Make the Transition from Traditional Visual Basic Error Handling to the Object-Oriented Model in .NET  Version: 0.00     Price: $0.00  
Total Hits: 11  |  Today: 0Author: Jesse Liberty      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you're used to Visual Basic 6.0 and you're making the transition to Microsoft .NET, you will find that error handling is quite different from what you've used for years. Visual Basic .NET uses a more object-oriented solution to signaling and responding to unexpected problems while your program is running. This approach, called structured exception handling, has a number of advantages over the On Error statements provided in previous versions of Visual Basic. For instance, exceptions give you ...

Handling Concurrency Errors  Version: 0.00     Price: $0.00  
Total Hits: 28  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

ADO.NET provides a DBConcurrencyException object to assist in resolving issues arising from concurrency violations. The DBConcurrencyException object returns the data row that caused the error. For more information, see DBConcurrencyException Members....

Responding to Database Update Errors  Version: 0.00     Price: $0.00  
Total Hits: 25  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Errors may arise when attempting to update data. A typical error is that the record in the database has changed since it was read into your dataset. Regardless of what caused the error, you must create logic to handle the reconciliation of the record....

Walkthrough: Handling Errors that Occur During Data Entry in the Windows Forms DataGridView Control  Version: 0.00     Price: $0.00  
Total Hits: 27  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Handling errors from the underlying data store is a required feature for a data-entry application. The Windows Forms DataGridView control makes this easy by exposing the DataError event, which is raised when the data store detects a constraint violation or a broken business rule. In this walkthrough, you will retrieve rows from the Customers table in the Northwind sample database and display them in a DataGridView control. When a duplicate CustomerID value is detected in a new row or an edited e...

Err Object (Visual Basic)  Version: 0.00     Price: $0.00  
Total Hits: 23  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The properties of the Err object are set by the generator of an error—Visual Basic, an object, or the programmer.

When a run-time error occurs, the properties of the Err object are filled with information that uniquely identifies the error and that you can use to handle the error or to learn more about it. To generate a run-time error in your code, use the Raise method....

Server Error in "Application"-Application Error When Using Access Database With NET Framework     
Total Hits: 89  |  Today: 0Author: Jason Fortner      Rating:  
Read Reviews | Write Review |  Your Rating: 

I had an application that I was working where the client insisted on using an Access database for the application. The application was running on a two node server farm so the Access database had to be located on a seperated machine and accessed over the network. When upgrading the server farm from 2000 to 2003 the client ran into an issue accessing the database. After checking to make sure it wasn't an error with the connection to the location where the database was held I attempted to put the ...

Throwing Custom Exception Types from a Managed COM+ Server Application     
Total Hits: 129  |  Today: 0Author: Bob DeRemer      Rating:  
Read Reviews | Write Review |  Your Rating: 

Exception handling semantics in .NET are based on type, so you can create custom exceptions that have their own properties and methods. In .NET, exceptions are first-class citizens, and since they're the built-in error handling mechanism, all .NET-compliant languages must support exceptions. In addition, COM+ services are available to .NET code as Enterprise Services, so you can leverage exceptions in your Enterprise Services design.

In this article the author describes custom exceptions,...

Life Without On Error Goto Statements     
Total Hits: 104  |  Today: 0Author: Deborah Kurata      Rating:  
Read Reviews | Write Review |  Your Rating: 

In previous versions of Visual Basic, the best practice for handling errors was put On Error Goto in every routine, but there is no On Error statement in Visual Basic .NET. This article describes how to use new Visual Basic .NET features to handle errors without using On Error Goto statements....

Powerful Instrumentation Options in .NET Let You Build Manageable Apps with Confidence     
Total Hits: 133  |  Today: 0Author: Jon Fancey      Rating:  
Read Reviews | Write Review |  Your Rating: 

Instrumentation allows you to determine the running state of a system once it has been deployed. This is crucially important today since the people supporting systems are unlikely to be the same people who developed them. Like good error handling, instrumentation is best done at development time. A sound instrumentation policy must be established at the beginning of the development process to determine what should be instrumented, why, where, and how. Instrumentation can be performed using a wid...

Visual Basic .NET: Tracing, Logging, and Threading Made Easy with .NET     
Total Hits: 607  |  Today: 0Author: Yasser Shohoud      Rating:  
Read Reviews | Write Review |  Your Rating: 

Visual Basic has always been a language of innovation, but at the same time it's left its proponents wanting certain high-level features. With the upcoming version, Visual Basic .NET, the language takes advantage of the Microsoft .NET Framework to provide several new features that will be vital to developers.
This article begins by discussing tracing and error logging in Visual Basic .NET. Next, you'll see how to write a Windows service without third-party help. Monitoring the file system, a ...



Disclaimer - Privacy
© 2002-2017 DevASP.net