Sladescross's Blog

Blogging about Sharepoint related stuff

Temporary ASP.NET Permissions Problem – 7043 June 27, 2010

Filed under: 7043,Powershell,Temporary ASP.NET Files — sladescross @ 9:19 am

**Late breaking news:

Set the ‘Everyone’ group with ‘Read’ permissions to the below folder:


Problem history as follows:

Intermittently certain ascx files used by Sharepoint need to be recreated in Temporary ASP.NET folders.

But the creation of these files by the worker process account fails with Access Denied.


and associated to these errors is the failure to load featureactivator.ascx and featuredependees.ascx.

After much investigation it appears as if the issue revolves around file level permissions within the web application folder in Temporary ASP.NET as all the folder level permissions for the worker process account are correct.

And the fix to date is to Replace all existing inheritable permissions on all descendants with inheritable permissions from this object. Where this object is the worker process account at the Temporary ASP.NET folder.

This can be achieved by a Powershell script as follows.


$StartingDir=”C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\b519bb46″
$Principals=”LEGAL\svc_spdoclib”, “SSHPP03\ASPNET”

foreach($principal in $principals)
$rule=new-object System.Security.AccessControl.FileSystemAccessRule($principal,$Right,”Allow”)
foreach ($file in $(Get-ChildItem $StartingDir -recurse))
$acl=get-acl $file.FullName
set-acl $File.Fullname $acl
Write-Host “Set $Right on $File”

Though the cause remains unknown. Group policy was a candidate cause but gpupdate /force does not cause the problem.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 63 other followers