Visual Basic (Declaration) | |
---|---|
Public Class ServiceVirtualPathProvider Inherits System.Web.Hosting.VirtualPathProvider |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ServiceVirtualPathProvider |
C# | |
---|---|
public class ServiceVirtualPathProvider : System.Web.Hosting.VirtualPathProvider |
C++/CLI | |
---|---|
public ref class ServiceVirtualPathProvider : public System.Web.Hosting.VirtualPathProvider |
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.
System.Object
System.MarshalByRefObject
System.Web.Hosting.VirtualPathProvider
IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider
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