ID4284: ClaimsPrincipalPermission cannot be used because the Thread.CurrentPrincipal is not an IClaimsPrincipal. ClaimsPrincipalPermission ...

ID4284: ClaimsPrincipalPermission cannot be used because the Thread.CurrentPrincipal is not an IClaimsPrincipal. ClaimsPrincipalPermission can only be used if Windows Identity Foundation (WIF) is being used. To enable WIF for WCF services, call FederatedServiceCredentials.ConfigureServiceHost(). To enable WIF for ASP.NET, add one of the following modules: ClaimsPrincipalHttpModule or WSFederationAuthenticationModule.