This is a migrated thread and some comments may be shown as answers.

Cannot access the system temp folder

1 Answer 214 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mark Davison
Top achievements
Rank 1
Mark Davison asked on 28 Dec 2007, 09:28 AM
Hi,

I have just downloaded and installed the latest "Prometheus" build and I am trying to get the upload to work.

The local sample seems to work fine. A test page in my application does not!

I am using impersonation and have made sure the WEB user has permissions over the system temp folder (Windows\Temp) but get the following when I try to upload:

Cannot access the system temp folder. Please, make sure your application have Full Control rights on that folder or check
RadUpload 2.x help --> Using RadUpload --> Configuration --> Configuring the RadUploadHttpModule.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: Cannot access the system temp folder. Please, make sure your application have Full Control rights on that folder or check
RadUpload 2.x help --> Using RadUpload --> Configuration --> Configuring the RadUploadHttpModule.

Please Help!!

Regards,

Mark

1 Answer, 1 is accepted

Sort by
0
Accepted
Mark Davison
Top achievements
Rank 1
answered on 28 Dec 2007, 10:03 AM
Hi,

I have managed to solve this! If anyone elses gets the problem, here are the details:

As mentioned, I run the site using impersonation (as a user called WEB). When the error message mentioned the system temp folder, I assumed it was the Windows\Temp folder. After spending ages trying to get this to work, I finally used Process Monitor (www.sysinternals.com) to track the problem down.

It turns out that it is not trying to use the Windows\Temp folder. Instead, in this case it was trying to access the I:\\NetworkService\AppData\Local\Temp folder. I cannot find a way to get to this folder (under Vista).

I finally resolved this by creating a folder on my c drive (c:\temp) and granting the WEB impersonated user full control over this new folder.

Hope this might help someone else. It has taken me ages to track down!

Regards,

Mark
Tags
Upload (Obsolete)
Asked by
Mark Davison
Top achievements
Rank 1
Answers by
Mark Davison
Top achievements
Rank 1
Share this question
or