[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

System.Exception

Posted on 2004-09-14
3
Medium Priority
?
235 Views
Last Modified: 2010-04-23
Dim objError As New System.Exception

objError = Server.GetLastError()

how can I get the line# of the error ?

objError.Line ?
0
Comment
Question by:testn1
2 Comments
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 1500 total points
ID: 12060400
0
 
LVL 14

Expert Comment

by:ptakja
ID: 12060725
ObjError.StackTrace

Although you would have to parse it to get the line number in the top-most routine in the stack.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

830 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