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:![](/Providers/HtmlEditorProviders/Fck/FCKeditor/editor/images/smiley/msn/sad_smile.gif)
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!