单选题You need to modify a client application that consumes a Windows Communication Foundation (WCF) service. The service metadata is no longer available. You need to modify the previously generated proxy to include asynchronous calls to the service. What should you do? ()AUpdate the service reference with the Generate asynchronous operations option.BCreate a partial class for the previously generated proxy and include the new asynchronous methods.CCreate a class with the same name as the previously generated proxy and add the new asynchronous methods. Add the new class to a namespace that is different from the original proxy.DCreate a class with the same name as the previously generated proxy and add the new asynchronous methods as partial methods. Add the new class to a namespace that is different from the original proxy.

单选题
You need to modify a client application that consumes a Windows Communication Foundation (WCF) service. The service metadata is no longer available. You need to modify the previously generated proxy to include asynchronous calls to the service. What should you do? ()
A

Update the service reference with the Generate asynchronous operations option.

B

Create a partial class for the previously generated proxy and include the new asynchronous methods.

C

Create a class with the same name as the previously generated proxy and add the new asynchronous methods. Add the new class to a namespace that is different from the original proxy.

D

Create a class with the same name as the previously generated proxy and add the new asynchronous methods as partial methods. Add the new class to a namespace that is different from the original proxy.


参考解析

解析: 暂无解析

相关考题:

You are developing a Windows Communication Foundation (WCF) service.You enable message logging, trace listeners, activity propagation, and tracing on the trace sources.You have the following code segment in the client application. (Line numbers are included for reference only.)01 Guid multiCallActivityId = Guid.NewGuid();02 TraceSource ts = new TraceSource(Multicall);03 Trace.CorrelationManager.ActivityId = multiCallActivityId;04You encounter errors when your client application consumes the service.You need to ensure that your client application can correlate tracing information with the service.Which code segment should you add at line 04?()A.B.C.D.

You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()A. TimeoutExceptionB. FaultExceptionC. DivideByZeroExceptionD. FaultExceptionSalesFault

You are creating an application that consumes a Windows Communication Foundation (WCF) service. The service implements the IService contract. The client application contains the CallbackHandler class, which implements IServiceCallback.You need to ensure that a client proxy is created that can communicate with the service over a duplex channel.Which code segment should you use?()A.B.C.D.

Your network contains an Active Directory domain named contoso.com. The network has DirectAccess deployed.You deploy a new server named Server1 that hosts a management application.You need to ensure that Server1 can initiate connections to DirectAccess client computers.Which settings should you modify from the DirectAccess Setup console?()A. Application ServersB. DirectAccess ServerC. Infrastructure ServersD. Remote Clients

You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled.You create an intermediate WCF service for logging messages sent to the primary service.The intermediate service is called via endpoint behaviour. The primary service is receiving malformed data from a client application.You need to enable inspection of the malformed data and prevent message tampering.What do you do?()A. Specify a protection level of None in the contract for the intermediate service. Disable message and transport security from the client application configuration file.B. Specify a protection level of Sign in the contract for the intermediate service. Disable transport security from the client application configuration file.C. Modify the binding on the intermediate service to use netNamedPipeBinding.D. Modify the binding on the intermediate service to use webHttpBinding.

You want to debug the Windows Communication Foundation (WCF) client and server interaction through message and application tracing.You need to correlate traces generated on the client and the server. Which XML segment should you add to the system.diagnostics configuration element in the client and server application configuration file?()A.B.C.D.

Your company runs Remote Desktop Services. All client computers run Windows Vista SP2. You have a Remote Desktop Session Host (RD Session Host) server. You need to deploy a RemoteApp application to client computers and ensure that the application appears on the Start menu. Which file type should you distribute to the client computers?()A、Windows Installer (.msi)B、Client Configuration File (.wcx)C、Shortcut file (.LNK)D、RemoteApp Programs list and settings (.tspub)

