Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

.NET 4.0 Security Permissions

Posted on 2010-09-03
5
Medium Priority
?
1,624 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
ID: 33596986
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
ID: 33597848
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 2000 total points
ID: 33771075
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
ID: 33878198
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
ID: 37555486
Best description of the problem.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

782 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