File not found exception

  •  06-14-2006, 5:00 PM

    File not found exception

    Hi ,
    I am getting the File not found exception whenever I click the save button. There is no problem in the functionality though.
    I handle the save button event as follows.
    protected void edtContent_PostBackCommand(object sender, CommandEventArgs e)
        {
          
            if (string.Compare(e.CommandName, "Save", true) == 0)
            {
                try
                {
                    this.edtContent.SaveFile(loadfilepath);
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }

    There is no exception here but the exception is thrown at the application level.  and the details of the exception are :
    Exception: System.Web.HttpException: File does not exist. at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context) at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)~ PARAMS: UserID=contentadmin; ReturnURL=/BPHOWeb2/Secure/sAdmin/ContentAdmin/null UserType=Unknown;Misc= MESSAGE=File does not exist., TARGETSITE=Void ProcessRequestInternal(System.Web.HttpContext), STACKTRACE= at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context) at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously), SOURCE=System.Web, QUERYSTRING= Support Notified=True

    Does anybody have  a solution for this issue.

View Complete Thread