Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  SOS-Error:Access to the temp directory is denied
Previous Previous
 
Next Next
New Post 6/23/2008 3:57 AM
Unresolved
User is offline coming
12 posts
10th Ranked


SOS-Error:Access to the temp directory is denied 

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 6:45 AM
User is offline Ian Robinson
639 posts
www.engagesoftware.com
7th Ranked


Re: SOS-Error:Access to the temp directory is denied 

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


Ian Robinson
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
New Post 6/23/2008 10:42 AM
User is offline Brandon Haynes
694 posts
everysport.net
7th Ranked


Re: SOS-Error:Access to the temp directory is denied 

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 7:08 PM
User is offline coming
12 posts
10th Ranked


Re: SOS-Error:Access to the temp directory is denied 

u r right! thank u very much!!!

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  SOS-Error:Access to the temp directory is denied
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk
TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com
The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP