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

Exception stack trace sometimes not showing line numbers

TS
I have an application on one server that shows line numbers in stack trace,
but on another server the "in c:\xxx.aspx:line 9999" part that accompanies
the "at" part doesn't show. Besides this difference, they appear to be
nearly identical.

The app handles all exceptions thru global_Error event, so the exception is
never re-thrown (i know that the way you re-throw an exception could lose
some info)

thanks!~
Sep 15 '06 #1
4 2550
Would one be a debug build and one be a realease build, by any chance?

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

What You Seek Is What You Get.

"TS" <ma**********@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>I have an application on one server that shows line numbers in stack trace,
but on another server the "in c:\xxx.aspx:line 9999" part that accompanies
the "at" part doesn't show. Besides this difference, they appear to be
nearly identical.

The app handles all exceptions thru global_Error event, so the exception
is never re-thrown (i know that the way you re-throw an exception could
lose some info)

thanks!~

Sep 15 '06 #2
TS
yes it is

"Kevin Spencer" <uc*@ftc.govwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Would one be a debug build and one be a realease build, by any chance?

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

What You Seek Is What You Get.

"TS" <ma**********@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>>I have an application on one server that shows line numbers in stack
trace, but on another server the "in c:\xxx.aspx:line 9999" part that
accompanies the "at" part doesn't show. Besides this difference, they
appear to be nearly identical.

The app handles all exceptions thru global_Error event, so the exception
is never re-thrown (i know that the way you re-throw an exception could
lose some info)

thanks!~


Sep 15 '06 #3
Well, there you go. Debug Builds include debugging information, such as line
numbers. Release Builds do not.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

What You Seek Is What You Get.

"TS" <ma**********@nospam.nospamwrote in message
news:eL**************@TK2MSFTNGP06.phx.gbl...
yes it is

"Kevin Spencer" <uc*@ftc.govwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Would one be a debug build and one be a realease build, by any chance?

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

What You Seek Is What You Get.

"TS" <ma**********@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>>>I have an application on one server that shows line numbers in stack
trace, but on another server the "in c:\xxx.aspx:line 9999" part that
accompanies the "at" part doesn't show. Besides this difference, they
appear to be nearly identical.

The app handles all exceptions thru global_Error event, so the exception
is never re-thrown (i know that the way you re-throw an exception could
lose some info)

thanks!~



Sep 16 '06 #4
TS
thanks
"Kevin Spencer" <uc*@ftc.govwrote in message
news:eG**************@TK2MSFTNGP03.phx.gbl...
Well, there you go. Debug Builds include debugging information, such as
line numbers. Release Builds do not.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

What You Seek Is What You Get.

"TS" <ma**********@nospam.nospamwrote in message
news:eL**************@TK2MSFTNGP06.phx.gbl...
>yes it is

"Kevin Spencer" <uc*@ftc.govwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>Would one be a debug build and one be a realease build, by any chance?

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

What You Seek Is What You Get.

"TS" <ma**********@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl.. .
I have an application on one server that shows line numbers in stack
trace, but on another server the "in c:\xxx.aspx:line 9999" part that
accompanies the "at" part doesn't show. Besides this difference, they
appear to be nearly identical.

The app handles all exceptions thru global_Error event, so the
exception is never re-thrown (i know that the way you re-throw an
exception could lose some info)

thanks!~



Sep 18 '06 #5

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

Similar topics

42
by: cody | last post by:
public DateTime Value { get { try { return new DateTime(int.Parse(tbYear.Text), int.Parse(tbMonth.Text), int.Parse(tbDay.Text)); } catch (FormatException)
3
by: Professor Frink | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
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
44
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level...
4
by: Craig831 | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
2
by: Seth | last post by:
Ok, here is my setup. I have a fully functioning HTTP Handler implemented. The handler is supposed to handle every single request that comes in to a particular virtual directory. Thus, in IIS, I...
2
by: Lasse Vågsæther Karlsen | last post by:
If I got the following code: try { // something that might throw an exception } catch (Exception ex) { // Log contents of ex here throw;
3
by: Dave Anson | last post by:
I have a custom exception and I want to write the information to the event log, including the Stack Trace. I can create the message and write to the event log no problem, but the Stack Trace is...
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...
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.