Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Exception handling source line number

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mr Major Thorburn - 12 Mar 2008 15:29 GMT
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 ;-)
bruce barker - 12 Mar 2008 16:38 GMT
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)

> 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
[quoted text clipped - 9 lines]
> Regards, Major.
> p.s. Major is my Christian name ;-)
Mr Major Thorburn - 12 Mar 2008 16:46 GMT
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.

> 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
[quoted text clipped - 19 lines]
> > Regards, Major.
> > p.s. Major is my Christian name ;-)

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.