Specifies whether a Windows Communication Foundation (WCF) service runs, or can run, in a mode that is compatible with ASP.NET.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
WCF services can run in an application domain with ASP.NET compatibility mode set to true or false.
WCF services must run in an application domain with ASP.NET compatibility mode set to false.
WCF services must run in an application domain with ASP.NET compatibility mode set to true.
ASP.NET compatibility mode allows WCF services to use ASP features such as identity impersonation. It is enabled at the application level through the Web.config file and cannot be overridden by Web.config files nested in the application. When the <serviceHostingEnvironment>.value is not specified for a service, it gets behavior by default. For more information, see
Legacy Code Example
Service developers can ensure that their service is only run in ASP.NET Compatibility Mode by setting the AspNetCompatibilityRequirementsAttribute to as shown in the following example:property on the
Available since 3.0