Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Application_Error Server.GetLastError()

Posted on 2009-02-20
Medium Priority
Last Modified: 2012-05-06
In the Application_Error, and using the Server.GetLastError(), how do I pull the error number? I cast is as an HttpException and I can get the .Message, and the .StackTrace, but how do I access the number of the error?


Question by:Starr Duskk
1 Comment
LVL 11

Accepted Solution

jmwheeler earned 2000 total points
ID: 23693587
.NET exceptions don't have a number associated with them.  You should differentiate my using the Exception type or the contents of the message (if necessary).

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Integration Management Part 2
Loops Section Overview
Suggested Courses
Course of the Month13 days, 2 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question