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
0
votes
0 answers

ASP.NET MVC Embedding View and VirtualPathProvider

I've developed a software based on ASP.NET MVC and want to protect my View's Razor content. For that I created a resource file and put them there then used VirtualPathProvider for handling .cshtml request. problem : views using @Html.Partial and no…
Mironline
  • 2,755
  • 7
  • 35
  • 61
0
votes
1 answer

How to reuse the partial view of One MVC application into another MVC application

How to reuse the partial view or templates of one MVC application into another MVC application. I have created two MVC applications in a single solution. The applications are DemoVirtualPathProvider and SimpleMVCApp. I have added one extra…
0
votes
1 answer

GetCacheDependency not called in custom VirtualPathProvider

I've written a custom implementation of VirtualPathProvider which allows me to pull images from Azure Blob Storage. The provider does its thing but calls GetFile upon every request which isn't great for performance. GetFile public override…
James South
  • 10,147
  • 4
  • 59
  • 115
0
votes
1 answer

Episever MapRequestHandler Returns wrong Physical Path

Im uploading a file with help of UnifiedDirectory in Episerver 7.1. The file is saved perfectly when browsed within episerver VPP file explorer. For instance the path could become something like: Path: XformFiles/xformdata/2015_04_24/file.jpg If i…
Marcus
  • 1
  • 3
0
votes
1 answer

Manipulation VirtualPathProvider cache

I am building a cms System which depend on VirtualPathProvider. I need to show the cashed page with ability to release this cache. here is the code where the cache is built. how can I access to this cache? to show a list of cached pages public…
Bakri
  • 597
  • 10
  • 22
0
votes
1 answer

Custom VirtualPathProvider with Ninject

I am using my custom virtual provider in my ASP.Net MVC4 project. Let's call the provider MyVirtualPathProvider. The provider is registered in OnApplicationStarted method like this: HostingEnvironment.RegisterVirtualPathProvider(new…
Antipod
  • 1,593
  • 3
  • 23
  • 43
0
votes
1 answer

mvc5 multi-tenancy and custom views

I'm trying to do a multi-tenanted app, where tenants can get their own subdomains e.g. tenant1.mysite.com tenant2.mysite.com I've tried using custom routedata, it works only on the first page, somehow on the other pages like /login, /register,…
Lee Gary
  • 2,357
  • 2
  • 22
  • 38
0
votes
1 answer

how to get query string with VirtualPathProvider

I am usnig a VirtualPathProvider, but with in the function public bool IsPathVirtual(string virtualPath) {} virtualPath give just the URL with out query string my question is how can i get query string.
Bakri
  • 597
  • 10
  • 22
0
votes
1 answer

EmbeddedResourceVirtualPathProvider and @Html.TextBoxFor(Linq expression)

In my .cshtml file, I'm getting an error wherever I use @Html.TextBoxFor here's a sample code: @model WebComposite.Models.CompositeModel @Html.TextBoxFor(m => m.name) Error: Error…
DotNet98
  • 727
  • 3
  • 12
  • 24
0
votes
0 answers

VirtualPathProvider issue

Implemented a virtual path provider to dynamically load some files from a shared project in a new web application. Everything works fine in dev/deployed and local IIS. When deploying to production we are encountering "Failed to start monitoring…
snowCrabs
  • 785
  • 5
  • 11
0
votes
1 answer

What does MSBuild escape in embedded resorce names

I've noticed MSBuild escapes folders that start with a number when it's generating the resource name e.g. ...\2012.01.01\site.css becomes ..._2012._01._01.site.css in the resource name Is there any documentation on the rules MSBuild uses to…
David Hayes
  • 7,402
  • 14
  • 50
  • 62
0
votes
3 answers

Reusable ASP.NET User Control Library : Virtual path provider or ascx/aspx copy?

I have a ASP.Net web application that I want to use as a reusable user control library in other web applications. One solution for this problem is to use what Scott Guthrie has described…
Thierry
  • 133
  • 1
  • 3
  • 12
0
votes
1 answer

imageresizing.net on hybrid file system (Database Driven linked to data files on file system)

I stumbled upon the ImageResizer from ImageResizing.net and am wondering how I would integrate this with my website. We have a lot of files \ images that we consider opened to the public and then we have others that are private. We have all of our…
0
votes
0 answers

Using VirtualPathProvider in separate DLL

I'm writing an application which requires me to embed .aspx pages into a dll. Previously I had a httphandler process all these pages and I built them up line by line in code. I have learned that I can actually use the VirtualPathProvider to serve up…
0
votes
2 answers

Reference problems when using VirtualPathProvider to dynamically load a view

I have the following set of classes that I used to dynamically load in a View. The code below works well when called with .RenderPartial. public class VirtFile:VirtualFile { public VirtFile(string virtualPath) : base(virtualPath) { } …
Sean Lynch
  • 1,604
  • 19
  • 29