SlideShare a Scribd company logo
Error handling in ASP.NET
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
Week Target Achieved
1 30 23
2 30 26
3 30 25
Typing Speed
Jobs Applied
Week Company Designation Applied Date Current Status
1
2
3
Error Handling in Asp .net
MuhammedAjaml
mhdajmalik@gmail.com
www.facebook.com/ajuik
twitter.com/username
in.linkedin.com/in/profilename
9745020951
Exception
• Exceptions are unforeseen errors that happen within
the logic of an application.
– File not found
– Unautherised access
– Argument NullException
– Arithmetic Exception
Unhandled exception
• When an exception occurs and if it is not handled.
Unhandled exception
• An unhandled exception is displayed to the user using
an”yellow screen of death”
Disadvantage of yellow screen of
death
. The error messages are cryptic and may not make any
sense to the end user
. The exception information may be useful for a hacker,
to hack into your application
Exception handling using - try-
catch
Try
{
Wrap the code in a try block that could possibly cause an
exception
}
Catch(Exception e)
{//handle errors}
Finally
{//Used to free resources.}
Example
• A program to read data from XML file and display it
to the Grid View
Countries.xml
Bind to gridview
Show Data
File not found Exception
Error
Try –catch-finally
Show Error
Unauthorised Exception
Show Error
Asp .net Error Events
• Page_Error
– Used in page level
– This event raised whenever an unhandled exception occurs
in the page.
• Application_Error
– Used in application level
– This event raised whenever an unhandled exception occurs
in the application.
Page_Error Example
Yellow screen death
Page_error
Errors.aspx
Application_Error
• When there is an unhandled exception at an
application level.
• The event handler resides in Global.asax file
Contd..
Thank You
If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
IKK Road,
East Hill, Kozhikode
Kerala, India.
Ph: + 91 – 495 30 63 624
NIT-TBI,
NIT Campus, Kozhikode,
Kerala, India.

More Related Content

What's hot (20)

PPTX
Constructor in java
Hitesh Kumar
 
PPT
Abstract class
Tony Nguyen
 
PPTX
The Singleton Pattern Presentation
JAINIK PATEL
 
PPTX
Object Oriented Programing JAVA presentaion
Pritom Chaki
 
PPT
Design patterns ppt
Aman Jain
 
PPT
Collaboration Diagram
fahad_uaar
 
PPT
Adapter pattern
Shakil Ahmed
 
PPT
Iterator Design Pattern
Varun Arora
 
PPTX
Gof design patterns
Srikanth R Vaka
 
PDF
Introduction to Design Pattern
Sanae BEKKAR
 
PPTX
This keyword in java
Hitesh Kumar
 
PPTX
Java package
CS_GDRCST
 
PDF
Polymorphism In Java
Spotle.ai
 
PDF
Design patterns
abhisheksagi
 
PPT
Exception Handling in JAVA
SURIT DATTA
 
PPTX
Advanced Python : Decorators
Bhanwar Singh Meena
 
PPTX
Static Members-Java.pptx
ADDAGIRIVENKATARAVIC
 
PPT
Black box & white-box testing technique
SivaprasanthRentala1975
 
PDF
Building blocks of Angular
Knoldus Inc.
 
PPTX
interface in c#
Deepti Pillai
 
Constructor in java
Hitesh Kumar
 
Abstract class
Tony Nguyen
 
The Singleton Pattern Presentation
JAINIK PATEL
 
Object Oriented Programing JAVA presentaion
Pritom Chaki
 
Design patterns ppt
Aman Jain
 
Collaboration Diagram
fahad_uaar
 
Adapter pattern
Shakil Ahmed
 
Iterator Design Pattern
Varun Arora
 
Gof design patterns
Srikanth R Vaka
 
Introduction to Design Pattern
Sanae BEKKAR
 
This keyword in java
Hitesh Kumar
 
Java package
CS_GDRCST
 
Polymorphism In Java
Spotle.ai
 
Design patterns
abhisheksagi
 
Exception Handling in JAVA
SURIT DATTA
 
Advanced Python : Decorators
Bhanwar Singh Meena
 
Static Members-Java.pptx
ADDAGIRIVENKATARAVIC
 
Black box & white-box testing technique
SivaprasanthRentala1975
 
Building blocks of Angular
Knoldus Inc.
 
interface in c#
Deepti Pillai
 

Similar to Error handling in ASP.NET (20)

PPTX
Error handling in asp.net
Noushad Kanniyan
 
PPTX
Error handling in asp.net
Noushad Kanniyan
 
PPTX
Pace IT - Troubleshooting OS part 1
Pace IT at Edmonds Community College
 
PDF
How to kill jira with bad scripts
AUGNYC
 
PPTX
Tying Automation to the Line of Business
CA | Automic Software
 
PPTX
Amazon SageMaker Clarify
Krishnaram Kenthapadi
 
PDF
Design for failure in the IoT: what could possibly go wrong?
Claire Rowland
 
PPTX
AI powered CAR DAMAGE detection project PPT
bananamakers0
 
PPTX
Best practices with Microsoft Graph: Making your applications more performant...
Microsoft Tech Community
 
PPTX
Monitoring & alerting presentation sabin&mustafa
Lama K Banna
 
PDF
DutchMLSchool. ML Automation
BigML, Inc
 
PDF
To Automate or Not to Automate
Stephanie Abe
 
PDF
WEBINAR: To Automate or Not to Automate
Rainforest QA
 
PPTX
The Planet as Our Stakeholder - Slideshare (EN).pptx
qphfrkkmwf
 
PDF
IRJET - Automated Fraud Detection Framework in Examination Halls
IRJET Journal
 
PDF
IBM Agile ALM Overview
IBM Rational software
 
PPTX
UX & FinTech: 3 Ideas to Focus On
Code & Pepper
 
PPT
Global System For Automated Applications Using Plug In
jpinasaez
 
Error handling in asp.net
Noushad Kanniyan
 
Error handling in asp.net
Noushad Kanniyan
 
Pace IT - Troubleshooting OS part 1
Pace IT at Edmonds Community College
 
How to kill jira with bad scripts
AUGNYC
 
Tying Automation to the Line of Business
CA | Automic Software
 
Amazon SageMaker Clarify
Krishnaram Kenthapadi
 
Design for failure in the IoT: what could possibly go wrong?
Claire Rowland
 
AI powered CAR DAMAGE detection project PPT
bananamakers0
 
Best practices with Microsoft Graph: Making your applications more performant...
Microsoft Tech Community
 
Monitoring & alerting presentation sabin&mustafa
Lama K Banna
 
DutchMLSchool. ML Automation
BigML, Inc
 
To Automate or Not to Automate
Stephanie Abe
 
WEBINAR: To Automate or Not to Automate
Rainforest QA
 
The Planet as Our Stakeholder - Slideshare (EN).pptx
qphfrkkmwf
 
IRJET - Automated Fraud Detection Framework in Examination Halls
IRJET Journal
 
IBM Agile ALM Overview
IBM Rational software
 
UX & FinTech: 3 Ideas to Focus On
Code & Pepper
 
Global System For Automated Applications Using Plug In
jpinasaez
 
Ad

More from baabtra.com - No. 1 supplier of quality freshers (20)

PPTX
Agile methodology and scrum development
baabtra.com - No. 1 supplier of quality freshers
 
PDF
Acquiring new skills what you should know
baabtra.com - No. 1 supplier of quality freshers
 
PDF
Baabtra.com programming at school
baabtra.com - No. 1 supplier of quality freshers
 
PDF
99LMS for Enterprises - LMS that you will love
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Chapter 6 database normalisation
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Chapter 5 transactions and dcl statements
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Chapter 4 functions, views, indexing
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Chapter 3 stored procedures
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Chapter 1 introduction to sql server
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Chapter 1 introduction to sql server
baabtra.com - No. 1 supplier of quality freshers
 
Agile methodology and scrum development
baabtra.com - No. 1 supplier of quality freshers
 
Acquiring new skills what you should know
baabtra.com - No. 1 supplier of quality freshers
 
Baabtra.com programming at school
baabtra.com - No. 1 supplier of quality freshers
 
99LMS for Enterprises - LMS that you will love
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 6 database normalisation
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 5 transactions and dcl statements
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 4 functions, views, indexing
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 1 introduction to sql server
baabtra.com - No. 1 supplier of quality freshers
 
Chapter 1 introduction to sql server
baabtra.com - No. 1 supplier of quality freshers
 
Ad

Recently uploaded (20)

PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
July Patch Tuesday
Ivanti
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 

Error handling in ASP.NET