What should you recommend?

An ASP.NET Web application hosted on a remote server throws NullReferenceException
exceptions that are not handled. The stack trace does not include line numbers. The
Microsoft Visual Studio 2010 remote debugging tools are installed on the remote server.
You need to recommend an approach for identifying the line of code that is causing the
exception. What should you recommend?

An ASP.NET Web application hosted on a remote server throws NullReferenceException
exceptions that are not handled. The stack trace does not include line numbers. The
Microsoft Visual Studio 2010 remote debugging tools are installed on the remote server.
You need to recommend an approach for identifying the line of code that is causing the
exception. What should you recommend?

A.
Deploy the PDB files for the assemblies to the remote server. Inspect the Application
event log.

B.
Set the project-level Enable Code Analysis on Build property to true. Inspect the
Application event log.

C.
Set the project-level Enable optimizations property to false. Attach the debugger to the
remote worker process.

D.
In the Web.config file, set the debug value to true. Attach the debugger to the remote
worker process.



Leave a Reply 0

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