You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted on a Web server. You need to ensure that the service is able to access the current HttpContext instance. Which configuration settings and attribute should you use?
A.
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled=”true” />
</system.serviceModel>
[AspNetCompatibilityRequirements(RequirementsMode= AspNetCompatibilityRequirementsMode.Allowed)]
B.
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled=”false” />
</system.serviceModel>
[AspNetCompatibilityRequirements(RequirementsMode= AspNetCompatibilityRequirementsMode.Allowed)]
C.
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled=”true” />
</system.serviceModel>
[AspNetCompatibilityRequirements(RequirementsMode= AspNetCompatibilityRequirementsMode.NotAllowed)]
D.
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled=”false” />
</system.serviceModel>
[AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Required)]