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 value is not specified for a service, it gets behavior by default. For more information, see <serviceHostingEnvironment>.
Service developers can ensure that their service is only run in ASP.NET Compatibility Mode by setting the property on the AspNetCompatibilityRequirementsAttribute to as shown in the following example:
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.