Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
Exam
: Microsoft 70-310
Title
: Dev XML Web
Services&Server Comp
W/MSVB.net&Ms.net
Framework
Version : Demo
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
1. You create a collection of serviced components that performs bank transfers. All the components are
marked with the Transaction(TransactionOption.Required) attribute. All the methods in the components are
marked with the AutoComplete() attribute.
You discover that incorrect balance amounts are being transferred. You decide to debug the components.
During debugging, a System.Runtime.InteropServices.COMException is thrown. The HRESULT for the
exception is 0x8004E002. The exception includes the following message: "The root transaction wanted to
commit, but transaction aborted."
You find that this exception occurs only during the debugging session, and not when the components run
outside of the debugger. This exception is preventing you from continuing to debug the components. You
need to resolve this problem.
What should you do?
A. Remove the AutoComplete attribute from each method. Within each method implementation, add calls to
the ContextUtil.SetComplete() and ContextUtil.SetAbort() methods.
B. Remove the AutoComplete attribute from each method. Within each method implementation, add calls to
the ContextUtil.MyTransactionVote and ContextUtil.DeactivateOnReturn properties.
C. Increase the transaction timeout in the Component Services tool by using the Properties dialog box for
My Computer.
D. Replace each method implementation with the following code segment:
Try
The original method implementation goes here.
Finally
ContextUtil.SetComplete()
End Try
Answer: C
2. You create a .NET Remoting object named MyRemoteObject in an XML Web service named
MyWebService. All method calls made on MyRemoteObject are routed to a single instance of this object.
The state of MyRemoteObject must be maintained between method call