Questions tagged [virtualpathprovider]

VirtualPathProvider is class which provides a set of methods that enable a Web application to retrieve resources from a virtual file system.

VirtualPathProvider is class which provides a set of methods that enable a Web application to retrieve resources from a virtual file system.

117 questions
1
vote
0 answers

ASP.NET VirtualPathProvider .Execute()': no suitable method found to override

I am currently trying to implement Razor Web Pages in older WebForms project, and also, make it possible to render partial views from string (taken from database elsewhere). I've implemented custom VirtualPathProvider with all overrides specified…
John
  • 31
  • 1
  • 2
1
vote
0 answers

ASP.NET VirtualPathProvider.DirectoryExists() sometimes right, sometimes wrong

In my web app the following call returns true early during application startup, then returns false later for whatever reason: HostingEnvironment.VirtualPathProvider.DirectoryExists("~/some/existing/directory") The folder exists and at the same time…
Piedone
  • 2,693
  • 2
  • 24
  • 43
1
vote
1 answer

Virtual Path Provider to serve Razor Files from External Location - When Razor file changes, any way not to require an app pool restart?

I have a working virtual path provider serving razor files that are being dynamically generated. The problem is that when these razor files change an app pool restart is required. I believe that normally the file monitor handles this for traditional…
Joshua Enfield
  • 17,642
  • 10
  • 51
  • 98
1
vote
1 answer

VirtualPathProvider on IIS 6 does not handle file stream caching correctly

I am working on a framework where .aspx and .master pages are embedded in an assembly, using VirtualPathProvider to route a url to a specific embedded resource. Sample url: /_framework.aspx/mypage.aspx (which uses…
1
vote
0 answers

EmbeddedResourceVirtualPathProvider + Bundling with wildcards

I'm using the (EmbeddedResourceVirtualPathProvider ) to allow views etc. to exist in a different DLL. I've got all this working nicely apart from the bunding, I've upgraded Microsoft.AspNet.Web.Optimization to 1.1.2 which supports VPP but I can't…
David Hayes
  • 7,402
  • 14
  • 50
  • 62
1
vote
1 answer

Override some Methodes of VirtualPathProvider

I want to use the default implemented VirtualPathProvider of ASP.Net MVC Web Application. In other words I want to inherit my own VirtualPathProvider from default Asp.net VirtualPathProvider and just override the GetCacheKey Method. What should I…
Manoochehr Dadashi
  • 715
  • 1
  • 10
  • 28
1
vote
1 answer

MVC3 and virtual view without VirtualPathProvider

I have a MVC3 Application and I have few of my views content saved in database as string. Now I need to create a virtual view and return this to the client. I read that this can be done by VirtualPathProvider. But wanted to know whether this can be…
thinkmmk
  • 487
  • 1
  • 8
  • 22
1
vote
1 answer

Assembly loaded by byte array gives problems on ascx compilation (referencedAssemblies cannot contain null)

I have a problem that is a bit complicated to explain (otherwise I wouldn't have problems with it :) ), but I'll give it a try. I have an asp.net webapplication and I'm trying to load user controls at runtime from an other project without the…
JDC
  • 1,569
  • 16
  • 33
1
vote
0 answers

Using .NET MVC 4.0 VirtualPathProviders in a web farm scenario

We have an application that relies heavily on a virtual file system that extends the .NET System.Web.Hosting.VirtualPathProvider architecture. We use chaining to search through... (A)contentresourceprovider (extends…
1
vote
2 answers

SharePoint, VirtualPathProviders and Application Restarts

Given that the only way to unload dynamically compiled assemblies (to reclaim memory) is to unload the app domain, how does SharePoint rely on VirtualPathProviders, for master pages and page layouts in particular, without bumping into this…
Nariman
  • 6,368
  • 1
  • 35
  • 50
1
vote
0 answers

How to add a working aws S3 virtualpath provider for EpiServer pagefiles?

I'm running a EpiServer project where i want to take use of Amazon S3, to host images, etc... there will be alot of images that will exist from the pagefiles directory. I've downloaded NuGet for Visual Studio and added the AWSSDK and Geta.AmazonS3…
Evi
  • 81
  • 1
  • 1
  • 6
1
vote
0 answers

virtual view inheriting from System.Web.Mvc.ViewStartPage

I had an issue with when trying to retrieve virtual views from a file by means of VirtualPathProvider, which is described in this stackoverflow thread. Now my question is why does a virtual view inherits from System.Web.Mvc.ViewStartPage, and how to…
1
vote
2 answers

asp.net mvc virtual views and web configuration

There are many examples out there which show how to store and retrieve virtual views from a file or database, but none of them show how to configure root web.config so that the application works properly, when a view's content retrieved from a file…
Stefan Fachmann
  • 555
  • 1
  • 5
  • 18
1
vote
0 answers

VirtualPathProvider not parsing razor markup

I am using a VirtualPathProvider to load razor views from the database as discussed in this article. The problem is when the view loads, the Razor markup is not being parsed. It is being rendered on the page exactly like this "@inherits…
Chris Kooken
  • 32,730
  • 15
  • 85
  • 123
1
vote
0 answers

ASP.NET MVC 3 Cannot find _viewstart.cshtml when using plugin/embedded views

I'm trying out a plugin mechanism for ASP.NET MVC 3 (razor) using embedded views as described here, I changed the view engine to inherit from the RazorViewEngine, but otherwise didn't really change anything. Now I'm calling a controller action in…
Wout
  • 624
  • 5
  • 14