Exception handling source line number

M

Mr Major Thorburn

I am using global.asax to handle my web application exceptions and have
configured it to create event log entries for errors that occur and to
display an error page advising the user to contact the helpdesk.
I have an intermittent uninitialised object error that I am not able to
reproduce in test and for which I really need the source line number.
I believe this information is contained in the PDB but am not sure if one is
created if I set the debug="true" flag in the compilation part of the
system.web section of the web.config when the application is recompiled.

Anyone any idea?

Regards, Major.
p.s. Major is my Christian name ;-)
 
B

bruce barker

actually when debug is true, the line numbers are in the dll and only
generated with debug. if compiled debug ion, then the stacktrace will include
the line number.

note: debug=true in web.config only controls the aspx pages (runtime
compile, any code compiled by visual studio will honor the visual studio
setting.

-- bruce (sqlwork.com)
 
M

Mr Major Thorburn

Bruce, thanks for that.

The web app was distributed to the server by copy and no precompile was
carried out.
Would the .cs files therefore be compiled with debug?

Regards, Major.
 

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

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,187
Latest member
RosaDemko

Latest Threads

Top