MCSD.NET - 70-320 Exam Question:
Download Questions PDF

You create a Windows service that processes XML messages placed in a MSMQ queue. You
discover that the service is not functioning properly.
You need to debug the service to correct the program.
What should you do?
A. Start the Windows service.
Then attach a debugger to the process.
B. Attach a debugger to the Windows service.
Then start the Windows service.
C. Start the Windows service.
Then run the .NET Services Installation tool (Regsvcs.exe).
D. Place a breakpoint in the Main method of the Windows service. Then run the application within
the Visual Studio .NET integrated development environment (IDE).

Answer:

A. Start the Windows service.
Then attach a debugger to the process.

Download MCSD.NET - 70-320 Exam Interview Questions And Answers PDF

Previous QuestionNext Question
You are creating a .NET Remoting object named Payroll. The Payroll class allows remote client
applications to access payroll data for your company. Client applications are developed by using
Windows Forms and Web Forms. You must ensure that remote client applications are securely
authenticated prior to gaining access to Payroll object. You want to accomplish this task by
writing the minimum amount of code.
What should you do?
A. Use a Tcp Channel and a Binary Formatter for the Payroll class.
B. Use an Http Channel and a Soap Formatter for the Payroll class.
C. Host the Payroll class in Internet Information Services (IIS) and implement Basic
authentication.
D. Host the Payroll class in Internet Information Services (IIS) and implement Integrated Windows
authentication.
Suppose You are creating an ASP.NET application named CompanyWebApp. To CompanyWebApp, you
add a Web reference to an XML Web service named User Service. User Service consists of a
Web method named RetrieveUserInfo. This Web method takes a userID as input and returns a
DataSet object containing user information. If the userID is not between the values 1 and 1000, a
System Argument Exception is thrown. In CompanyWebApp, you write a try/catch block to
capture any exceptions that are thrown by User Service. You invoke RetrieveUserInfo and pass
1001 as the user ID.
Which type of exception will be caught?
A. System.ApplicationException
B. System.ArgumentException
C. System.Web.Service.Protocols.SoapException
D. System.Web.Service.Protocols.SoapHeaderException