Forum
 
 
Knowledge Base Forum
To post messages on the forum, you need to login first.
SearchForum Home
  Product Forums  smartDBforms.NET  Error Message: ...
 Error Message: "System.Web.HttpException: Cannot use a leading .. to exit above the top directory"
 
 9/9/2010 5:12:16 PM
Brandon
5 posts


Error Message: "System.Web.HttpException: Cannot use a leading .. to exit above the top directory"
Hi, Pleas Help! When I configure the smartdatasource (SDC) I receive the following error message: "System.Web.HttpException: Cannot use a leading .. to exit above the top directory" I use VS2010 and SQL2008R2. When I remove the SDC the error disappear.
 9/9/2010 5:59:15 PM
Adillis Support
51 posts
adillis.com


Re: Error Message: "System.Web.HttpException: Cannot use a leading .. to exit above the top directory"
Hi Brandon,

Most likely the error is not caused directly by SmartDataSource, but when SmartDataSource is configured and it returns data the linked SmartDBView is rendered and something inside SmartDBView is causing the error.

  • Can you zip and attach your project and send it to support@adillis.com?
  • Also specify in which aspx page is the error?
  • Can you also provide the full error with the Stack Trace section?
  • How are you running the site, is it with "View in Browser" from Visual Studio with the ASP.NET Development Server or you are using IIS configured site?


If you have any other questions, we will be more than happy to help you.
Best wishes,
Adillis Support
Adillis - IT solutions http://adillis.com
 9/10/2010 2:15:21 AM
Brandon
5 posts


Re: Error Message: "System.Web.HttpException: Cannot use a leading .. to exit above the top directory"

Hi, thanks for the quick reply. My appologies, I should have said that it is the SmartDBView (SdbV) that is giving me problems and not the SmartDataSource. When I place the SdbV on my page it works fine when I run the page. When I configure the SdbV and then run the page it then throws the exception described.

  • I'm not sure if I can send you my full project as it is in access of 50mb
  • I am developing a website and is currently running it as a file system on my laptop. I test it with "View in browser" from VS2010 with ASP.Net dev server.
  • Below is the stack trace report

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) +8774912

System.Web.Util.UrlPath.Reduce(String path) +52

System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +217

System.Web.UI.Control.ResolveClientUrl(String relativeUrl) +258

System.Web.UI.HtmlControls.HtmlLink.RenderAttributes(HtmlTextWriter writer) +74

System.Web.UI.HtmlControls.HtmlLink.Render(HtmlTextWriter writer) +42

System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8859686

System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208

System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer) +21

System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31

System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8859686

System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208

System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8

System.Web.UI.Control.Render(HtmlTextWriter writer) +10

System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8859686

System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208

System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8

System.Web.UI.Page.Render(HtmlTextWriter writer) +29

System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8859686

System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060

 

Best Regards

 9/10/2010 2:49:16 AM
Brandon
5 posts


Re: Error Message: "System.Web.HttpException: Cannot use a leading .. to exit above the top directory"

Hi, thanks for the quick reply. My appologies I should have said that it is the SmartDBView that is giving me the problems and not  the SmartDataSource. When I add the SmartDBView to my page it does not generate errors when I test the page before configuring the SmartDBView. Once I configure it and then run the page it then generate the error.

  • My project is over 50mb in size and therefore I'm not sure if I can email it to you.
  • I am currently developing a website on my local machine and  view the test pages in my browser from VS2010 with the ASP.Net development server.
  • below is the stack trace report

Server Error in '/VFH' Application.

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) +8774912

System.Web.Util.UrlPath.Reduce(String path) +52

System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +217

System.Web.UI.Control.ResolveClientUrl(String relativeUrl) +258

   System.Web.UI.HtmlControls.HtmlLink.RenderAttributes(HtmlTextWriter writer) +74

System.Web.UI.HtmlControls.HtmlLink.Render(HtmlTextWriter writer) +42

System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8859686

System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208

   System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer) +21

   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31

System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8859686

System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208

System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8

System.Web.UI.Control.Render(HtmlTextWriter writer) +10

System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8859686

System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208

System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8

System.Web.UI.Page.Render(HtmlTextWriter writer) +29

System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8859686

System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060

 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Best Regards

 9/10/2010 8:43:32 AM
Adillis Support
51 posts
adillis.com


Re: Error Message: "System.Web.HttpException: Cannot use a leading .. to exit above the top directory"
Hi Brandon,

We have analyzed the problem. It seems it is caused by the SmartCssLink control which is located in the smartDBtemplates/TemplatesStorage.ascx file.

Please download the new fixed version of SmartDBForms.dll from here:
http://adillis.com/Portals/0/ForumUploads/Adillis.SmartDBForms_SmartCSSLinkFix.zip

Then stop Visual Studio and replace the file in the Bin folder. Then try if the problem will come again.

Can you also specify:
  • What is the location of the smartDBtemplates folder in your ASP.NET project? Is it located at the root?
  • What is the location of the problematic .aspx page? Is it in nested subfolders?

If you have any other questions, we will be more than happy to help you.
Best wishes,
Adillis Support
Adillis - IT solutions http://adillis.com

  Product Forums  smartDBforms.NET  Error Message: ...
Copyright 2006-2012 Adillis Terms Of Use Feedback Contact Us