MCSD.NET - 70-310 Exam Question:

Suppose 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-310 Exam PDF Read All 19 MCSD.NET - 70-310 Exam Questions
Previous QuestionNext Question
Suppose You are debugging a visual studio .Net application named XYZApp. The application produces an
Xml documents object and then consumes the same object. This object moves data in the
application. The object has no schema, but it contains a declaration line that you must inspect.
You decide to transform the XML code and its declaration into a string for easy inspection.
What should you do?
A. Assign the ToString method of the Xml Document object to a string variable.
B. Assign the OuterXml property of the Xml document object to a string variable
C. Assign the OuterXml property of the Xml document element property of the Xml document
object to a string variable.
D. Use the WriteContentTo method of the XmlDocument object to write the document into a
MemoryStream object. Use the GetXml method of the DataSet object to get a string version of
the document.
You create a .NET Remoting object named EXPatientinfo that exposes medical patient
information.
Because of the confidential nature of the information, you must ensure that the data remains
secure.
You want client applications to connect to EXPatientinfo over a secure communication channel.
You want to accomplish this task by writing the minimum amount of code.
What should you do?
A. Create your own host application and use a TcpChannel and BinaryFormatter.
B. Create your own host application and use an HttpChannel and a SoapFormatter.
C. Install EXPatientinfo in an Internet Information Services (IIS) virtual directory.
Configure EXPatientinfo to use a TcpChannel and a BinaryFormatter.
Configure IIS to use SSL.
D. Install EXPatientinfo in an Internet Information Services (IIS) virtual directory.
Configure EXPatientinfo to use an HttpChannel and a SoapFormatter.
Configure IIS to use SSL.