AspNetCompatibilityRequirementsAttribute.IServiceBehavior.ApplyDispatchBehavior Method
Checks that the type of hosting is consistent with the ASP.NET compatibility requirements.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
void IServiceBehavior.ApplyDispatchBehavior(
ServiceDescription description,
ServiceHostBase serviceHostBase
)
Parameters
- description
- Type: System.ServiceModel.Description.ServiceDescription
The ServiceDescription of the service.
- serviceHostBase
- Type: System.ServiceModel.ServiceHostBase
The ServiceHostBase for hosting the service.
Implements
IServiceBehavior.ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)| Exception | Condition |
|---|---|
| ArgumentNullException |
description is null. |
| InvalidOperationException |
The service hosting is not compatible with the ASP.NET compatibility requirements. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.