PrepAway - Latest Free Exam Questions & Answers

You need to ensure that users can access the WCF services without having to re-authenticate

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.)

PrepAway - Latest Free Exam Questions & Answers

A.
In the system.web.extensions/scripting/webServices/authenticationService element, set
the enabled attribute to true.

B.
In the system.web.extensions/scripting/webServices/profileService element, set the
enabled attribute to true.

C.
Add a service endpoint with basicHttpBinding for the contract

System.Web.ApplicationServices.AuthenticationService.

D.
Add a custom service behavior named AuthenticationServiceTypeBehaviors with a
serviceAuthenticationManager element that has serviceAuthenticationManagerType set to
System.Web.Security.SqlMembershipProvider.


Leave a Reply