You are creating a Windows Communication Foundation (WCF) service. The service endpoints change frequently. On the service, you add a new ServiceDiscoveryBehavior to the Behaviors collection of the ServiceHost Description property. You need to ensure that client applications can communicate with the service and discover changes to the service endpoints. What should you do?()A、Add a new ServiceDiscoveryBehavior to the Behaviors collection in the client application.B、Add a new AnnouncementClient to the Behaviors collection in the client application.C、Use the FindCriteria class and the UdpDiscoveryEndpoint class to set up the binding in the client application.D、Use the DiscoveryProxy class and the EndpointDiscoveryMetadata class to set up the binding in the client application.

Your company has 1,000 client computers that run Windows XP Professional x64.   You are planning to deploy Windows 7 Enterprise x64. The company uses an application that is incompatible with Windows 7 Enterprise x64.   You have the following requirements:   Provide all users with access to the application.   Deploy and manage the application by using a centralized solution.  You need to design a solution that meets the requirements.   What should you do?()A、 Install the application on all client computers by using Group Policy,and then use the Compatibility tab.B、 Install the Microsoft Enterprise Desktop Virtualization(MED-V) v2 package on each client computer.C、 Install the Microsoft Application Virtualization(App-V) client on each client computer,and stream the application byusing App-V.D、 Install the Microsoft Application Virtualization(App-V) client on each client computer,and run the application in offline mode.

You are a network administrator for your company. You need to test a new application.   The application requires two processors and 2 GB of RAM. The application also requires shared folders on the application server and requires the installation of software on the client computers.   You create the test plan. You assemble a server in the test lab. You install Windows Server 2003, Web Edition on theserver. You install the application on the server. You install the client software components for the application on 20 client computers in the test lab.   You test the application. You discover that only some of the client computers can run the application. You turn off the client computers that ran the application successfully, and you test again. The client computers that failed in the first test now run the application successfully.   You need to identify the cause of the failure and update your test plan.   What should you do? ()A、 Increase the Maximum number of worker processes to 20 for the default application pool.B、 Use Add or Remove Programs to add the Application Server Windows component.C、 Change the Application pool identity to Local Service for the default application pool.D、 Change the test server operating system to Windows Server 2003, Standard Edition or Windows Server 2003, Enterprise Edition.

You create Windows Forms application by using the .Net FrameWork 3.5 You plan to deploy a new application to client computers that use the Windows Vista operating system. You need to ensure that the user can install the application without being prompted fore elevated permission.What should you do?()A、Sign the deployment manifest by using an Authenticode certificate.Publish the application to a CD-ROM.Install the application on each client computer from the CD-ROMB、Sign the deployment manifest by using an Authenticode certificate.Publish the application to a server on the network.Install the application on each client computer.C、Add the requestedExecutionLevel="highestAvailable" attribute to the deployment.Publish the application to a server on the network.Install the application on each client computer.D、Add the requestedExecutionLevel="requiresAdministrator" attribute to the deployment.Publish the application to a server on the network.Install the application on each client computer.

You are developing a client application that consumes a Windows Communication Foundation (WCF) service. You use the svcutil.exe utility to create a proxy for the service. You use the svcutil.exe switches that generate asynchronous calls. GetFlight is a service operation that takes no parameters and returns a string. The GetFlightCallback method must be called when the service operation returns.You create an instance of the client proxy with the following code:var client = new TranvelServiceClient( );You need to ensure that a callback is received when the GetFlight operation is called asynchronously. Which code segment should you use?()A、client.BeginGetFlight(GetFlightCallback, null); client.GetFlight();B、client.GetFlight(); client.BeginGetFlight(GetFlightCallback, null);C、client.GetFlightCompleted += new EventHandler(GetFlightCallback); client.GetFlightAsync();D、IAsyncResult asyncResult = client.BeginGetFlight(GetFlightCallback, client); client.EndGetFlight(asyncResult);

You develop a Web application. Your application contains two settings in the Web.config file. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do? ()A、Modify the application settings by using the Web Site Administration Tool.B、Modify the application settings by using the Visual Studio property page editor for the project.C、Modify the application settings by using the resource editor.D、Modify the application settings by using the Visual Studio start options editor.

