I have an asp.net website. I just want to use asp.net compatibility mode for one of the wcf services.
However, when I do this, I get an error message for all services because it is trying to use it for each of them.
How can I selectively use aspNetCompatibilityEnabled for wcf.
I am doing this due to performance issues.
Unfortunately this is not possible. ServiceHostingEnvironment.AspNetCompatibilityEnabledis a static member, so it always applies to all services within the same AppDomain.
ServiceHostingEnvironment.AspNetCompatibilityEnabled
AspNetCompatibility , (IIS) . , ! ?