Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > Critical error: "System.IO.IOException: The file exists" with RadUpload
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Answered Critical error: "System.IO.IOException: The file exists" with RadUpload

Feed from this thread
  • Posted on Dec 19, 2007 (permalink)

    RadUpload stores temporary files in the System Temp Folder(by default) and deletes them afterwards. However in version 2.4.2 only appears a problem that the control does not delete the temporary files and therefore the amount of the these files increases to infinity and when they reach the folder's limit, RadUpload stops working with the following error: "The file exists".

    You can solve the problem by:

    1. downloading the attached trial hotfix of RadUpload 2.4.2 and update your project. If you have a Single Developer License and want to obtain the registered version, just open a support ticket and we will send you the build.
    2. Set your own temporary folder by adding the following tag into the <appSettings> element of your application web.config file:

      <add key="Telerik.RadUpload.TempFolder" value="c:\temp" />

      The value is the physical path to the folder where the temporary files will be saved. You should ensure that the ASPNET user (NetworkService in Windows Server 2003) has Full Control rights on this location. You can find more information on how to do this in the Setting ASPNET (NetworkService) Permissions help topic.
    The issue will not exist in the upcoming hotfix of the control. Please, excuse us for the temporary inconvenience.

    Best regards,
    Rumen
    The Telerik team

  • Douglas Tarr avatar

    Posted on Jan 24, 2008 (permalink)

    I am running version 2.43 of the upload control and I am seeing this problem. The workaround of setting a temp folder in web.config works, and even when it is set to c:\windows\temp. But this is not helpful because the value must be a full path.

    Either of the following will work for me:
    1. The bug gets fixed
    2. The web.config value can be an environment variable such as %TEMP%. I tried this and got this exception below. 

    Any estimate for when either of these will ship?


    Cannot access %TEMP%. Please, make sure your application has Full Control rights on %TEMP%
    [IOException: Cannot access %TEMP%. Please, make sure your application has Full Control rights on %TEMP%]
       Telerik.WebControls.RadUploadUtils.IO.PathHelper.CreateTempFileName(String tempFolder) +144
       Telerik.WebControls.RadUploadUtils.IO.PathHelper.CreateTempFileName() +119
       Telerik.WebControls.RadUploadUtils.RequestEntity.CreateFileBodyWriter() +12
       Telerik.WebControls.RadUploadUtils.RequestEntity..ctor(String rawHeaders, Encoding encoding, TextBodyWriter textWriter) +457
       Telerik.WebControls.RadUploadUtils.RequestParser.WriteProcessedPart(Int32 start, Int32 end) +206
       Telerik.WebControls.RadUploadUtils.RequestParser.ProcessRequest(RequestStream request) +91
       Telerik.WebControls.RadUploadHttpModule.Context_BeginRequest(Object sender, EventArgs e) +560
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64



  • Sophy Sophy admin's avatar

    Posted on Jan 28, 2008 (permalink)

    Hi,

    Thank you for contacting us.

    The problem which appeared in RadUpload v2.4.2 has been fixed in RadUpload v2.4.3. The temporary files which RadUpload temporarily stores in the System Temp Folder(by default) are deleted afterwards. 
     
    Currently RadUpload does not support using environment variables such as %TEMP% in the Web.config.

    In case you use RadUpload v2.4.3 and the temporary files are not deleted from the System Temp Folder after the uploading process finishes, please, delete all temporary  files in the System Temp Folder and then send us screenshots which show the content of the System Temp Folder  before and after the uploading process.
    Could you please also send us more details about the error you experience when you use the default System Temp Folder and in what circumstances it appears?  We will be glad to help you.

    All the best,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Gopi Krishna avatar

    Posted on Feb 17, 2010 (permalink)

    "Cannot access the system temp folder. Please make sure your application have full control...... configuring the RadUploadHttpModule" ..
    Is this issue exists in RadUpload 2.3.X ?
    If yes what is the idle solution? your assistance would be appreciated.
    thanks in advance.

    -Gopi

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > Critical error: "System.IO.IOException: The file exists" with RadUpload