Microsoft
70-573 · Question #138
70-573 Question #138: Real Exam Question with Answer & Explanation
Sign in or unlock 70-573 to reveal the answer and full explanation for question #138. The question stem and answer options stay visible for context.
Question
You create a Web Part that contains the following logging code. (Line numbers are included for reference only.) 01Try 02 ... 03Catch ex As Exception 04 05System.Diagnostics.EventLog.WriteEntry("WebPart Name", ("Exception Information: " + ex.Message), EventLogEntryType.Error) 06End Try You discover that line 05 causes an error. You need to resolve the error. What should you do?
Options
- ARun the code segment at line 05 inside a RunWithElevatedPrivileges delegate.
- BAdd the following code at line 04.
- CAdd the following code at line 04
- DChange line 05 to the following code segment.
Unlock 70-573 to see the answer
You've previewed enough free 70-573 questions. Unlock 70-573 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.