Solved

.NET 4.0 Security Permissions

Posted on 2010-09-03
5
1,583 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 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 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