kmcbrearty
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:
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.
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.
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.
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Best description of the problem.