Posted By: JParrish | Aug 24th, 2007 @ 9:04 AM
page 1 of 1
Comments: 13 | Views: 6462

Hoping someone may have overcome this before.

I use the enterprise library exception handling block to email myself any errors that occur within my ASP.NET application. At one time, I was getting the line numbers of the exceptions. I realize the performance hit but it is ok while I am testing deployment in new environments. Lately I have not been able to get the line numbers any more which makes the error too ambiguous. I have my build configurations to active debug, and in the web.config compilation debug is true.

For libraries I call from the web app, I have the pdb files deployed into the bin folder. Does anyone know anything more I can check/do to try and get the exception to include the line number? I am using fixed name single page assemblies if that matters.

ScanIAm
ScanIAm
On a scale of 1 to 10, people are stupid.
JParrish wrote:


Hoping someone may have overcome this before.

I use the enterprise library exception handling block to email myself any errors that occur within my ASP.NET application. At one time, I was getting the line numbers of the exceptions. I realize the performance hit but it is ok while I am testing deployment in new environments. Lately I have not been able to get the line numbers any more which makes the error too ambiguous. I have my build configurations to active debug, and in the web.config compilation debug is true.

For libraries I call from the web app, I have the pdb files deployed into the bin folder. Does anyone know anything more I can check/do to try and get the exception to include the line number? I am using fixed name single page assemblies if that matters.



I'm not familiar with how to set this up for web remote deployments, but if you have control over what shows up in the email, then look at

System.Exception.StackTrace

it's part of the exception object, and it should hold the stack trace and line numbers (if they are available).

Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
Is debugging enabled in the web.config? If not it might not load the symbols.
stevo_
stevo_
Human after all
Tried a rebuild? I've noticed sometimes the pdb is ignored only for a rebuild to make it start working again.
littleguru
littleguru
<3 Seattle
stevo_ wrote:
Tried a rebuild? I've noticed sometimes the pdb is ignored only for a rebuild to make it start working again.


Clean solution, rebuild is very useful in some cases...
Checked whether the .pdb files are actually in there?
jh71283
jh71283
Throw new System.Beverage. OutOfCoffeeException​()
nearly a year ago dude....


EDIT


over a year ago dude...
If you use the visual studio publish feature make sure the Emit debugging information checkbox is checked.
hi,
did you find answer to this problem?
I have the same problem

One reason i know is that your identity impersonation is set to true in your web.config.

Turn to false and you will see it.

page 1 of 1
Comments: 13 | Views: 6462
Microsoft Communities