nerdexam
Microsoft

70-573 · Question #240

You create and deploy a custom Web Part. You add the Web Part to a page and receive a run-time error. You need to display the detailed information of the error on the page. Which two actions should…

The correct answer is A. In the web.config file, set CallStack="True". B. In the web.config file, set customErrors="RemoteOnly". MNEMONIC RULE: "Check all with web.config" Turning off custom errors in _layouts Web.Config for debugging mode in SharePoint 2010

Developing SharePoint Solutions

Question

You create and deploy a custom Web Part. You add the Web Part to a page and receive a run-time error. You need to display the detailed information of the error on the page. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AIn the web.config file, set CallStack="True".
  • BIn the web.config file, set customErrors="RemoteOnly".
  • CIn the registry, set the EnableDebug value to 1.
  • DIn the registry, set the DisableLoopbackCheck value to 1.

How the community answered

(38 responses)
  • A
    79% (30)
  • C
    16% (6)
  • D
    5% (2)

Explanation

MNEMONIC RULE: "Check all with web.config" Turning off custom errors in _layouts Web.Config for debugging mode in SharePoint 2010

Topics

#Web Part debugging#web.config#CallStack#customErrors

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice