Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 21

Question: You work as a Web Developer at Company.com. You make use of Microsoft ASP.NET 3.5 to create a Web application. The Company.com network contains a test server named Company-SR01. You deploy the application to Company-SR01 and enable debugging. The application is hosted in Microsoft Internet Information Services (IIS) 6.0. The application pool makes use of Network Service identity. You need to determine a way to configure the environment in order to permit you to debug the application from your development computer. What should you do? (Choose all that apply)

  1. This can be achieved by installing the remote debugging components on Company-SR01.
  2. This can be achieved by setting the mode feature of the customErrors element to Off in the Web.config file.
  3. This can be achieved by creating a Debugger Users group on the workstation and adding your account to it.
  4. This can be achieved by clearing the Disable script debugging (Other) option in Internet Explorer on Company-SR01.
  5. This can be achieved by ensuring that you have administrative privileges on CompanySR01.

Correct Answer: 1,5


Question: You work as an application developer at Company.com. You are in the process of creating an ASP.NET AJAX enabled application that uses Microsoft .NET Framework 3.5. You discover that a JavaScript code application is not functioning properly. You notice an error icon in the status bar of Internet Explorer. However, Internet Explorer does not prompt you to debug the script. You want Internet Explorer to prompt you to debug problematic JavaScript code. What should you do? (Choose two.)

  1. You should consider clearing the Disable Script Debugging (Other) check box in Internet Explorer.
  2. You should consider selecting the Display a notification regarding every script error check box in Internet Explorer.
  3. You should consider selecting the Enable third-party browser extensions check box in Internet Explorer.
  4. You should consider clearing the Disable Script Debugging (Internet Explorer) check box in Internet Explorer.
  5. You should consider selecting the Show friendly HTTP error messages check box in Internet Explorer.

Correct Answer: 2,4


Question: You work as an application developer at Company.com. You make use of Company-WS02 to log on to the Company.com domain. Your user account is named DevTest. You are in the process of creating an ASP.NET application using Microsoft.NET Framework 3.5. This application will be hosted on a server named Company-SR01. Company-SR01 is configured to run Microsoft IIS 5.0. You are assigned a computer named Company-WS02. Company-SR01 and Company-WS02 are both members of the Company.com domain. To ensure productivity you need to establish the necessary permissions to allow remote debugging. What should you do?

  1. Your best option would be to ensure that the Remote Debugging Monitor is configured to make use of Windows Authentication.
  2. Your best option would be to ensure that the DevTest account is a member of the domain Administrators group.
  3. Your best option would be to ensure that the ASP.NET worker process on Company-SR01 is configured to run under the local Administrator account.
  4. Your best option would be to ensure that the DevTest account is a member of the local Administrators group on Company-SR01.

Correct Answer: 4


Question: You work as a Web Developer at Company.com. Company.com is currently making use of Microsoft ASP.NET 3.5. You are in the process of creating a Web application that uses Microsoft ASP.NET 3.5. The application makes use of diagnostic tracing in order to log unhandled exceptions. The following markup is on a page:

<asp:ScriptManager ID="_scriptManager" runat="server"/>
<asp:UpdatePanel ID="_udpatePanel" runat="server">
<asp:Button ID="_button" runat="server" Text="Process"/>
</asp:UpdatePanel> 

As soon as you click the Button control an unhandled exception occurs on the application but the exception does not get logged. You need to configure the Web application to ensure that the unhandled exception that is generated by clicking the Button control is logged. What should you do?

  1. You should handle the Error event of the Page class. Then the Write method of the System.Diagnostics should be called. Thereafter class should be traced in order to log the exception.
  2. You should handle the pageLoaded event of the PageRequestManager client object. Then the trace function of the Sys.Debug client object should be called in order to log the exception.
  3. You should handle the endRequest event of the PageRequestManager client object. Then the trace function of the Sys.Debug client object should be called in order to log the exception.
  4. You should handle the AsyncPostBackError event of the ScriptManager control. Then the Write method of the System.Diagnostics should be called. Thereafter class should be traced in order to log the exception.

Correct Answer: 4


Question: You work as a Web Developer at Company.com. You make use of Microsoft ASP.NET 3.5 to create a Web application. In order to enable partial rendering you decide to add a ScriptManager control to a page. The following code exists in the code-behind file of the page:

protected void Page_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError();
Trace.Warn("Exception", "An unhandled exception has occurred.", ex);
} 

You decide to enable ASP.NET tracing for the page. When you visited the page for the first time you were able to view the trace message in the page output if an unhandled exception occurs. You are not able to view the trace message in the page output if an unhandled exception occurs during an asynchronous post back. You need to make sure that you are able to view the trace message when an unhandled exception occurs during an asynchronous post back. What should you do?

  1. You should set the Debug feature of the @Page directive to True.
  2. You should set the ScriptMode property of the ScriptManager control to Debug.
  3. You should add the following code to the end of the Page_Error event handler:
    string script = string.Format(“Sys.Debug.trace(‘{0}’)”, Trace.ToString());
    Page.ClientScript.RegisterStartupScript(this.ClientID, script)
  4. You should use the trace viewer tool (Trace.axd) to view the message.

Correct Answer: 4

Tagged . Bookmark the permalink.

Leave a Reply