I have WCF service. i want each and request to WCF operation be scanned throughthe IHttpModule module. But it not hitting the IHttpModule.
Any help is highly appreciated.
I have WCF service. i want each and request to WCF operation be scanned throughthe IHttpModule module. But it not hitting the IHttpModule.
Any help is highly appreciated.
HttpModules work with WCF only if you run WCF service in ASP.NET compatibility mode. You can enable ASP.NET compatibility mode either of following way.
Using web.config
< system.serviceModel> < serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> < /system.serviceModel>
Using attribute
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class Service : IService { // ... }