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

Discussion in 'ASP .Net' started by Tom, Dec 11, 2003.

  1. Tom

    Tom Guest

    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
     
    Tom, Dec 11, 2003
    #1
    1. Advertising

  2. Tom

    Ken Schaefer Guest

    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" <> wrote in message
    news:06b501c3bf92$b5ebb640$...
    : 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
    :
    :
     
    Ken Schaefer, Dec 11, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Harris
    Replies:
    2
    Views:
    25,937
    Juan T. Llibre
    May 8, 2005
  2. Nathan Sokalski
    Replies:
    5
    Views:
    3,610
    Sergey Polyakov
    Jun 6, 2005
  3. moondaddy
    Replies:
    2
    Views:
    4,044
    =?Utf-8?B?VEJERVY=?=
    Jan 12, 2006
  4. webonomic
    Replies:
    1
    Views:
    5,651
    webonomic
    Jan 20, 2006
  5. Nathan Sokalski

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

    Nathan Sokalski, May 30, 2005, in forum: ASP .Net Building Controls
    Replies:
    5
    Views:
    264
    Sergey Polyakov
    Jun 6, 2005
Loading...

Share This Page