This documentation is archived and is not being maintained.

WCFBuildProvider Class

Generates proxy class code for Windows Communication Foundation (WCF) services

Namespace:  System.Web.Compilation
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class WCFBuildProvider : BuildProvider

The WCFBuildProvider uses mapping files (.svcmap) at the root level of the Web application that contains WCF service references. The mapping files specify the services for which proxy class source code must be generated. The generated proxy class is then compiled with the other resources during the Web application compilation phase.

The inherited VirtualPath property is internally defined and points to the Web application root directory where the .svcmap files reside.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5