What should you recommend?

You are reviewing an existing ASP.NET Web application.
A feature that manipulates large files in memory has been added to the Web application.
Thereafter, the Web application begins crashing frequently with an OutOfMemoryException exception.
You need to recommend an approach for debugging theWeb application.
What should you recommend?

You are reviewing an existing ASP.NET Web application.
A feature that manipulates large files in memory has been added to the Web application.
Thereafter, the Web application begins crashing frequently with an OutOfMemoryException exception.
You need to recommend an approach for debugging theWeb application.
What should you recommend?

A.
In Microsoft Visual Studio 2010, use the Performance Wizard to create a Memory Profiling Report.

B.
In the Application_Error event handler, log the stack trace for all OutOfMemoryException exceptions that
are caught.

C.
Add structured error handling around any code block that accesses the large files.
Log the stack trace for all OutOfMemoryException exceptions that are caught.
D. Attach the Microsoft Visual Studio 2010 debugger to the Web server process.
Configure the debugger to break into the Web application when a System.OutOfMemory exception is
thrown.



Leave a Reply 0

Your email address will not be published. Required fields are marked *