Seems that the TempDirectory property is not working correctly anymore

Last post 03-25-2009, 2:05 AM by el.c.. 5 replies.
Sort Posts: Previous Next
  •  03-24-2009, 1:11 PM 50225

    Seems that the TempDirectory property is not working correctly anymore

    Hi
     
    It seems that the TempDirectory property is not working correctly anymore with the latest release (03/17). (eveything was okay with the previous version)
     
    On the dev server, Persisted files are now stored on C:\Documents and Settings\ServerName\ASPNET.ServerName\Local Settings\Temp\AjaxUploaderTemp , no matter of the TempDirectory value.
     
    Of course that fails on the prod. server, as the AjaxUploader tries to write the persisted files on c:\windows\temp\AjaxUploaderTemp
     
    Error Message: Unable to find the uploaded file in directory: c:\Windows\TEMP\AjaxUploaderTemp
     
     PS: what is quite strange: error does not happen everytime but the persisted are NEVER saved in the TempDirectory folder! (I had the error with almost all browsers (IE, Firefox, Chrome))
     
    Any clue??
    Thanks in advance
  •  03-24-2009, 1:23 PM 50228 in reply to 50225

    Re: Seems that the TempDirectory property is not working correctly anymore

    Please set  AutoUseSystemTempFolder property to false then try again.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-24-2009, 2:09 PM 50231 in reply to 50228

    Re: Seems that the TempDirectory property is not working correctly anymore

    Thanks for this prompt reply.
     
    Persisted files are still saved in systemTempFolder (the TempDirectory property is not recognized??)
    but the error message is now more logical:

    Unable to find the uploaded file in directory: TempDirectory value
     
    public pageclass() {
       this.Init += new EventHandler(this.CPage_Init);
    }
     
    protected void CPage_Init(object sender, EventArgs e) {
       tDocUpload.AutoUseSystemTempFolder = false;
       tDocUpload.TempDirectory = CfgVar.DOC_STORAGE_TEMPDIR;
    }

    Any idea?
  •  03-24-2009, 3:13 PM 50235 in reply to 50231

    Re: Seems that the TempDirectory property is not working correctly anymore

    I made a test using the following code and it works fine.
     
    1. <script runat="server">      
    2.   
    3.         protected override void OnInit(EventArgs e)   
    4.         {   
    5.             base.OnInit(e);   
    6.   
    7.             PersistedFile1.FileChanged += new PersistedFileEventHandler(PersistedFile_FileUploaded);   
    8.         }   
    9.   
    10.         void PersistedFile_FileUploaded(object sender, PersistedFileEventArgs args)   
    11.         {   
    12.             InsertMsg("File is changed! " + args.FileName + ", " + args.FileSize + " bytes.");               
    13.             //Copys the uploaded file to a new location.   
    14.             args.CopyTo("c:\\temp\\" + args.FileName);   
    15.             //Opens the uploaded file's data stream.   
    16.             //System.IO.Stream data = args.OpenStream();   
    17.         }   
    18. </script>   
    19.   
    20. <CuteWebUI:UploadPersistedFile AutoUseSystemTempFolder="false" runat="server" ID="PersistedFile1" InsertText="Upload File">   
    21.  <VALIDATEOPTION MaxSizeKB="10240" />   
    22. </CuteWebUI:UploadPersistedFile>  
    Please try it and if you still have problems download the control again.
    Keep me posted


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-24-2009, 10:26 PM 50245 in reply to 50231

    Re: Seems that the TempDirectory property is not working correctly anymore

    Hi,
     
    That's a bug.  We have fixed it today.
     
    Please download it and test again.
     
    Regards,
    Terry
  •  03-25-2009, 2:05 AM 50252 in reply to 50245

    Re: Seems that the TempDirectory property is not working correctly anymore

    Thanks. This release fixed it.
     
    Would be so cool if the new releases do not break what was correctly working with the previous one - It looks like I really have to make a FULL check before upgrading...
     
View as RSS news feed in XML