• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1630
  • Last Modified:

.NET 4.0 Security Permissions

I am running .NET 4.0 on a Windows 2003 server.  For some reason it continues to loose the ability to write to the "temporary asp.net files" folder.  AKA I get the following error message:


The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files'.

If I run aspnet_regiis.exe everything gets corrected and it will work for a while (less than 24 hours) before I am getting the same error message again.  Can you please help me figure out what I need to look at or do to ensure that this runs consistently.
0
kmcbrearty
Asked:
kmcbrearty
  • 3
  • 2
2 Solutions
 
dqmqCommented:
Give NT AUTHORITY\NETWORK SERVICE full control to  a parent folder like "C:\WINDOWS\Microsoft.NET\"  and sure to apply the permissions are applied to child folders.
0
 
kmcbreartyAuthor Commented:
Obviously that would fix the problem but isn't that what is happening when I run aspnet_regiis?  I can verify the permissions but the fact that the error went away after running aspnet_regiis made me believe that the permissions were corrected.  I think for some reason the permissions are not staying.
0
 
dqmqCommented:
My "theory" is that aspnet_regiis fixes the perimissions, but later, the temp directory is recreated and inherits the wrong permissions at that time.  Thus my suggestion to change the parent permissions such that a different set of permissions are inherited.
0
 
kmcbreartyAuthor Commented:
Looks like there is probably a group policy that is the problem.  I am not sure that the customer has actually fixed it but that is what the problem is.
0
 
kmcbreartyAuthor Commented:
Best description of the problem.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now