Link to home
Start Free TrialLog in
Avatar of kmcbrearty
kmcbreartyFlag for United States of America

asked on

.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.
Avatar of dqmq
dqmq
Flag of United States of America image

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.
Avatar of kmcbrearty

ASKER

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.
SOLUTION
Avatar of dqmq
dqmq
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Best description of the problem.