Your network consists of a single Active Directory domain. The network contains a Terminal Server that runs Windows Server 2008, and client computers that run Windows Vista. All computers are members of the domain.   You deploy an application by using the TS RemoteApp Manager. The Terminal Servers security layer is set to Negotiate.  You need to ensure that domain users are not prompted for credentials when they access the application. What should you do?()A、On the server, modify the Password Policy settings in the local Group Policy.B、On the server, modify the Credential Delegation settings in the local Group Policy.C、On all client computers, modify the Password Policy settings in the local Group Policy.D、On all client computers, modify the Credential Delegation settings in the local Group Policy.

You have a computer that runs Windows 7. You create an application shim for a third-party application byusing the Microsoft Application Compatibility Toolkit (ACT). You need to ensure that the application shim isapplied the next time you run the application.  What should you do first ?()A、Run Sdbinst.exe.B、Run Msiexec.exe.C、Right-click the application executable file and modify the compatibility settings.D、Right-click the application executable file and modify the advanced security settings.

Your network contains an Active Directory domain named contoso.com. The network has DirectAccess deployed.You deploy a new server named Server1 that hosts a management application.You need to ensure that Server1 can initiate connections to DirectAccess client computers.Which settings should you modify from the DirectAccess Setup console?()A、Application ServersB、DirectAccess ServerC、Infrastructure ServersD、Remote Clients

You are creating a client application and configuring it to call a Windows Communication Foundation (WCF) service.When the application is deployed, it will be configured to send all messages to a WCF routing service. You need to ensure that the application can consume the target service after the application is deployed. What should you do?()A、In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the router service.B、In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the target service.C、In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the target service.D、In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the router service.

Your network has client computers that run Windows XP.  All users access a custom line-of- business application.   The line-of-business application is not compatible with Windows 7. You are planning to deploy Windows 7.   You have the following requirements:   The application must run on all client computers.   The application executable must reside on each client computer.    You need to manage application compatibility to meet the requirements.   What should you do?()A、Install the application on a Remote Desktop Services server.B、Install a shim for the application on each client computer.C、Install the Windows Compatibility Evaluator on each client computer.D、Virtualize the application by using Microsoft Application Virtualization (App-V).

Your company plans to distribute an application to all of its client computers by using GroupPolicy. You save a file named setup.msi to a local folder on the domain controller. You assign the Authenticated Users group the Read and Read  Execute permissions for the folder. You create a new Group Policy  object (GPO) and a new Computer Configuration software installation package, and you point the package to the setup.msi file in the local folder. You link the GPO to an organizational unit (OU) that contains a computer object for a test client computer. When you log on to the test client computer, you  notice that the application is not installed. You need to ensure that the application is installed on the test computer.  What should you do?()A、 Modify the permissions on the folder that contains the setup.msi file so that authenticated users have the List Folder Contents permission. Log off the client computer and then log on.B、 Modify the permissions on the folder that contains the setup.msi file so that authenticated users have the List Folder Contents permission. Restart the client computer.C、 Place the setup.msi file into a shared folder. Modify the software installation package to point to the shared folder. Log off the client computer and then log on.D、 Place the setup.msi file into a shared folder. Modify the software installation package to point to the shared folder. Restart the client computer.

An application has been migrated to the Windows Azure platform.  The application references a native x86 DLL.  The DLL source code is not available.   The application displays an error when loading the DLL.   You need to recommend an approach for ensuring that the application can load the DLL.  What should you recommend?()A、 Create a 32bit application to host the DLL.B、 Modify the application to allow unsafe code.C、 Modify the application to call methods in the DLL.D、 Modify the application to target the x86 platform.

单选题Your network contains an Active Directory domain named contoso.com. The network has DirectAccess deployed.You deploy a new server named Server1 that hosts a management application.You need to ensure that Server1 can initiate connections to DirectAccess client computers.Which settings should you modify from the DirectAccess Setup console?()AApplication ServersBDirectAccess ServerCInfrastructure ServersDRemote Clients

