473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Error: Cannot use a leading .. to exit above the top directory.

I have a simple sample site I'm building in asp.net 2.0. I created a master
page and a default.aspx content page in the project's root directory. Then
I created a subfolder called content and added some aspx pages in the
'content' folder. when these pages were created I referenced the master
page so everything should be linked up OK. Now, back on default.aspx I
added a linkbutton and referenced one of the aspx pages in the 'content'
folder. When I run the project and click on that link button, I get the
error:

Cannot use a leading .. to exit above the top directory.

It seems odd that something as straight forward as this wont work. This
site will ultimately run on a shared server so I can't tweak IIS. I'm sure
there's million or so web sites under the same circumstance where they too
can't tweak IIS, but need to have content organized in various folders.
What's a good work-around for this?

btw: I saw some other similar postings and the response they got was to map
the url at runtime via code. This seems like a step backwards since MS is
boasting code reduction and RAD tools. Certainly, there must be a better
way...

--
mo*******@nospam.nospam
Dec 15 '05 #1
2 3704
Hi Moondaddy,

Welcome to aspnet newsgroup.
From your description, you're encountering some problems developing an
ASP.NET 2.0 web application which contains some asp.nets in root app dir
and some other pages in sub directories. However, you're getting some
problems when add some linking between those pages, yes?

As for the following thing you mentioned:
===============
Now, back on default.aspx I
added a linkbutton and referenced one of the aspx pages in the 'content'
folder. When I run the project and click on that link button, I get the
================

would you provide some page's code snippet and aspx template (together with
the application directory structure) so that we can perform some local test?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "moondaddy" <mo*******@nospam.nospam>
| Subject: Error: Cannot use a leading .. to exit above the top directory.
| Date: Thu, 15 Dec 2005 14:40:30 -0600
| Lines: 26
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| Message-ID: <e2**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: cpe-24-175-64-176.houston.res.rr.com 24.175.64.176
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:365188
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have a simple sample site I'm building in asp.net 2.0. I created a
master
| page and a default.aspx content page in the project's root directory.
Then
| I created a subfolder called content and added some aspx pages in the
| 'content' folder. when these pages were created I referenced the master
| page so everything should be linked up OK. Now, back on default.aspx I
| added a linkbutton and referenced one of the aspx pages in the 'content'
| folder. When I run the project and click on that link button, I get the
| error:
|
| Cannot use a leading .. to exit above the top directory.
|
| It seems odd that something as straight forward as this wont work. This
| site will ultimately run on a shared server so I can't tweak IIS. I'm
sure
| there's million or so web sites under the same circumstance where they
too
| can't tweak IIS, but need to have content organized in various folders.
| What's a good work-around for this?
|
| btw: I saw some other similar postings and the response they got was to
map
| the url at runtime via code. This seems like a step backwards since MS
is
| boasting code reduction and RAD tools. Certainly, there must be a better
| way...
|
| --
| mo*******@nospam.nospam
|
|
|

Dec 16 '05 #2

Hi Steve,

I got the same error code using the Starter Kit that comes with VWD Express
Edition. I modified the starter kit by adding a couple of links to pages in
various sub-folders.

Everything works in the development environment. But once I publish the site
to an intranet I could not navigate to any page that resides in a sub-folder.

I tried everything suggested by people with related problem but nothing
seems to work. I even diable the Enable Parent Paths on the IIS.

It also appears that this problem has been around for a while.

Any suggestions to solve this problem will be highly appreciated.

Thank You

-Tunji
"Steven Cheng[MSFT]" wrote:
Hi Moondaddy,

Welcome to aspnet newsgroup.
From your description, you're encountering some problems developing an
ASP.NET 2.0 web application which contains some asp.nets in root app dir
and some other pages in sub directories. However, you're getting some
problems when add some linking between those pages, yes?

As for the following thing you mentioned:
===============
Now, back on default.aspx I
added a linkbutton and referenced one of the aspx pages in the 'content'
folder. When I run the project and click on that link button, I get the
================

would you provide some page's code snippet and aspx template (together with
the application directory structure) so that we can perform some local test?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "moondaddy" <mo*******@nospam.nospam>
| Subject: Error: Cannot use a leading .. to exit above the top directory.
| Date: Thu, 15 Dec 2005 14:40:30 -0600
| Lines: 26
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| Message-ID: <e2**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: cpe-24-175-64-176.houston.res.rr.com 24.175.64.176
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:365188
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have a simple sample site I'm building in asp.net 2.0. I created a
master
| page and a default.aspx content page in the project's root directory.
Then
| I created a subfolder called content and added some aspx pages in the
| 'content' folder. when these pages were created I referenced the master
| page so everything should be linked up OK. Now, back on default.aspx I
| added a linkbutton and referenced one of the aspx pages in the 'content'
| folder. When I run the project and click on that link button, I get the
| error:
|
| Cannot use a leading .. to exit above the top directory.
|
| It seems odd that something as straight forward as this wont work. This
| site will ultimately run on a shared server so I can't tweak IIS. I'm
sure
| there's million or so web sites under the same circumstance where they
too
| can't tweak IIS, but need to have content organized in various folders.
| What's a good work-around for this?
|
| btw: I saw some other similar postings and the response they got was to
map
| the url at runtime via code. This seems like a step backwards since MS
is
| boasting code reduction and RAD tools. Certainly, there must be a better
| way...
|
| --
| mo*******@nospam.nospam
|
|
|

Jan 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: itgMan | last post by:
hi all, i have recieved this error from a page that was running so fine for about 1 year, and this is the first time this occurs , can anybody help me to know the reason .. the error is :...
5
by: Nathan Sokalski | last post by:
When running a page I am working on, I recieve the following error: Cannot use a leading .. to exit above the top directory. I suspect this has something to do with the problem I posted in a...
5
by: Will Chamberlain | last post by:
I am getting the following error: Exception Details: System.Web.HttpException: Cannot use a leading .. to exit above the top directory The function that throws the error is: Public Function...
8
by: mohit | last post by:
Hi, I am creating a web application in Web Matrix on the .NET framework. I have two directories :AddUser and FormAuth in a Directory P. AddUser contains a file AddUser.aspx FormAuth contains :...
3
by: baur79 | last post by:
# python configure.py -q /usr/lib/qt-3.3/ This is the GPL version of PyQt 3.16 (licensed under the GNU General Public License) for Python 2.4.2 on linux2. Type 'L' to view the license. Type...
21
by: one2001boy | last post by:
PostMessage() function returns ERROR_NOT_ENOUGH_QUOTA after running in a loop for 700 times, but the disk space and memory are still big enough. any suggestion to resolve this problem? thanks.
2
by: aks | last post by:
Hi, I'm getting this issue "Cannot use a leading .. to exit above the top directory" when i access in my server, it is working fine in my local. We are using RewriterRule in web.config file. ...
2
by: akhilesh.noida | last post by:
I am trying to compile glibc-2.5 for ARM based board. But I am getting errors while configuring it. Please check and give your inputs for resolving this. configure command : $...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.