I have an wcf based services that uses \[code\]System.ServiceModel.Discovery.AnnouncementService\[/code\] object in their Infrastructure.Everything went down well till I didn't start use my proxy classes at web application. I have to set \[code\]AspNetCompatibilityEnabled = true\[/code\] in order to allow ajax authorization. So I faced to problem that changes in my config affect all endpoints, and I don't know why .NET framework object doesn't work in proper way anymore.The hack that I impemented is next\[code\][AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]public class CustomAnnouncementService : AnnouncementService{}\[/code\]That's so weird. But it works. Any other solutions or suggestions?Here is initialization code for AnnouncmentService:\[code\]private void AddAnnouncementListener() { AnnouncementService announcementListener = new CustomAnnouncementService(); announcementListener.OnlineAnnouncementReceived += OnOnlineEvent; announcementListener.OfflineAnnouncementReceived += OnOfflineEvent; _announcementListener = new ServiceHost(announcementListener); UdpAnnouncementEndpoint endpoint = new UdpAnnouncementEndpoint(); endpoint.TransportSettings.TimeToLive = MULTICAST_TTL; _announcementListener.AddServiceEndpoint(endpoint); _announcementListener.Open(); }\[/code\]Here is my Authorization ajax service:\[code\]namespace IIP.WebApp.RestAPI.Account{[ServiceContract(Namespace = "")][AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]public class AccountService{ [OperationContract] [WebGet] public void LogOn(Credentials credentials) { if (!Membership.ValidateUser(credentials.Username, credentials.Password)) { throw new Exception("The user name or password provided is incorrect."); } FormsAuthentication.SetAuthCookie(credentials.Username, credentials.RememberMe); }}}\[/code\]