473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Some Exception.StackTrace Info is Omitted

RC
I have implemented an error logging routine in an ASP.NET Web application
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.
Sample:
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 copied
to 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.
Sample of what I get:
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!
Nov 16 '05 #1
1 1189
RC
Nevermind - I got it... I simply didn't copy over the updated .PDB file when
I recompiled the project and copied the new dll over.

-RC
"RC" <a@b.com> wrote in message news:OH*************@TK2MSFTNGP11.phx.gbl...
I have implemented an error logging routine in an ASP.NET Web application
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.
Sample:
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 copied to 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.
Sample of what I get:
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!

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Harry | last post by:
I need to get hold of somehow the line no that an exception occurred at so as to log it using log4j. My ConversionPattern is set to - log4j.appender.stdout.layout.ConversionPattern=%5p (%F:%L)...
1
by: andrej | last post by:
hi, i have a nt-service. which throws sometimes an exception. the exception is caught in a catch block. is it possible to print out a line which cause the exception? thanks
6
by: Sharon | last post by:
How to catch an asynchronous delegate invocation exception? The code: --------------------------------------- String message = “my message”; foreach( MyDelegate handler in...
4
by: Barry Mossman | last post by:
Hi, I am throwing an exception derived from ApplicationException as follows catch (Exception ex) { throw new MyException("message", ex); } My exception's constructor is: public...
11
by: Matt | last post by:
I have written a console application that runs as a batch job on Windows 2000 Server. Every once in a while I am getting an exception thrown to the console. Is there a way I can create a global...
4
by: 6tc1 | last post by:
Hi all, I have just finished debugging a windows application and have solved the problem - however, I want to be sure that I understand the problem before I move on. Before I detail the problem,...
2
by: bevis | last post by:
I'm new to sql server and mysql but this seems like it should be a pretty straight forward jdbc connection. But I have spent almost 2 days just trying to get a jdbc connection. Please help if you...
3
by: Samuel | last post by:
Hi, I am trying to wrap a function that throws an exeption in such a way that the stacktrace is logged into a file and the exception is forwarded after that. For example: -------------------...
6
by: Kristijan Marin | last post by:
Hi, Can please anyone tell me why do i get only the first method in which the exception was thrown and not the line that triggered the exception ? I don't know if I set something in VS2005 wrong...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.