473,581 Members | 2,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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*******@nospa m.nospam
Dec 15 '05 #1
2 3722
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*******@nosp am.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: cpe-24-175-64-176.houston.res .rr.com 24.175.64.176
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3651 88
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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*******@nospa m.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*******@nosp am.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: cpe-24-175-64-176.houston.res .rr.com 24.175.64.176
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3651 88
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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*******@nospa m.nospam
|
|
|

Jan 12 '06 #3

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

Similar topics

1
392
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 : Cannot use a leading .. to exit above the top directory it is generated from a page that is exist in a sub-folder named broadcasting, and the...
5
5129
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 recent posting "HyperLink.NavigateUrl always adds an extra ../ when going to a higher level directory" on Sunday, May 29, 2005 7:33 PM However, I...
5
1381
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 GetCommentLink() As String If Not CBool(cfg.GetConfig("cfgLockComments")) And Not
8
1952
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 : Default.aspx , Users.xml , Login.aspx I have the following code :
3
2796
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 'yes' to accept the terms of the license. Type 'no' to decline the terms of the license.
21
6861
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
7784
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. I'm using ASP .net 2.0, IIS 6.0. Thanks in advance.
2
6346
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 : $ ../glibc-2.5/configure --prefix=/mnt/new/Mars/glibc_HQ_test/GLIBC/ install/ --with-__thread --enable-kernel=2.6.11 --enable-shared
10
6951
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 of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114....
0
7804
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8180
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6563
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2307
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1409
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1144
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.