70-513 · Question #66
You are creating an ASP.NET web application that hosts several Windows Communication Foundation (WCF) services. The services have ASP.NET Compatibility Mode enabled. Users authenticate with the Web…
The correct answer is A. In the system web. Extensions scripting/webServices/authenticationService element, set C. Add a service endpoint with basicHttpBinding for the contract. See the full explanation below for the reasoning.
Question
You are creating an ASP.NET web application that hosts several Windows Communication Foundation (WCF) services. The services have ASP.NET Compatibility Mode enabled. Users authenticate with the Web application by using a cookie-based ASP.NET Forms Authentication model. You add a service file named Authentication.svc that contains the following code segment:
<%@ ServiceHost Service="System.Web.ApplicationServices.AuthenticationService" Factory="System.Web.ApplicationServices.ApplicationServicesHostFactory" %> You need to ensure that users can access the WCF services without having to re-authenticate. Which two configuration settings should you add? (Each is part of a complete solution. Choose two.)
Options
- AIn the system web. Extensions scripting/webServices/authenticationService element, set
- BIn the system web. Extensions scripting/webServices/profileService element, set the
- CAdd a service endpoint with basicHttpBinding for the contract
- DAdd a custom service behavior named AuthenticationService Type Behaviors with a
How the community answered
(39 responses)- A69% (27)
- B13% (5)
- D18% (7)
Community Discussion
No community discussion yet for this question.