单选题Your network consists of a single Active Directory domain. The network contains a Terminal Server that runs Windows Server 2008, and client computers that run Windows Vista. All computers are members of the domain.   You deploy an application by using the TS RemoteApp Manager. The Terminal Servers security layer is set to Negotiate.  You need to ensure that domain users are not prompted for credentials when they access the application. What should you do?()AOn the server, modify the Password Policy settings in the local Group Policy.BOn the server, modify the Credential Delegation settings in the local Group Policy.COn all client computers, modify the Password Policy settings in the local Group Policy.DOn all client computers, modify the Credential Delegation settings in the local Group Policy.

单选题Your company plans to distribute an application to all of its client computers by using GroupPolicy. You save a file named setup.msi to a local folder on the domain controller. You assign the Authenticated Users group the Read and Read  Execute permissions for the folder. You create a new Group Policy  object (GPO) and a new Computer Configuration software installation package, and you point the package to the setup.msi file in the local folder. You link the GPO to an organizational unit (OU) that contains a computer object for a test client computer. When you log on to the test client computer, you  notice that the application is not installed. You need to ensure that the application is installed on the test computer.  What should you do?()A Modify the permissions on the folder that contains the setup.msi file so that authenticated users have the List Folder Contents permission. Log off the client computer and then log on.B Modify the permissions on the folder that contains the setup.msi file so that authenticated users have the List Folder Contents permission. Restart the client computer.C Place the setup.msi file into a shared folder. Modify the software installation package to point to the shared folder. Log off the client computer and then log on.D Place the setup.msi file into a shared folder. Modify the software installation package to point to the shared folder. Restart the client computer.

单选题You are developing a client application that consumes a Windows Communication Foundation (WCF) service. You use the svcutil.exe utility to create a proxy for the service. You use the svcutil.exe switches that generate asynchronous calls. GetFlight is a service operation that takes no parameters and returns a string. The GetFlightCallback method must be called when the service operation returns.You create an instance of the client proxy with the following code:var client = new TranvelServiceClient( );You need to ensure that a callback is received when the GetFlight operation is called asynchronously. Which code segment should you use?()Aclient.BeginGetFlight(GetFlightCallback, null); client.GetFlight();Bclient.GetFlight(); client.BeginGetFlight(GetFlightCallback, null);Cclient.GetFlightCompleted += new EventHandler(GetFlightCallback); client.GetFlightAsync();DIAsyncResult asyncResult = client.BeginGetFlight(GetFlightCallback, client); client.EndGetFlight(asyncResult);

单选题Your company has 1,000 client computers that run Windows XP Professional x64.   You are planning to deploy Windows 7 Enterprise x64. The company uses an application that is incompatible with Windows 7 Enterprise x64.   You have the following requirements:   Provide all users with access to the application.   Deploy and manage the application by using a centralized solution.  You need to design a solution that meets the requirements.   What should you do?()A Install the application on all client computers by using Group Policy,and then use the Compatibility tab.B Install the Microsoft Enterprise Desktop Virtualization(MED-V) v2 package on each client computer.C Install the Microsoft Application Virtualization(App-V) client on each client computer,and stream the application byusing App-V.D Install the Microsoft Application Virtualization(App-V) client on each client computer,and run the application in offline mode.

单选题You are developing a client application that consumes a Windows Communication Foundation (WCF) service. The operation contract is as follows. [OperationContract] [FaultContract(typeof(SalesFault))] string GetSales(string saleId);() The service configuration file contains the following line in the serviceBehaviors section. A divide-by-zero exception is not being handled by the service. You need to ensure that the exception is caught in the client application. Which type of exception should the client catch?()ATimeoutExceptionBFaultExceptionCDivideByZeroExceptionDFaultExceptionSalesFault

单选题An application has been migrated to the Windows Azure platform.  The application references a native x86 DLL.  The DLL source code is not available.   The application displays an error when loading the DLL.   You need to recommend an approach for ensuring that the application can load the DLL.  What should you recommend?()A Create a 32bit application to host the DLL.B Modify the application to allow unsafe code.C Modify the application to call methods in the DLL.D Modify the application to target the x86 platform.