473,396 Members | 2,004 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,396 software developers and data experts.

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

Tom
Hi,

I have a stored procedure and a method to insert data to
it.

i = (int)SqlHelper.ExecuteScalar
(Web.CommonBase.ConnectionString,
CommandType.StoredProcedure, "AddProducts", arParms);

I used breakpoint to check the value of i (int). It is '0'
and data cannot be inserted to DB.

And the aspx page shows the following error:
Exception Details: System.Web.HttpException: Cannot use a
leading .. to exit above the top directory.

What does this error mean and how to fix it?

Thanks
Nov 18 '05 #1
1 2839
My guess is that somewhere you are doing something like ../resource.ext
The leading .. is taking you out of the top folder for your application.

Cheers
Ken

"Tom" <ke*****@yahoo.com> wrote in message
news:06****************************@phx.gbl...
: Hi,
:
: I have a stored procedure and a method to insert data to
: it.
:
: i = (int)SqlHelper.ExecuteScalar
: (Web.CommonBase.ConnectionString,
: CommandType.StoredProcedure, "AddProducts", arParms);
:
: I used breakpoint to check the value of i (int). It is '0'
: and data cannot be inserted to DB.
:
: And the aspx page shows the following error:
: Exception Details: System.Web.HttpException: Cannot use a
: leading .. to exit above the top directory.
:
: What does this error mean and how to fix it?
:
: Thanks
:
:
Nov 18 '05 #2

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

Similar topics

9
by: Paul | last post by:
Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
3
by: COHENMARVIN | last post by:
I put the following code in my asp.net page: dbPath = MapPath("/FBDB/db1_newport2003.mdb") strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" strConnect = strConnect & "Data Source=" & dbpath & ";"...
2
by: Simon Harris | last post by:
Hi All, I'm trying to access a folder stored below the root of my site called 'private', which is where my host recommend storing application data. When I do a server.mappath on ../../private,...
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...
2
by: moondaddy | last post by:
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...
1
by: webonomic | last post by:
A number of topics ask how to solve the "Cannot use a leading .. to exit above the top directory" error. I am having the same problem with an asp.net 2.0 website. The site works fine on...
19
by: ern | last post by:
Right now I'm using exit(0) to terminate my program. My program is a console .exe application. After the "exit(0)" line of code is encountered, the console application waits for an enter press,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.