What should you do to ensure that the Windows-based application can connect to the component?
You create a serviced component.
You install the component into the COM+ catalog.
COM+ runs on the server.
A Windows-based application that is installed on multiple desktop computers must use the component.
The component must run on the server, but the Windows-based application must send component method calls over the network to the component.
The communications protocol used is DCOM.
You need to ensure that the Windows-based application can connect to the component.
What should you do?
What should you do to ensure that the GUI is updated without unnecessary delay?
You are writing an application that provides a graphical administrative interface to a message queue that displays information about the messages.
The GUI is updated in the AdminFunction function.
You need to ensure that the GUI is updated without unnecessary delay, and that processed messages contain the most recent message contents.
What should you do?
What should you do to ensure that the client Console Application calls the Add method on SERVER1?
An assembly named SimpleMathLib is deployed to the Bin folder that is under a virtual directory named SimpleMathHost, which is on an IIS server named SERVER1.
The SimpleMathLib assembly contains the following code.
namespace SimpleMath
{
public class SimpleMathClass : MarshalByRefObject
{
public double Add(double x, double y)
{
return x + y;
}
}
}
The Web.config file under the SimpleMathHost virtual directory contains the proper configuration to host SimpleMath as a remoting object.
You write a client Console Application and add a reference to the SimpleMathLib assembly.
You need to ensure that the client Console Application calls the Add method on SERVER1 and returns the correct sum of the parameters to the Console Application.
What should you do?
What should you do to create the SimpleMathClass class?
A Windows service application must host a .NET Framework remoting class named SimpleMathClass.
SimpleMathClass must have the following method, which can be called remotely.
public double Add(double x, double y)
{
return x + y;
}
You need to create the SimpleMathClass class.
What should you do?
What should you do to ensure that the server can raise events on the client application?
You are writing a .NET Framework remoting client application.
The server application raises events to the client application using an interface named IBroadcaster and an event wrapper.
The event wrapper and the interface are located in an assembly named General that is common to the client and server.
The server configuration file is as follows:
<system.runtime.remoting>
<application>
<channels>
<channel ref="http" port="2020">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
<clientProviders>
<formatter ref="binary" />
</clientProviders>
</channel>
</channels>
<service>
<wellknown mode="Singleton" type="Server.Broadcaster, Server" objectUri="Broadcaster.soap" />
</service>
</application>
</system.runtime.remoting>
You need to ensure that the server can raise events on the client application.
What should you do?
What should you do to ensure that the application does not fail when the Web service raises the exception?
An application fails when executing a specific operation.
You discover that the failure occurs when an exception is raised by a Web service.
The application uses the following code to call the Web service.
void Process()
{
ProcessService serviceProxy = new ProcessService();
serviceProxy.ProcessDataCompleted += new ProcessDataCompletedEventHandler(ServiceCompleted);
serviceProxy.ProcessDataAsync(data);
}
You need to ensure that the application does not fail when the Web service raises the exception.
Your solution must maximize the performance of your code.
What should you do?
What should you do to ensure that the server application can raise the event on the client computer?
You are converting an application to use .NET Framework remoting.
The server portion of the application monitors stock prices and contains a class named StockPriceServer, which is a Server Activated Object (SAO).
The client computer interacts with the server using a common assembly.
When the server attempts to raise an event on the client computer, the server throws the following exception.System.IO.FileNotFoundException.
You discover that the event delegate is not being called on the client computer. You need to ensure that the server application can raise the event on the client computer.
What should you do?
What should you do to ensure that the SOAP signature is not invalidated when the SOAP message is routed?
You are writing a Web service application that uses Web Services Enhancements (WSE) 3.0 policies.
The Web service request and response data must be signed.
Routing occurs between the client and server computers, and uses the Action SOAP header of the SOAP messages.
You need to ensure that the SOAP signature is not invalidated when the SOAP message is routed.
What should you do?
What should you do next?
You are developing a product search page named Search.aspx for Web application that will be integrated into Domain.com’s existing e-Commerce Web site. The Search.aspx page allows customers search for products that match specific criteria. The search criteria are implemented as CheckBox controls. The Search button is implemented as a Button control. You want the CheckBox controls to be cleared when the Search button is clicked. You set the Checked property of each CheckBox to False in the designer.
What should you do next?
What code segment should you use?
You are developing a Web application for Domain.com’s existing Web site. The Web application implements role-based security to allow for the administration and maintenance of the Domain.com Web site. It allows members of the Admins role to administer the Web site, including the databases used by the Web site, while allowing members of the Support role to a maintain the Web site by adding and editing product information. Only members of the Admins role should have access to confidential user information.
What code segment should you use?