473,395 Members | 1,696 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.

Line number on error message?

I'm 99% sure I used to see a line number referenced in my ASP.NET error
messages but sometime over the last couple of weeks the error messages no
longer reference one. Am I imagining things or could something have changed?

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Nov 18 '05 #1
4 2262
I usually see line numbers with the work I do
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:cd*********@kcweb01.netnews.att.com...
I'm 99% sure I used to see a line number referenced in my ASP.NET error
messages but sometime over the last couple of weeks the error messages no
longer reference one. Am I imagining things or could something have changed?
--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS http://www.tryiis.com

Nov 18 '05 #2
On 7/21/2004 9:53 AM, Tom Kaminski [MVP] wrote:
I'm 99% sure I used to see a line number referenced in my ASP.NET error
messages but sometime over the last couple of weeks the error messages no
longer reference one. Am I imagining things or could something have changed?


did you compile in debug mode? you can see if there's a .pdb file in
the bin folder with the dll file. That usually gives line numbers in
error messages.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #3
"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
On 7/21/2004 9:53 AM, Tom Kaminski [MVP] wrote:
I'm 99% sure I used to see a line number referenced in my ASP.NET error
messages but sometime over the last couple of weeks the error messages no longer reference one. Am I imagining things or could something have changed?


did you compile in debug mode? you can see if there's a .pdb file in
the bin folder with the dll file. That usually gives line numbers in
error messages.


That was it - I flipped it over to Release mode to put it into production
and forgot to flip it back. I *knew* something had changed ... : )

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Nov 18 '05 #4
If your binaries do not have corresponding .pdb (program debug database)
files, then you won't see line numbers. You will see method calls, but
not line numbers.
Shan Plourde

Tom Kaminski [MVP] wrote:
I'm 99% sure I used to see a line number referenced in my ASP.NET error
messages but sometime over the last couple of weeks the error messages no
longer reference one. Am I imagining things or could something have changed?


Nov 18 '05 #5

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

Similar topics

2
by: Kerry | last post by:
When you get a server error message referring to a line number in a script, is there an easy way to jump to the correct line? It's not easy to count down in a big script or when there is a lot...
3
by: Kim Haines | last post by:
I need help finding where an error is occuring in my code. I use a try-catch block like this in my global.asa: try { //my code } catch (e) { Application('errormsg') = ("An exception...
1
by: Adam | last post by:
I apologize if this is an easy question, but I can't find a way to do this. I want the line number of where an error occurred to be shown in a new exception's message when I use a try/catch...
5
by: Marge Inoferror | last post by:
Well, 2 questions, actually... I get an error when my form's window gets covered by another window. I can resize sucessfully all day, but when the window is covered by another window - it bombs ...
9
by: kangaroo | last post by:
Hi guys, when we run a stored proc and it results into an unhandled error, the error message returned by db2 udb does not contain a line number that caused an error. This makes it pretty...
6
by: Buddy Ackerman | last post by:
When trapping unhandled errors in a web page via the Page_Error or Application_Error event procedures is it possible to get the line number on which the error occured? When not using custom error...
2
by: johnivey | last post by:
I have a large query that I am trying to debug in query analyzer. However, the errors I get have no line number or reference to where they are failing. How can I find out what line in the query is...
3
by: Chris Davoli | last post by:
When I get an error on my local machine (not try catch), I get the line # and module it bombed in. This is what I need. After I publish and move to the test server, it only gives me the error in...
7
by: Daniel | last post by:
hi guys i have never understood this so i am hoping someone can help. I have had errors in my app before where on closing it down i get a NullReferenceException error thrown BUT no line number...
4
by: Jeff Jarrell | last post by:
I have a block of code that during development is prone to casting errors. It is mostly a DataReader type thing. It looks something like this. _prtPNID = myDLReader.GetString("prtPNID")...
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?
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
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...
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.