DevForce Help Reference
ServiceVirtualPathProvider Class
Members 


A System.Web.Hosting.VirtualPathProvider which resolves DevForce .svc file requests.
Syntax
'Declaration
 
Public Class ServiceVirtualPathProvider 
   Inherits System.Web.Hosting.VirtualPathProvider
'Usage
 
Dim instance As ServiceVirtualPathProvider
public class ServiceVirtualPathProvider : System.Web.Hosting.VirtualPathProvider 
Remarks
When this provider is registered you do not need to provide either a physical .svc file or an entry for the svc in the serviceActivations section of the web.config. Only the EntityService and EntityServer services are supported. If either the requested file is present, or the entry is included in the serviceActivations, the provider will not supply the file contents.

To register the provider add the following to the Application_Start logic within your global.asax: System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider()); You also need to ensure that the IdeaBlade.EntityModel.Web assemby is in bin or the GAC.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.Web.Hosting.VirtualPathProvider
         IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider

Requirements

Target Platforms: 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

See Also

Reference

ServiceVirtualPathProvider Members
IdeaBlade.EntityModel.Web Namespace

Send Feedback