AspNetCompatibilityEnabled for one service

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.

+3
source share
1 answer

Unfortunately this is not possible. ServiceHostingEnvironment.AspNetCompatibilityEnabledis a static member, so it always applies to all services within the same AppDomain.

AspNetCompatibility , (IIS) . , ! ?

+4

All Articles