Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SOS-Error:Access to the temp directory is deniedSOS-Error:Access to the temp directory is denied
Previous
 
Next
New Post
6/23/2008 5:57 AM
 

As there is little space left in partition C:, I run the following .bat script to clean the disk. After this, DNN sites didn't work any more.It shows the error as below:

Unhandled Error

Error Details

File  
Error   Access to the temp directory is denied. Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory. CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile. Use Path.GetTempPath() API to find out the temp directory location.

 

I searched the web and followed the search results tips to solve the problem, but the sites still didn't work.

Clean.bat file content:

@echo off

echo cleaning IE temporary folder...
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

echo cleaning system temporary files *.tmp *._tmp *.log *.chk *.old , waiting please...
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old

echo cleaning trash, backup files and pre-cached scripts...
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp

echo pruging system useless cache files...
%windir%\system32\sfc.exe /purgecache

echo optimizing pre-read information...
%windir%\system32\defrag.exe %systemdrive% -b

echo Finished!

echo. & pause

 

Any help would be appreciated very much!

 
New Post
6/23/2008 8:45 AM
 

Hi,

That's actually a pretty explicit and helpful error message (surprisingly)! Have  you taken its suggestion and found out which temp directory it is? You will need to give file system permissions to the Network Service account to get this working - "right click folder -> properties -> security -> add -> "Network Service" - give it at least modify permissions.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
6/23/2008 12:42 PM
 

Your problem occurs with this line: rd /s /q %windir%\temp & md %windir%\temp

When you recreate the \windows\temp directory, it will not by default have modify (full?) permissions set for your NETWORK SERVICE account.  The NS account needs access to this directory in order to generate temporary serialization classes.  You'll have to re-add this permission manually as Ian outlined.

You really don't need to remove this directory, and should probably modify your batch file to just delete the files therein.

Hope this helps!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
6/23/2008 9:08 PM
 

u r right! thank u very much!!!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SOS-Error:Access to the temp directory is deniedSOS-Error:Access to the temp directory is denied


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out