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
5
votes
1 answer

Running a custom VirtualPathProvider with a PreCompiled website

currently I have a custom VirtualPathProvider in a Asp.net MVC web application. This VirtualPathProvider checks the Area from the route "/{Area}/{Controller}/..." and uses the NameSpace.{Area}.Main.dll module to return the views that are contained…
5
votes
1 answer

Caching static resources returned via VirtualPathProvider

I'm using a VirtualPathProvider that currently maps a virtual path to a directory external to the solution. I'm building this mainly for self-exercise. This is totally equivalent of having a soft-link or NTFS hard-link in the solution's…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
5
votes
0 answers

VirtualPathProvider performance

I'm currently trying to create a class library and embed the MVC views in it so we can share it across multiple sites as explained here: http://www.wynia.org/wordpress/2008/12/aspnet-mvc-plugins/ Performance is important so I'm trying to figure out…
thomasvdb
  • 739
  • 1
  • 11
  • 32
4
votes
1 answer

Using VirtualPathProvider to put Themes in Azure CDN

I'm trying to implement storing an Azure web site's Themes in the Azure CDN. I've copied the files into the CDN retaining the folder structure as it was in the original App_Themes folder. I've created a VirtualPathProvider and the necessary…
Mad Pierre
  • 440
  • 2
  • 11
4
votes
2 answers

ASP.net UserControl and AppDomain TypeResolve

I'm using a VirtualPathProvider to include usercontrols that are not available at compile-time. Everything is working correctly except for the reference to the dll that actually contains the control. When the page that has the control is called it…
AlexCode
  • 4,055
  • 4
  • 33
  • 46
4
votes
0 answers

How can I load static file in Virtual Path Provider for example images

I would like to ask a question about loading static files (for example .png file) and using Virtual Path Provider. So, I created project with App_Start: public static void Start() { ConfigureBundles(); …
Perdido
  • 238
  • 3
  • 12
4
votes
0 answers

MVC GetFile Method Not Being Called in VirtualPathProvider

I have created a VirtualPathProvider to read Partial views (from Azure Storage) but when I get to the page where I want the VirtualPathProvider to go looking for a view (in Azure Storage), it doesn't call the GetFile method. Therefore it doesnt find…
Frank Cannon
  • 1,643
  • 2
  • 18
  • 29
4
votes
2 answers

Using custom VirtualPathProvider to load embedded views that inherit a custom WebViewPage

Similar to this question I am using a custom VirtualPathProvider to retrieve views that are embedded in dlls. If I don't put @inherits System.Web.Mvc.WebViewPage on my view I get this error: The view at '~/Views/Home/Index.cshtml' must derive from…
ashanan
  • 121
  • 9
4
votes
1 answer

Compiling/Embedding ASCX templated UserControls for reuse in multiple web applications

I'm onto a real head scratcher here ... and it appears to be one of the more frustrating topics of ASP.NET. I've got an assembly that implements a-lot of custom Linq stuff, which at it's core has zero web functionality. I have an additional…
Rabid
  • 2,984
  • 2
  • 25
  • 25
3
votes
1 answer

How to Overwrite or Update Cache files in Flutter while using Path Provider

Below Code i have created for local caching using path provider String fileName="pathString.json"; var dir=await getTemporaryDirectory(); File file=File(dir.path+"/"+fileName); if(!file.existsSync()) { final http.Response response = await…
3
votes
1 answer

Strange behaviour when loading razor view from custom VirtualPathProvider (ASHX Source)

I get some strange behaviour when I load data via my custom VirtualPathProvider. It might be important to mention, that I am trying to use this view as a layout. public class MyVirtualPathProvider : VirtualPathProvider { public…
Dänu
  • 5,791
  • 9
  • 43
  • 56
3
votes
1 answer

asp.net VirtualPathProvider - clearing Cache using GetCacheDependancy problem

I'm using VirtualPathProvider to return virtual pages from a SQL Server table. This is working pk and the code in my VirtualPathProvider class file is below. The problem I'm having is that when I make a change the virtual page data (title or page…
Steve
  • 35
  • 5
3
votes
1 answer

ASP.Net VirtualPathProvider and Visual Studio Intellisense

I'm hoping someone can help me out with this annoyance. At work we have two independent website projects that share a common MasterPage. The MasterPage is embedded in a class library that both projects reference. We use a custom VirtualPathProvider…
rossisdead
  • 2,102
  • 1
  • 19
  • 30
3
votes
2 answers

Is it possible to use virtual path provider with DotNetNuke?

We have a DNN module that uses Angular as its client side framework. I'd like to be able to embed all the resources such as html , js ,css ,images and fonts to my module.(actually our module have more than one dll and every one of them has its own…
3
votes
1 answer

ASP .NET VirtualPathProvider HttpCompileException

I have a VirtualPathProvider that is loading my aspx file content from a DB. All seems to be well and good except when my aspx file has a reference to a namespace or assembly that is not explicitly mentioned in my web.config. The solution seems easy…
Jeff
  • 35,755
  • 15
  • 108
  • 220