<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Visual Web Developer 2005 Express</title><link>http://forums.asp.net/175.aspx</link><description>General discussions about Visual Web Developer 2005 Express Edition</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1305176.aspx</link><pubDate>Mon, 05 Jun 2006 09:00:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1305176</guid><dc:creator>SomeNewKid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1305176.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1305176</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;sonurijs:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Can u send me the above said article to me&lt;/div&gt;&lt;/BLOCKQUOTE&gt;If you are referring to my article, you may read it here: &lt;a href="http://www.edition3.com/articles/root-relative-paths"&gt;&lt;strong&gt;Using Root-Relative Paths in ASP.NET&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&amp;nbsp;</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1305105.aspx</link><pubDate>Mon, 05 Jun 2006 06:35:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1305105</guid><dc:creator>sonurijs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1305105.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1305105</wfw:commentRss><description>&lt;p&gt;hello Friend,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can u send me the above said article to me as i am in urgent need regarding change of relative path. what i want to do is i have two folders of images (for example one and two)&lt;/p&gt;
&lt;p&gt;Form1.aspx&lt;/p&gt;
&lt;p&gt;One(Folder) - File.jpg&lt;/p&gt;
&lt;p&gt;Two(Folder) - File.jpg&lt;/p&gt;
&lt;p&gt;Form1.aspx has an image for File.jpg. if the file exists in folder One, then it should be loaded. or if the file does not exists in the folder One, then it should use folder Two for the image. this i have to implement in common for all the images in my solution.&lt;/p&gt;
&lt;p&gt;please help me in this regard,&lt;/p&gt;
&lt;p&gt;thanks for the solution&lt;/p&gt;
&lt;p&gt;Sonnu&lt;/p&gt;</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1249398.aspx</link><pubDate>Thu, 06 Apr 2006 03:32:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1249398</guid><dc:creator>SomeNewKid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1249398.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1249398</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;SomeNewKid:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Stephen, if you want to send me an email, I will send to you an article I have written about this and the code to fix root-relative paths in an ASP.NET application. The article is not yet published online, so I cannot point you to it.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;Just in case anyone stumbles upon this thread, I've since put the article and its code download&amp;nbsp;on my website: &lt;a href="http://www.edition3.com/articles/root-relative-paths"&gt;&lt;strong&gt;Using Root-Relative Paths in ASP.NET&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&amp;nbsp;</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1126312.aspx</link><pubDate>Tue, 29 Nov 2005 08:35:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1126312</guid><dc:creator>SomeNewKid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1126312.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1126312</wfw:commentRss><description>First, to Scott,&amp;nbsp;thank you for pointing a member of your team to this thread. I genuinely appreciate it.&lt;BR&gt;&lt;BR&gt;Second, to David, thank you for researching an answer to my question. The VirtualPathProvider option does indeed solve one-half of the problem. To solve the other half requires updating the base class of any "child" .aspx pages. I have added a reply to your blog entry regarding this "other half".&lt;BR&gt;&lt;BR&gt;With your help, the pages of my child sites are working as though they were of "root-level" sites. That is, the tilde-based paths are resolving into each site's pseudo-root folder, rather than the application's true root folder. This is precisely the behaviour I was looking to implement.&lt;BR&gt;&lt;BR&gt;Thank you, guys! I am truly grateful for your help.&lt;BR&gt;&amp;nbsp;</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1125063.aspx</link><pubDate>Mon, 28 Nov 2005 04:50:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1125063</guid><dc:creator>davidebb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1125063.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1125063</wfw:commentRss><description>&lt;P&gt;Hi Alister,&lt;BR&gt;&lt;BR&gt;I think this is a good topic that could be of interest to others, so I wrote a &lt;A href="http://blogs.msdn.com/davidebb/archive/2005/11/27/497339.aspx"&gt;blog&amp;nbsp;entry&lt;/A&gt; to discuss a possible solution using VirtualPathProvider.&lt;BR&gt;&lt;BR&gt;Hope this helps, and feel free to follow up on the blog.&lt;BR&gt;&lt;BR&gt;David&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1124494.aspx</link><pubDate>Sun, 27 Nov 2005 00:42:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1124494</guid><dc:creator>SomeNewKid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1124494.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1124494</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;davidebb wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="txt4"&gt;The one reason I can think of to do this is if you have a very large number of sites, in which case you will scale better with a single app.&amp;nbsp; Is that your situation?&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;Yes, that is precisely my situation. I create small, personal websites. It is unnecessarily expensive to purchase a new hosting plan for each and every new website. It is more economical to purchase one advanced hosting plan, and allow its single ASP.NET application to drive a number of separate websites. This works today, and&amp;nbsp;works&amp;nbsp;fine.&lt;BR&gt;&lt;BR&gt;I then attempted to install the Personal Site Starter Kit as a "child" site:&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /root&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /bin&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; personal-site.dll&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; example1.dll&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /sites&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /personal.com&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default.aspx&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /example1.com&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default.aspx&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;I started removing all of the tilde-based paths from the Personal Site Starter Kit, and then questioned whether I could instead change the behaviour of the tilde-based paths. I hit the framework with Reflector, but could not find an "overridable point" that would allow me to change the way tilde-based paths resolve.&lt;BR&gt;&lt;BR&gt;I don't mind a non-trivial solution. But even with a provider pattern solution, I don't see how I can affect the behaviour of the System.Web.UI classes that resolve a tilde-based path. If you can provide any clues, I'd be very grateful.&lt;BR&gt;&amp;nbsp;</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1122059.aspx</link><pubDate>Wed, 23 Nov 2005 16:17:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1122059</guid><dc:creator>davidebb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1122059.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1122059</wfw:commentRss><description>Hi Alister,&lt;BR&gt;&lt;BR&gt;I hadn't seen this specific pattern used before.&amp;nbsp; It may be possible to solve this using a VirtualPathProvider, though it will be a little non-trivial.&amp;nbsp; Before we get to that, I'm curious about the reasons for using this pattern.&amp;nbsp; Wouldn't it be simpler to use a different ASP.NET application to serve each site, instead of only using one and having to deal with these path rewriting issues?&amp;nbsp; The one reason I can think of to do this is if you have a very large number of sites, in which case you will scale better with a single app.&amp;nbsp; Is that your situation?&lt;BR&gt;&lt;BR&gt;thanks,&lt;BR&gt;David</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1120263.aspx</link><pubDate>Tue, 22 Nov 2005 07:34:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1120263</guid><dc:creator>SomeNewKid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1120263.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1120263</wfw:commentRss><description>Scott, speaking of root-relative paths, I wonder if I might ask you a related question?&lt;br&gt;
&lt;br&gt;
My web application serves multiple websites by employing URL rewriting. The folder structure of my web application is like this:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /root&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /sites&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /example1.com&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /example2.com&lt;br&gt;
&lt;br&gt;
If a user requests www.example1.com/default.aspx from her browser, my URL
rewriting code will use HttpContext.Current.RewritePath() to change the
path from /default.aspx to /sites/example1.com/default.aspx. This is an easy and well-known technique.&lt;br&gt;
&lt;br&gt;
In that default.aspx page, I can include the following root-relative path:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img src="/images/logo.gif" /&amp;gt;&lt;br&gt;
&lt;br&gt;
My URL rewriting code will again intercept this request (a wildcard
mapping in IIS passes all requests to my ASP.NET app), and will resolve
the path to /sites/example1.com/images/logo.gif. This is simple stuff.&lt;br&gt;
&lt;br&gt;
The problem comes with things like the following Page and User Control directives:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;%@ Page MasterPageFile="/Default.master" %&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;%@ Register TagPrefix="My" TagName="UserControl" Src="/MyUserControl.aspx" %&amp;gt;&lt;br&gt;
&lt;br&gt;
In both cases, the path will resolve to the application /root folder
rather than the "rewritten" root folder of /sites/example1.com/. &lt;br&gt;
&lt;br&gt;
I have been peeking about in the ASP.NET framework using Reflector, and
scouring the MSDN documentation, but I just cannot see how I can change
the way these paths resolve. Do you know whether it is possible to
change the way these paths resolve?&lt;br&gt;
&amp;nbsp;&lt;br&gt;</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1120239.aspx</link><pubDate>Tue, 22 Nov 2005 06:22:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1120239</guid><dc:creator>ScottGu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1120239.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1120239</wfw:commentRss><description>Here is a blog post I just made on how to fix it too; &lt;A href="http://weblogs.asp.net/scottgu/archive/2005/11/21/431138.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2005/11/21/431138.aspx&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;Hope this helps,&lt;BR&gt;&lt;BR&gt;Scott</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1120210.aspx</link><pubDate>Tue, 22 Nov 2005 05:23:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1120210</guid><dc:creator>SomeNewKid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1120210.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1120210</wfw:commentRss><description>I have sent you the article and the code. I hope it helps you.&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&lt;br&gt;</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1120139.aspx</link><pubDate>Tue, 22 Nov 2005 02:59:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1120139</guid><dc:creator>Hondaman900</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1120139.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1120139</wfw:commentRss><description>Thank you, that would be helpful. Please e-mail to stephen@mediaq.net&lt;BR&gt;&lt;BR&gt;Thanks</description></item><item><title>Re: Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1120098.aspx</link><pubDate>Tue, 22 Nov 2005 02:13:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1120098</guid><dc:creator>SomeNewKid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1120098.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1120098</wfw:commentRss><description>&lt;P&gt;Stephen, if you want to send me an email, I will send to you an article I have written about this and the code to fix root-relative paths in an ASP.NET application. The article is not yet published online, so I cannot point you to it.&lt;BR&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Relative-to-root path messed up with VWDX server</title><link>http://forums.asp.net/thread/1120077.aspx</link><pubDate>Tue, 22 Nov 2005 01:50:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1120077</guid><dc:creator>Hondaman900</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1120077.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1120077</wfw:commentRss><description>&lt;P&gt;When I would run my apps with Web Matrix, the page would run under localhost on the Web Matrix dev server. Now VWDX appends the physical directory of my aspx files to localhost, using the directory name as a virtual directory (so running from say "MyApp" directory, the application root is now localhost/MyApp). The net-net is that my relative paths are off. &lt;BR&gt;&lt;BR&gt;I use FreeTextBox, which has it's images in a nested series of directories under &amp;lt;root&amp;gt;/images/...etc.... When the app runs in it's own folder, FreeTextBox expects it's images to be in localhost/images/...etc.... , while the actual image files are in localhost/MyApp/images/...etc....&amp;nbsp; because of the new weird root of the VWDX dev server. Placing a copy of the images directory one up from MyApp doesn't help either.&lt;BR&gt;&lt;BR&gt;Hope this makes sense.&lt;BR&gt;&lt;BR&gt;Any suggestions, and why is this happening?&lt;BR&gt;&lt;BR&gt;Stephen&lt;/P&gt;</description></item></channel></rss>