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

Getting line numbers for exceptions when the web site is published

Hi,

Is there a way to get the line numbers to display in the exception when you
have published your web site?

Thanks
Rahul
Feb 13 '07 #1
3 1745
I assume you don't want your users to see line numbers. That would not be a
very good idea.

So, assuming you've arranged to catch all exceptions, and assuming you've
published a deployment configuration, then I imagine that the best you could
do would be to write a stack trace to a log and display a user-friendly
message on the page. As far as I know, a deployment version of a project
will not have the debugging information available to provide a line number.

I could very well be wrong, though. Someone will correct me if I am.

Anyway, why are you publishing projects that still have bugs?

:o)
Peter

"Rahul" <re************@hotmail.comwrote in message
news:ua**************@TK2MSFTNGP03.phx.gbl...
Hi,

Is there a way to get the line numbers to display in the exception when
you have published your web site?

Thanks
Rahul

Feb 13 '07 #2
We have got instrumentation in place that logs the message to MSMQ and then
a seperate app insertes that into our instrumentation database. When an
exception happens we get all the information but the line numbers. It would
be really helpful to get the line numbers.

As for the project being deployed when their are bugs... Our application is
very stable but on and off there are some exceptions that get thrown. I just
want more information from the exception.

Thanks
Rahul
"Peter Bradley" <pb******@uwic.ac.ukwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>I assume you don't want your users to see line numbers. That would not be
a very good idea.

So, assuming you've arranged to catch all exceptions, and assuming you've
published a deployment configuration, then I imagine that the best you
could do would be to write a stack trace to a log and display a
user-friendly message on the page. As far as I know, a deployment version
of a project will not have the debugging information available to provide
a line number.

I could very well be wrong, though. Someone will correct me if I am.

Anyway, why are you publishing projects that still have bugs?

:o)
Peter

"Rahul" <re************@hotmail.comwrote in message
news:ua**************@TK2MSFTNGP03.phx.gbl...
>Hi,

Is there a way to get the line numbers to display in the exception when
you have published your web site?

Thanks
Rahul


Feb 15 '07 #3
Sorry Rahul. I thought the smiley would indicate I was just pulling your
leg over the bugs issue. Apologies if you thought I was serious.

I see that no-one has corrected the opinion about line numbers, though.
Peter

"Rahul" <re************@hotmail.comwrote in message
news:Oq****************@TK2MSFTNGP05.phx.gbl...
We have got instrumentation in place that logs the message to MSMQ and
then a seperate app insertes that into our instrumentation database. When
an exception happens we get all the information but the line numbers. It
would be really helpful to get the line numbers.

As for the project being deployed when their are bugs... Our application
is very stable but on and off there are some exceptions that get thrown. I
just want more information from the exception.

Thanks
Rahul
"Peter Bradley" <pb******@uwic.ac.ukwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>>I assume you don't want your users to see line numbers. That would not be
a very good idea.

So, assuming you've arranged to catch all exceptions, and assuming you've
published a deployment configuration, then I imagine that the best you
could do would be to write a stack trace to a log and display a
user-friendly message on the page. As far as I know, a deployment
version of a project will not have the debugging information available to
provide a line number.

I could very well be wrong, though. Someone will correct me if I am.

Anyway, why are you publishing projects that still have bugs?

:o)
Peter

"Rahul" <re************@hotmail.comwrote in message
news:ua**************@TK2MSFTNGP03.phx.gbl...
>>Hi,

Is there a way to get the line numbers to display in the exception when
you have published your web site?

Thanks
Rahul



Feb 15 '07 #4

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

Similar topics

1
by: Derek Fountain | last post by:
I was trying to use MySQLdb to connect to a database. All is OK, except I can't figure out how to get the details of an error. Suppose I try to connect to a non existant server, or with the wrong...
5
by: Brandons of mass destruction | last post by:
Ok, I work for a small newspaper thats looking to translate our content to the web. XML sounds like a good way to do this, but i'm a little confused. Is it possible to have <b> and <i> tags in...
8
by: Arun Bhalla | last post by:
Hi, I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP. For some time, I've noticed that I don't have filenames and line numbers appearing in my exceptions' stack traces. On...
3
by: Larry Tate | last post by:
I have had a monstrous time getting any good debugging info out of the .net platform. Using ... ..NET Framework 1.1 Windows 2K Server VB.NET <- is this the problem? error handling in the...
3
by: Jim Bancroft | last post by:
Hi all, In VB6 I used a 3rd party tool for line numbering my source code, to help with debugging. However, in experimenting with VB .Net I've noticed that my exceptions automatically provide...
2
by: pavel.orehov | last post by:
Hi, I am using Environment.StackTrace to print the stack trace to the log when I have any exceptions in my application. When I work in development environment I see the line numbers in the...
2
by: John Kotuby | last post by:
Hi all, I am working on what I "thought" was a Web Project in VS 2005 using VB. I have published the site to an IIS server in our office for testing. When I hit a runtime error I get a basically...
5
by: IdleBrain | last post by:
I am trying to log the Application name, Method name, line number and column number whenever an exception is generated in an C# 2005 application using the following code. Problem is that the...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
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
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:
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
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.