Solved

.NET 4.0 Security Permissions

Posted on 2010-09-03
5
1,595 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Drive mapping problem 7 56
Import a excel sheet in a grid 2 45
Visual Studio Start / Browser Emulator menu different 2 40
How do I "share" on social sites? 2 38
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 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