Why are my Line numbers not showing when Exceptions get thrown?!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When my web app throws an exception, my try... catch adds ex.tostring to a label at the bottom of the page. This has been working great. But now, I do not see the Line number of the source of the error. WHY!!!!!!!!! Very frustrated with several things today, and this is not making debugging any easier. And I probably won't get an answer to this until tomorrow!
 
Did you compile the app in debug or release mode? If it's debug, then the
line numbers normally aren't available.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

M K said:
When my web app throws an exception, my try... catch adds ex.tostring to a
label at the bottom of the page. This has been working great. But now, I do
not see the Line number of the source of the error. WHY!!!!!!!!! Very
frustrated with several things today, and this is not making debugging any
easier. And I probably won't get an answer to this until tomorrow!
 
If you have compiled the project in Release mode, you will not get line
numbers because they are not available. Could that possibly be the problem?

HTH,
-Cliff

M K said:
When my web app throws an exception, my try... catch adds ex.tostring to a
label at the bottom of the page. This has been working great. But now, I do
not see the Line number of the source of the error. WHY!!!!!!!!! Very
frustrated with several things today, and this is not making debugging any
easier. And I probably won't get an answer to this until tomorrow!
 
You need to compile in debug mode, and you need to deploy the pdb file along
with your dll.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


M K said:
When my web app throws an exception, my try... catch adds ex.tostring to a
label at the bottom of the page. This has been working great. But now, I do
not see the Line number of the source of the error. WHY!!!!!!!!! Very
frustrated with several things today, and this is not making debugging any
easier. And I probably won't get an answer to this until tomorrow!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top