Hints And Tips research knowledge archive
Tip# 439
Sponsored Links
 
Subject: Http Exception - ReduceVirtualPath Error
Updated: Jul-16-2006
Rating: Not Rated
By: Rocky Moore - Member #: 1
Location: Klamath Falls, Oregon USA
Website: www.RockyMoore.com
Category: Computers > Programming > .NET > ASP.NET
Rate This Tip (10=Great):  1  2  3  4  5  6  7  8  9  10
I spent many hours trying to figure out why I was getting an HttpException message about "Cannot use leading .. to exit above the top directory" in the System.Web.Util.UrlPath.ReduceVirtualPath function.  There was absolutely no where in my code the use of "..".  This was only a problem on ASP.NET 2.0 using IIS6 and only in production code, would not have a problem in debug code.


Well, it turns out that for certain user agents (mostly search engines such as the Google Bot), that the Url RewritePath() function would generate a "../url" in the Form action target and was causing the error.

Does not appear to be a fix at the time of this posting, but there are work arounds.  Also, have not tested on .NET 3.0 to see if the problem still exits.

Here is a link for more information:

http://todotnet.com/archive/0001/01/01/7472.aspx?Pending=true

[Submit DIGG for this tip]


-----------
Note: Use the tips posted on this site at your own risk. The tips are posted by the public and as such may or may not be valid.

Sponsored Links
Categories
hints and tips gold divider
Sponsor Sites To Visit
The Awakening
Spirit-Filled Christianity is
more than filling a pew !

Not producing fruit?
Healing, where to turn?
Provision, where to turn?
Lost, where to turn?

It is time for --TheAwakening !
The Saints In Light
Christian Thoughts on
Various Topics - Check it Out!

Click Here
Silverlight City

Keep up with the latest in
Microsoft's Silverlight
Technology!

Click Here
Our Local Christians
Find other Christians
In your local area
Who share your beliefs!

Click Here
United Christian Voters
Tired of seeing your
Rights Vanish?
If all Christians would
Pull together, we can
bring Change Unite Now!

Click Here
Reflected Thought
Inventions ~ Ideas ~ Humor
Politics ~ Opinions ~ Thoughts
Software Development
Business And Stuff....

Click Here
HintsnTips.com
Articles on Various Topics!

Click Here
XML RSS News Feed For Recently Posted Hints And Tips  RSS Feed
You can now get updates to the Recent Tips section by using RSS. The address is:

HintsAndTips.com/Rss.aspx

* Posting Tips *
To post a Tip, Recommendation or Tips Wanted, simply browse to the category you feel is a best fit for your post (click on the Recommention or Tips Wanted tab if fitting) and then click on "New Post" option.
(C) Copyright 1998-2009 All Rights Reserved By R & J Technologies - www.RJSoft.com