IdeaBlade DevForce 2010 Help Reference
ServiceVirtualPathProvider Class
Members  See Also  Send Feedback
IdeaBlade.EntityModel.Web Assembly > IdeaBlade.EntityModel.Web Namespace : ServiceVirtualPathProvider Class



A System.Web.Hosting.VirtualPathProvider which resolves DevForce .svc file requests.

Syntax

Visual Basic (Declaration) 
Public Class ServiceVirtualPathProvider 
   Inherits System.Web.Hosting.VirtualPathProvider
Visual Basic (Usage)Copy Code
Dim instance As ServiceVirtualPathProvider
C# 
public class ServiceVirtualPathProvider : System.Web.Hosting.VirtualPathProvider 
C++/CLI 
public ref class ServiceVirtualPathProvider : public 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.