Click here to Skip to main content
15,886,012 members
Home / Discussions / C#
   

C#

 
AnswerRe: Unhandled Exception - And don't know why Pin
Tarakeshwar Reddy30-Apr-07 9:50
professionalTarakeshwar Reddy30-Apr-07 9:50 
AnswerRe: Unhandled Exception - And don't know why Pin
Rudolf Jan1-May-07 0:17
Rudolf Jan1-May-07 0:17 
QuestionUnhandled Exception - and don't know why. Pin
JMOdom30-Apr-07 9:25
JMOdom30-Apr-07 9:25 
AnswerRe: Unhandled Exception - and don't know why. Pin
btsrinath30-Apr-07 9:45
btsrinath30-Apr-07 9:45 
QuestionBasic 3.0 to .Net 2005 Pin
MoreMakarand30-Apr-07 9:10
MoreMakarand30-Apr-07 9:10 
AnswerRe: Basic 3.0 to .Net 2005 Pin
Dave Kreskowiak30-Apr-07 10:13
mveDave Kreskowiak30-Apr-07 10:13 
GeneralRe: Basic 3.0 to .Net 2005 Pin
MoreMakarand1-May-07 2:59
MoreMakarand1-May-07 2:59 
QuestionLogging Class and Method where exception occurred. Pin
AnneThorne30-Apr-07 9:08
AnneThorne30-Apr-07 9:08 
Hi,

We are currently building a Windows Application with Visual Studio, C# and SQL. Exceptions are caught and logged.

Is there a way for us to determine the exact spot in the code where the error occurred, that is the CLASS and the METHOD?

Here is the code we use now:

catch (Exception error)<br />
{<br />
ExceptionHandler.LogError(error, Applications.ID, UserProfile.UserID, Applications.Version);<br />
throw error;<br />
}


The error object gives us Source and StackTrace, but not location.

Thanks for any help,
Smile | :) Anne
AnswerRe: Logging Class and Method where exception occurred. [modified*2] Pin
Tarakeshwar Reddy30-Apr-07 10:01
professionalTarakeshwar Reddy30-Apr-07 10:01 
GeneralRe: Logging Class and Method where exception occurred. [modified*2] Pin
PIEBALDconsult3-May-07 9:39
mvePIEBALDconsult3-May-07 9:39 
AnswerRe: Logging Class and Method where exception occurred. Pin
PIEBALDconsult3-May-07 10:17
mvePIEBALDconsult3-May-07 10:17 
GeneralRe: Logging Class and Method where exception occurred. Pin
PIEBALDconsult3-May-07 11:39
mvePIEBALDconsult3-May-07 11:39 
QuestionTextBox Pin
hardsoft30-Apr-07 9:07
hardsoft30-Apr-07 9:07 
AnswerRe: TextBox Pin
MoustafaS30-Apr-07 9:21
MoustafaS30-Apr-07 9:21 
Questiondll Pin
netJP12L30-Apr-07 8:08
netJP12L30-Apr-07 8:08 
AnswerRe: dll Pin
Christian Graus30-Apr-07 12:04
protectorChristian Graus30-Apr-07 12:04 
QuestionDataGridView Pin
Mohammed Elkholy30-Apr-07 7:34
Mohammed Elkholy30-Apr-07 7:34 
QuestionCreating classes that use the web / app.config for initialization Pin
Tristan Rhodes30-Apr-07 6:24
Tristan Rhodes30-Apr-07 6:24 
AnswerRe: Creating classes that use the web / app.config for initialization Pin
Pete O'Hanlon30-Apr-07 9:07
mvePete O'Hanlon30-Apr-07 9:07 
GeneralRe: Creating classes that use the web / app.config for initialization Pin
Tristan Rhodes1-May-07 3:14
Tristan Rhodes1-May-07 3:14 
Questiontcp/ip socket Pin
Harikrk30-Apr-07 5:48
Harikrk30-Apr-07 5:48 
AnswerRe: tcp/ip socket Pin
pbraun30-Apr-07 12:17
pbraun30-Apr-07 12:17 
QuestionCheckbox in Gridview Pin
Bubbles230-Apr-07 5:41
Bubbles230-Apr-07 5:41 
QuestionHow to communicate VisualStudio2005 with Microsoft Info Path Pin
pashitech30-Apr-07 4:24
pashitech30-Apr-07 4:24 
QuestionScreenshots with DirectX Pin
wimme30-Apr-07 4:09
wimme30-Apr-07 4:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.