473,386 Members | 1,757 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,386 software developers and data experts.

Important Stack Trace Data Missing When App Moved

RC
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!
Nov 18 '05 #1
2 1379
turn on debug - required to get line numbers

-- bruce (sqlwork.com)
"RC" <a@b.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
| 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!
|
|
Nov 18 '05 #2
RC
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" <no***********@safeco.com> wrote in message
news:Oj**************@TK2MSFTNGP09.phx.gbl...
turn on debug - required to get line numbers

-- bruce (sqlwork.com)
"RC" <a@b.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
| 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!
|
|

Nov 18 '05 #3

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

Similar topics

7
by: Andy Fish | last post by:
Hi, in my c# code I have something like this: try { ... } catch (Exception ex) { ... throw ex; }
3
by: Mike Schilling | last post by:
Instances of SystemOutOfMemoryException do not contain a stack trace. Easy test to verify this: class OOM { public static void Main() { try { Object arr = new Object; } catch...
0
by: Mike Schilling | last post by:
I have some code that calls methods reflectively (the method called and its parameters are determined by text received in a SOAP message, and I construct a map from strings to MethodInfos). The...
3
by: Jeremy | last post by:
While working with ASP.NET I've sometimes encountered errors in my applications, but I've always known exactly why I'm getting the error and have been able to fix it. So I've never needed to...
2
by: Gal Moshitch | last post by:
Hi, I developed an application which writes errors to the event viewer whenever an exception is thrown (this is done at the application_error event). Except for the exception message, I also...
5
by: Mr. SweatyFinger | last post by:
WHY CAN'T THE CLOWN -HOLES WHO WROTE ASP.NET PROVIDE AN ERROR LINE NUMBER??? HONEST TO SH@THOLE PETE Server Error in '/New Folder (7)' Application....
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
3
by: Sendil kumar | last post by:
Hi All, Problem Stetement:I have a problem in getting stack trace when I ues std::exception. In my code, I allocate virtual memory for certain kind of processing and will throw the...
3
by: Paul McGuire | last post by:
Is there any way to hide portions of an exception stack trace? When users get exceptions when using pyparsing, there are usually many layers of pyparsing-internal stack messages that are not at...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.