Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Important Stack Trace Data Missing When App Moved

Reply
Thread Tools

Important Stack Trace Data Missing When App Moved

 
 
RC
Guest
Posts: n/a
 
      11-30-2004
I have implemented an error logging routine that writes out the stack trace
(associated with the Exception object). It tells me the exact line(s) of
code that lead up to the Exception.
Example:
at MyApp.MyPage.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\MyApp\SubDir\MyPage.aspx.cs:lin e 87

The problem I'm asking for help with is this: While testing this
application, I created a copy of it - same development machine, just in a
different virtual directory. This manually created copy of the application
works fine except that the Stack trace is missing the [line of code that
choked] information.
Example:
at MyApp.MyPage.Page_Load(Object sender, EventArgs e)

FWIW: the computer is Win2KPro; the original application (directory
structure, virtual directory, etc) was created with VS.NET 2003; the copy
was created manually - all same properties via the IIS admin tool except
that I didn't include the Front Page server extensions.

What can I do to get the [full path to the line of code that choked] data in
the manually created copy of the application?

Thanks!


 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      11-30-2004
turn on debug - required to get line numbers

-- bruce (sqlwork.com)


"RC" <(E-Mail Removed)> wrote in message
news:%23qt%(E-Mail Removed)...
| I have implemented an error logging routine that writes out the stack
trace
| (associated with the Exception object). It tells me the exact line(s) of
| code that lead up to the Exception.
| Example:
| at MyApp.MyPage.Page_Load(Object sender, EventArgs e) in
| c:\inetpub\wwwroot\MyApp\SubDir\MyPage.aspx.cs:lin e 87
|
| The problem I'm asking for help with is this: While testing this
| application, I created a copy of it - same development machine, just in a
| different virtual directory. This manually created copy of the application
| works fine except that the Stack trace is missing the [line of code that
| choked] information.
| Example:
| at MyApp.MyPage.Page_Load(Object sender, EventArgs e)
|
| FWIW: the computer is Win2KPro; the original application (directory
| structure, virtual directory, etc) was created with VS.NET 2003; the copy
| was created manually - all same properties via the IIS admin tool except
| that I didn't include the Front Page server extensions.
|
| What can I do to get the [full path to the line of code that choked] data
in
| the manually created copy of the application?
|
| Thanks!
|
|


 
Reply With Quote
 
 
 
 
RC
Guest
Posts: n/a
 
      11-30-2004
Thanks Bruce - right you are - and in my case I simply failed to copy the
updated PDB file over when I recompiled (gotta bring both the dll and pdb).

-RC


"bruce barker" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> turn on debug - required to get line numbers
>
> -- bruce (sqlwork.com)
>
>
> "RC" <(E-Mail Removed)> wrote in message
> news:%23qt%(E-Mail Removed)...
> | I have implemented an error logging routine that writes out the stack
> trace
> | (associated with the Exception object). It tells me the exact line(s) of
> | code that lead up to the Exception.
> | Example:
> | at MyApp.MyPage.Page_Load(Object sender, EventArgs e) in
> | c:\inetpub\wwwroot\MyApp\SubDir\MyPage.aspx.cs:lin e 87
> |
> | The problem I'm asking for help with is this: While testing this
> | application, I created a copy of it - same development machine, just in

a
> | different virtual directory. This manually created copy of the

application
> | works fine except that the Stack trace is missing the [line of code that
> | choked] information.
> | Example:
> | at MyApp.MyPage.Page_Load(Object sender, EventArgs e)
> |
> | FWIW: the computer is Win2KPro; the original application (directory
> | structure, virtual directory, etc) was created with VS.NET 2003; the

copy
> | was created manually - all same properties via the IIS admin tool except
> | that I didn't include the Front Page server extensions.
> |
> | What can I do to get the [full path to the line of code that choked]

data
> in
> | the manually created copy of the application?
> |
> | Thanks!
> |
> |
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C/C++ compilers have one stack for local variables and return addresses and then another stack for array allocations on the stack. Casey Hawthorne C Programming 3 11-01-2009 08:23 PM
wx.ToplevelWindow.SetIcon: Native MS Windows error dialog pops upin wxPython app, no exception raised, no stack trace Laszlo Nagy Python 3 09-13-2007 02:08 PM
Missing Stack Trace using log4j brian.vanheesch@gmail.com Java 0 01-23-2006 04:15 PM
Missing Stack Trace usign log4j brian.vanheesch@gmail.com Java 0 01-23-2006 04:15 PM
Trace: Can anyone suggest a good tool to catch trace messages? Rukmal Fernando ASP .Net 4 10-27-2003 09:03 PM



Advertisments