Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Exception Details: System.Web.HttpException: Cannot use a leading .. to exit above the top directory.

Posted on 2010-09-02
5
Medium Priority
?
1,060 Views
Last Modified: 2012-05-10
I have a hyperlink on a sub domain aspx page pointing to another active server page.  When I execute the hyperlink the page throws the following error:  Any suggestions.  I checked my configuration page it that is set correct.  I have checked other link on this site and tried them as well with no help.  Any assistance would be great.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Cannot use a leading .. to exit above the top directory.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Cannot use a leading .. to exit above the top directory.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
   System.Web.Util.UrlPath.ReduceVirtualPath(String path) +8855223
   System.Web.Util.UrlPath.ReduceVirtualPath(String path) +8855309
   System.Web.Util.UrlPath.Reduce(String path) +52
   System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +214
   System.Web.VirtualPath.Combine(VirtualPath relativePath) +119
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +84
   System.Web.HttpRequest.MapPath(String virtualPath, String baseVirtualDir, Boolean allowCrossAppMapping) +87
   System.Web.UI.WebControls.AccessDataSource.GetPhysicalDataFilePath() +101
   System.Web.UI.WebControls.AccessDataSource.get_PhysicalDataFile() +15
   System.Web.UI.WebControls.AccessDataSource.CreateConnectionString() +16
   System.Web.UI.WebControls.AccessDataSource.get_ConnectionString() +15
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +78
   System.Web.UI.WebControls.AccessDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +58
   System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +95
   System.Web.UI.WebControls.ListControl.PerformSelect() +34
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
   System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +18
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

 
0
Comment
Question by:BOEING39
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 33593611
do you have css files? if yes, try moving them to some different folders.
0
 
LVL 4

Expert Comment

by:dschauhan82
ID: 33593614
http://forums.asp.net/t/1019849.aspx

Please read this documents and hope u will get solution of your problem...

0
 

Author Comment

by:BOEING39
ID: 33623747
Found solution on own.  Needed to place file in sub directory.  Thx
0
 
LVL 13

Accepted Solution

by:
SameerJagdale earned 1000 total points
ID: 33740852
pls close the question.
0
 

Author Closing Comment

by:BOEING39
ID: 33890599
Found answer
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question