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

T

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
 
K

Ken Schaefer

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

: 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
:
:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top