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

How do I get VirtualPathProvider to include page presenter and interface files?

I have implemented a VirtualPathProvider which fetches a page from a database. This works ok for a simple application consisting of just one markup file (.aspx), its code file (.aspx.vb) and a master page. Then I have moved code from the code file…
0
votes
2 answers

HostingEnvironment.VirtualPathProvider.FileExists returns false on existing file

I'm trying to read a file in a virtual path, using the following code HostingEnvironment.VirtualPathProvider.FileExists(_SiteMapFileName) _SiteMapFileName has something like "~/Content/en-US/MainMenu.sitemap" and it is always returning false. But…
pollirrata
  • 5,188
  • 2
  • 32
  • 50
0
votes
1 answer

Implement virtualpathprovide and display date time from string in virtual file

I am very new to MVC and trying to impalement the virtual path provider, and displaying the date time on the screen. The path works fine and recognized by application, however it will not display detetime, instead it just displays the string "Time…
cyrus-d
  • 749
  • 1
  • 12
  • 29
0
votes
1 answer

How to use EmbeddedResourceVirtualPathPovider with IIS6

While developing a ASP.NET MVC4 web application with VS2010, using the Mvc.JQuery.Datatables Nuget, I found that the EmbeddedResourceVirtualPathProvider NuGet that is referenced, worked beautifully on my dev box, but failed miserably on my…
scott-pascoe
  • 1,463
  • 1
  • 13
  • 31
0
votes
1 answer

VirtualPathProvider in Azure not working when published

I created a VirtualPathProvider to allow to move all the resources in a custom folder based on the Request.Host, to manage multiple domains with one web application. On my local machine the MVC application works, when I publish to Azure I obtain a…
Matteo Migliore
  • 925
  • 8
  • 22
0
votes
1 answer

How to fake a directory listing in IIS? VirtualPathProvider works for file but

We're using AppFabric 1.1 & IIS 8.0 to run our xamlx based workflows. To make the static xamlx files go away we're used Ron Jacobs perfect sample code to store them in a database and serve the xamlx content trough a…
Chris Richner
  • 2,863
  • 2
  • 26
  • 38
0
votes
0 answers

How to load some views from database, and others from files in MVC4

Im having a web application that loads _Layout and the normal page views from file, and I now try to load partial views from a database using a VirtualPathProvider and an overriden VirtualFile: public class RavenDbPathProvider : VirtualPathProvider…
Marcus Oldin
  • 117
  • 1
  • 8
0
votes
1 answer

C# VirtualPathProvider Static-Pages

I've got a virtual path provider (VPP) that serves simple aspx pages. The problem lies when I introduce static references such as *.css, *.jpg files, etc ... I noticed my VPP is capturing these requests. I don't want this to happen. I want the…
downatone
  • 1,936
  • 2
  • 23
  • 30
0
votes
0 answers

Using Javascript library from other project

I have two websites and in one of them I have some scripts that I want to use on the second website, I don't want to copy the .js files to the other projects, because if I had some change on the .js file I will have to do the same thing twice. I…
0
votes
1 answer

Loading non embedded views from other projects

I'm working on a mvc3 project which should support modules. So for example I have a MVC3 core project and a MVC3 module project (MyModule). Now I wish to load and display the views from the MVC3 module project in the core project. I wrote a custom…
0
votes
1 answer

Implement a multiple web project structure in asp.net webforms

I'm working in a web application that has several areas of bussiness work. With time it's size has became a problem to develop on and to maintain. I would like to break the web project into several sub-projects or libraries depending on a main root…
Sergio
  • 1,383
  • 2
  • 13
  • 28
0
votes
2 answers

Get the absolute server path(physical path) of file for FileInfo

I'm using an EPi server provider:
Anton Belev
  • 11,963
  • 22
  • 70
  • 111
1 2 3 4 5 6 7
8