Solved

.NET 4.0 Security Permissions

Posted on 2010-09-03
5
1,571 Views
Last Modified: 2013-11-08
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
Comment
Question by:kmcbrearty
  • 3
  • 2
5 Comments
 
LVL 42

Expert Comment

by:dqmq
Comment Utility
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
 
LVL 3

Author Comment

by:kmcbrearty
Comment Utility
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
 
LVL 42

Assisted Solution

by:dqmq
dqmq earned 500 total points
Comment Utility
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
 
LVL 3

Accepted Solution

by:
kmcbrearty earned 0 total points
Comment Utility
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
 
LVL 3

Author Closing Comment

by:kmcbrearty
Comment Utility
Best description of the problem.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now