<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx</link><description>This article applies to ASP.NET 2.0. Background This article originated from a customer question on the ASP.NET site .&amp;#160; What they are trying to achieve is running multiple sites under a single actual ASP.NET application.&amp;#160; This can be useful</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#497354</link><pubDate>Mon, 28 Nov 2005 09:17:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:497354</guid><dc:creator>Erling Paulsen</dc:creator><description>Hi David,&lt;br&gt;great post.  I have a question; Can the VirtualPathProvider handle any type of file, or just the ones mapped in IIS to the Asp.Net runtime?&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#497383</link><pubDate>Mon, 28 Nov 2005 13:13:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:497383</guid><dc:creator>Andrey Skvortsov</dc:creator><description>That's very interesting topic for me,particularly database driven part as you understand;-)&lt;br&gt;But I would like to know more about parser hooks in general-how INamingContainer control can get pre parsed content of itself for example?I mean if we have &amp;lt;c runat=&amp;quot;server&amp;quot;&amp;gt;....&amp;lt;%if(){%&amp;gt;...&amp;lt;%}%&amp;gt;...&amp;lt;/c&amp;gt; I want to get raw text inside &amp;lt;c/&amp;gt;,before(or after) it will be processed by parser-control graph is not very useful in some cases.&lt;br&gt;&lt;br&gt;Great post,keep it coming!</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#497696</link><pubDate>Tue, 29 Nov 2005 04:47:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:497696</guid><dc:creator>Lynn</dc:creator><description>David, I really enjoy this feature a lot. I'm using the VirtualPathProvider with the file system, but in a slightly dffferent way. What I'm doing is creating structured content in Xml files and using the VirtualPathProvider for  on-the-fly page declarative page composition. It works really we so far from a technical perspective, but I haven't had much chance to measure actual preformance. The best side effect is that the VPP allows for meaningful url names for dynamic files instead of using querystring variables - though this feature can be abused - and that inturn allows much better use of url authorization, and so on. There are a lot of really good wins here. &lt;br&gt;&lt;br&gt;A couple of things to note:&lt;br&gt;&lt;br&gt;1) Using a VirtualPathProvider and a default document doesn't work well in IIS 6 as it would require a default.aspx stub. Will this be resolved in IIS 7?&lt;br&gt;&lt;br&gt;2) Calling Precompile.axd does not perform compilation on providers added to the site. Is this by design? (Seems like the right idea.)&lt;br&gt;&lt;br&gt;3) Will IIS 7 have support for WinFs stores?&lt;br&gt;</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#497747</link><pubDate>Tue, 29 Nov 2005 07:56:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:497747</guid><dc:creator>Marc Fairorth</dc:creator><description>David, thanks for an excellent post, very valuable. Would a VPP be appropriate for someone considering an image management system -- i.e. store the images (.tiff) in a db instead on on a file store? Can you suggest some resources for learning more? Thanks!</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#497796</link><pubDate>Tue, 29 Nov 2005 11:23:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:497796</guid><dc:creator>SomeNewKid</dc:creator><description>Thank you, David, for looking into the problem that I described on the ASP.NET forums. &lt;br&gt;&lt;br&gt;The VirtualPathProvider does indeed allow me to override the way in which tilde-based paths are resolved in page directives, such as this:&lt;br&gt;&lt;br&gt;&amp;lt;%@ Register TagPrefix=&amp;quot;Test&amp;quot; TagName=&amp;quot;ChildControl&amp;quot; Src=&amp;quot;~/child.ascx&amp;quot; %&amp;gt;&lt;br&gt;&lt;br&gt;The VirtualPathProvider does not, however, affect the way in which tilde-based paths are resolved for dynamically loaded user controls, such as this:&lt;br&gt;&lt;br&gt;MyPlaceHolder.Controls.Add(LoadControl(&amp;quot;~/child.ascx&amp;quot;));&lt;br&gt;&lt;br&gt;To have the LoadControl method resolve tilde-based paths in the same way as Register directives requires that the page code-behind forcibly override this method:&lt;br&gt;&lt;br&gt;public new Control LoadControl(string relativePath)&lt;br&gt;{&lt;br&gt;    string newPath = relativePath;&lt;br&gt;    string site = this.Request.QueryString[&amp;quot;site&amp;quot;];&lt;br&gt;    if (String.IsNullOrEmpty(site) == false)&lt;br&gt;    {&lt;br&gt;        newPath = VirtualPathUtility.ToAppRelative(newPath);&lt;br&gt;        newPath = relativePath.Substring(1);&lt;br&gt;        newPath = &amp;quot;~/PeeudoSites/&amp;quot; + site + newPath;&lt;br&gt;    }&lt;br&gt;    return base.LoadControl(newPath);&lt;br&gt;}&lt;br&gt;&lt;br&gt;With the combination of a VirtualPathProvider and an updated base page class, an ASP.NET application can allow pseudo-sites (child sites) to work as though they were full sites.&lt;br&gt;&lt;br&gt;Great stuff! Thanks, David!</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#498034</link><pubDate>Wed, 30 Nov 2005 00:24:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:498034</guid><dc:creator>davidebb</dc:creator><description>Erling, the VPP only handles files that are handled by ASP.NET, since it is a part of the ASP.NET runtime.  Note that you can star map all requests for a given application to go to ASP.NET: in the IIS configuration, add an entry in the Wildcard application maps pointing to aspnet_isapi.dll (full path).</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#498055</link><pubDate>Wed, 30 Nov 2005 00:59:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:498055</guid><dc:creator>davidebb</dc:creator><description>Hi Lynn,&lt;br&gt;&lt;br&gt;I'm not much of an expert on IIS7, so I'll let others answer #1 and #3.  You might be able to get around #1 by mapping all request to ASP.NET (see my previous comment), and then use RewritePath to map the directory request to the default document yourself.&lt;br&gt;&lt;br&gt;#2: note that precompile.axd no longer exists in the released product (we removed it because of security concerns).  You can still do the equivalent from the command line using aspnet_compiler.exe.  But to answer your question, precompilation does not work with VirtualPathProviders.  I think it could have been made to work in theory, but there were some non-trivial issues, and scheduling made us decide not to support it&lt;br&gt;</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#498057</link><pubDate>Wed, 30 Nov 2005 01:02:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:498057</guid><dc:creator>davidebb</dc:creator><description>Hi Mark,&lt;br&gt;&lt;br&gt;Yes, I think a VPP could work for your image store.  Mostly, it will work well if you want your URL to look like they use a 'regular' directory structure instead of being based on quesry string params.&lt;br&gt;&lt;br&gt;There may not be much in term of resources right now, though I'm hoping to write a more complete VPP sample at some point.</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#498130</link><pubDate>Wed, 30 Nov 2005 04:03:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:498130</guid><dc:creator>davidebb</dc:creator><description>Hi Alister,&lt;br&gt;&lt;br&gt;Glad that this solution is working for you!&lt;br&gt;&lt;br&gt;You bring up a very good point about it not working for the LoadControl() case.  Frankly, I think that this case should have been made to go through VPP.CombineVirtualPaths as well, but for whatever reason, we didn't do this (you could say it's a bug).&lt;br&gt;&lt;br&gt;Your workaround will work, as long as LoadControl is called directly on your derived class (since LoadControl is not virtual).  Also, you may need a similar override in a UserControl base class (since LoadControl lives on TemplateControl).  Kind of a pain, but it least it gets you going!&lt;br&gt;</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#498187</link><pubDate>Wed, 30 Nov 2005 06:32:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:498187</guid><dc:creator>lynn</dc:creator><description>David, thanks for the heads up on the precompile.axd removal.I haven't gotten to the RTM yet.</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#503163</link><pubDate>Tue, 13 Dec 2005 19:28:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:503163</guid><dc:creator>Alex </dc:creator><description>The idea of using it to retrieve pages from a database is very interesting and might work for a project that I'm discussing right now.  &lt;br&gt;&lt;br&gt;If we were to retrieve the pages directly from the db, one question I would have is about compilation and performance.  &lt;br&gt;&lt;br&gt;1) Will the page be compiled the first time it is retrieved from the DB or would it be recompiled every time?  &lt;br&gt;2) When the page is compiling will other users of other pages also have to wait while the page compiles or will they be able to continue working with their pages while the newly retrieved pages compile.&lt;br&gt;3) Could the code-behind also be retrieved from the DB or just the ASPX page?&lt;br&gt;</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#506508</link><pubDate>Thu, 22 Dec 2005 00:50:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:506508</guid><dc:creator>davidebb</dc:creator><description>Alex,&lt;br&gt;&lt;br&gt;1. Compiled pages are cached, and not recompiled unless your VPP indicates they are out of date.&lt;br&gt;2. Generally, ASP.NET only allows one compilation to happen at a time.  However, other requests that don't require compilation won't be blocked.&lt;br&gt;3. Yes, the VPP applies to both the page and its code file.</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#511996</link><pubDate>Thu, 12 Jan 2006 17:20:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:511996</guid><dc:creator>Jun Meng</dc:creator><description>Quick question:&lt;br&gt;&lt;br&gt;Could you just set the virtual directory as &amp;quot;Application&amp;quot; in IIS? This way, you do not need any coding for &amp;quot;~/&amp;quot;.</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#515747</link><pubDate>Sat, 21 Jan 2006 18:33:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:515747</guid><dc:creator>Sharad Kumar</dc:creator><description>David,&lt;br&gt;&lt;br&gt;Thanks loads for the post. I'm looking forward to utilize CombinePath approach for my following case:&lt;br&gt;&lt;br&gt;1. Multiple Virtual WebSites, with different domains are pointing to same application. Through a HttpModule, I map to corresponding folders of websites based on their host. This allows me to simplify:&lt;br&gt;a. www.domain1.com/default.aspx &amp;gt;&amp;gt; to &amp;gt;&amp;gt; www.domain1.com/app_websites/domain1/default.aspx&lt;br&gt;b. www.domain2.com/default.aspx &amp;gt;&amp;gt; to &amp;gt;&amp;gt; www.domain2.com/app_websites/domain2/default.aspx&lt;br&gt;&lt;br&gt;Above works absolutely fine with Context.RewritePath, functionally. Problem I'm facing is to base my Urls correctly to Theme resources, with respect to default.aspx which is in root (as in Url). Where does basing, w.r.t. Theme resources happen? How can make ../../App_Themes/Red/Style.css to /App_Themes/Red/Style.css w.r.t. /Default.aspx (virtual), which is actually inside domain folder? &lt;br&gt;&lt;br&gt;Any help shall be greatly useful. Thanks.&lt;br&gt;&lt;br&gt;-- Sharad</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#516563</link><pubDate>Tue, 24 Jan 2006 04:33:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:516563</guid><dc:creator>davidebb</dc:creator><description>Jun,&lt;br&gt;&lt;br&gt;Yes, you could certainly do this, but the premise here is that we want to be &amp;quot;running multiple sites under a single actual ASP.NET application&amp;quot;.  Why?  Because it is much lighter weight than having multiple applications, so it can potentially scale to a very large number of apps.&lt;br&gt;&lt;br&gt;David</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#516567</link><pubDate>Tue, 24 Jan 2006 04:41:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:516567</guid><dc:creator>davidebb</dc:creator><description>Sharad,&lt;br&gt;&lt;br&gt;Maybe one approach that would work is to star map all requests to ASP.NET in IIS, in order to have them all go through your HttpModule.  From there you could then fix up the paths?&lt;br&gt;&lt;br&gt;David</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#517379</link><pubDate>Wed, 25 Jan 2006 17:26:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517379</guid><dc:creator>Scott</dc:creator><description>David,&lt;br&gt;&lt;br&gt;This is exactly what I needed. Thanks, and excellent work!</description></item><item><title>Understanding VirtualPath Provider and more</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#542109</link><pubDate>Thu, 02 Mar 2006 17:55:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:542109</guid><dc:creator>Jonathans Blog</dc:creator><description>So, in ASP.NET 2.0 we have this niftty feature that noone really understands called the Virtual Path...</description></item><item><title>Excluding directories from VPP</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#552918</link><pubDate>Thu, 16 Mar 2006 18:51:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:552918</guid><dc:creator>Ed</dc:creator><description>Hi,&lt;br&gt;&lt;br&gt;This is a great feature for content management. I've got it working with my cms database to load content, but how do I exclude the directory containing the cms admin system itself?&lt;br&gt;&lt;br&gt;www.mysite.com/mydir/page.aspx&lt;br&gt;Something like this loads fine from the db. &lt;br&gt;&lt;br&gt;www.mysite.com/cms/default.aspx&lt;br&gt;This page doesn't exist in the database so is a 404. I need to somehow exclude /cms/ and all its children from the VPP so they can be served normally.&lt;br&gt;Any pointers would be greatly appreciated!&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;Ed&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Excluding directories from VPP</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#552931</link><pubDate>Thu, 16 Mar 2006 19:04:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:552931</guid><dc:creator>davidebb</dc:creator><description>Hi Ed,&lt;br&gt;&lt;br&gt;You should be able to exclude content by simply forwarding the calls to don't want to handle to 'Previous'. &amp;nbsp;e.g. if you get a call to GetDirectory for your cms dir, just return Previous.GetDirectory(virtualDir).&lt;br&gt;&lt;br&gt;David</description></item><item><title>re: Excluding directories from VPP</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#553001</link><pubDate>Thu, 16 Mar 2006 19:53:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:553001</guid><dc:creator>Ed</dc:creator><description>Hi David,&lt;br&gt;&lt;br&gt;That doesn't seem to be working.&lt;br&gt;I haven't changed the GetDirectory method from Scott Guthrie's original example which returns Previous.GetDirectory(virtualDir) if the db access layer's file record data is null.&lt;br&gt;Any thoughts on how I could debug this would be great.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;Ed</description></item><item><title>re: Excluding directories from VPP</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#553191</link><pubDate>Fri, 17 Mar 2006 00:01:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:553191</guid><dc:creator>Ed</dc:creator><description>Hi, found the problem. In the code sample I downloaded the FileExists and DirectoryExists methods were returning false when the file record data was null. These need to be changed to: &lt;br&gt;&lt;br&gt;return Previous.FileExists(virtualPath);&lt;br&gt;&lt;br&gt;and&lt;br&gt;&lt;br&gt;return Previous.DirectoryExists(virtualDir);&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;Ed</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#585769</link><pubDate>Fri, 28 Apr 2006 09:04:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:585769</guid><dc:creator>black</dc:creator><description>that's just what i want! great!&lt;br&gt;&lt;br&gt;&lt;br&gt;Sprite Builder - combine separate images into one sprite.&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.yaodownload.com/video-design/animationdesigntools/sprite-builder_animationdesigntools.htm"&gt;http://www.yaodownload.com/video-design/animationdesigntools/sprite-builder_animationdesigntools.htm&lt;/a&gt;</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#586333</link><pubDate>Fri, 28 Apr 2006 23:37:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:586333</guid><dc:creator>bsmith</dc:creator><description>I have been looking for an article showing how to implement the VirtualPathProvider to pull Micorsoft Office Documents from a database. &amp;nbsp;From what I have found so far, it is a little more involved. &amp;nbsp;Any advice you could offer on this topic would be great.&lt;br&gt;</description></item><item><title>Can this be used to share a directory between apps?</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#594766</link><pubDate>Wed, 10 May 2006 21:48:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:594766</guid><dc:creator>Jesse</dc:creator><description>I'm trying to do something different, but this seems like it might be the solution. Could I use VPP to let me share an &amp;quot;images&amp;quot; directory between two web apps? I.e.,&lt;br&gt;&lt;br&gt;wwwroot/&lt;br&gt; app1/&lt;br&gt; app2/&lt;br&gt; images/&lt;br&gt;&lt;br&gt;Where the &amp;quot;images/&amp;quot; part of the path gets dynamically rewritten to an absolute filesystem path (wwwroot/images) instead of an app-rooted path (appN/images)?&lt;br&gt;&lt;br&gt;Or is there an easier way to do this?&lt;br&gt;</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#594964</link><pubDate>Thu, 11 May 2006 02:59:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:594964</guid><dc:creator>davidebb</dc:creator><description>Jesse, maybe an easier way to do this is to use NTFS junctions to make a single directory appear in multiple places. &amp;nbsp;e.g. start by looking at this tools: &lt;a rel="nofollow" target="_new" href="http://www.sysinternals.com/Utilities/Junction.html"&gt;http://www.sysinternals.com/Utilities/Junction.html&lt;/a&gt;</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#595136</link><pubDate>Thu, 11 May 2006 08:31:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:595136</guid><dc:creator>Jesse</dc:creator><description>Thanks, David! That's *exactly* what I needed. Except that my problem's on a shared server, where I can't shell out to exe's. But I found a C# wrapper for the DFS API's: &lt;a rel="nofollow" target="_new" href="http://www.pinvoke.net/default.aspx/netapi32.NetDfsAdd"&gt;http://www.pinvoke.net/default.aspx/netapi32.NetDfsAdd&lt;/a&gt;&lt;br&gt;&lt;br&gt;Hopefully, this will do the trick.</description></item><item><title>ASP.Net Virtual Theme Provider 1.0</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#651460</link><pubDate>Fri, 30 Jun 2006 02:14:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:651460</guid><dc:creator>Rory Primrose</dc:creator><description>ASP.Net 2.0&amp;amp;amp;nbsp;is bundled with some great technology, especially what is available through the&amp;amp;amp;nbsp;provider...</description></item><item><title>re: Overriding ASP.NET combine behavior using a VirtualPathProvider</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#671587</link><pubDate>Wed, 19 Jul 2006 20:05:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:671587</guid><dc:creator>Fabrice JEAN-FRANCOIS</dc:creator><description>Yo Guys,&lt;br&gt;&lt;br&gt;I have found a way to register my VirtualPathProvider with the precompile option...&lt;br&gt;&lt;br&gt;It's really easy with only 9 lines of code.&lt;br&gt;&lt;br&gt;Why do I need this functionnality? Becoz I'm working in a bank that need to share its masterpage and that compels us to precompile and create a single assembly (aspnet_merge) with versioning for all our websites...&lt;br&gt;&lt;br&gt;So, what is my secret ? &amp;nbsp;Very easy. The answer is DynamicMethod. I call a Microsoft internal method to register my VirtualPathProvider.&lt;br&gt;&lt;br&gt;Nevertheless, there are limitations. For exemple, i suppose it does not work for all situation (since Microsoft doesn't want us to precompile). Moreover, I am now dependent of the CLR version and implementation (Microsoft can still change its code without my permission :-D )&lt;br&gt;&lt;br&gt;May the code be with you...&lt;br&gt;&lt;br&gt;</description></item><item><title>Using VirtualPathProvider and Server.MapPath??</title><link>http://blogs.msdn.com/davidebb/archive/2005/11/27/overriding-asp-net-combine-behavior-using-a-virtualpathprovider.aspx#1251485</link><pubDate>Sun, 10 Dec 2006 12:35:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1251485</guid><dc:creator>ASP.NET - 25 Feet Below the Surface</dc:creator><description>&lt;p&gt;Recently one of the engineers on my team (Amitkumar Sharma) got this issue reported by the customer where&lt;/p&gt;
</description></item></channel></rss>