473,794 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I fix this error: "The current identity (NT AUTHORITY\NETWO RK SERVICE) does not have write access to "

Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange. I
started getting the message below last week. I googled the error and not
much was returned, but I did find this;
http://forums.asp.net/918725/ShowPost.aspx

I tried both items in the forum and it works for a few hits then it happens
again!

Anyone have the same problem? How do I fix this?

--
Thanks,
TheBurgerMan
at
gmail.com
--

Server Error in '/' Application.
--------------------------------------------------------------------------------

The current identity (NT AUTHORITY\NETWO RK SERVICE) does not have write
access to 'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.Http Exception: The current identity (NT
AUTHORITY\NETWO RK SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWO RK
SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.]
System.Web.Http Runtime.SetUpCo degenDirectory( CompilationSect ion
compilationSect ion) +3473131
System.Web.Http Runtime.Hosting Init(HostingEnv ironmentFlags hostingFlags)
+226

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWO RK
SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +3425571
System.Web.Http Runtime.EnsureF irstRequestInit (HttpContext context) +88
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +149

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.26; ASP.NET
Version:2.0.507 27.26
Nov 19 '05 #1
11 45295
TheBurgerMan wrote:
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange.
I started getting the message below last week. I googled the error
and not much was returned, but I did find this;
http://forums.asp.net/918725/ShowPost.aspx


I would check for a GPO that might be modifying these permissions.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com


Nov 19 '05 #2
Simply open Windows Explorer and give Network Service access rights
read/write to the Temporary ASP.NET directory. This is fairly simple on
Win2k3. On XP, you have to enable simple sharing to get the security tab to
show.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************
"TheBurgerM an" wrote:
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange. I
started getting the message below last week. I googled the error and not
much was returned, but I did find this;
http://forums.asp.net/918725/ShowPost.aspx

I tried both items in the forum and it works for a few hits then it happens
again!

Anyone have the same problem? How do I fix this?

--
Thanks,
TheBurgerMan
at
gmail.com
--

Server Error in '/' Application.
--------------------------------------------------------------------------------

The current identity (NT AUTHORITY\NETWO RK SERVICE) does not have write
access to 'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.Http Exception: The current identity (NT
AUTHORITY\NETWO RK SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWO RK
SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.]
System.Web.Http Runtime.SetUpCo degenDirectory( CompilationSect ion
compilationSect ion) +3473131
System.Web.Http Runtime.Hosting Init(HostingEnv ironmentFlags hostingFlags)
+226

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWO RK
SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +3425571
System.Web.Http Runtime.EnsureF irstRequestInit (HttpContext context) +88
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +149

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.26; ASP.NET
Version:2.0.507 27.26

Nov 19 '05 #3
TheBurgerMan,

I think you should try giving the NT AUTHORITY/NETWORK SERVICE account
modify permissions on the
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET Files folder
manually.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"TheBurgerM an" <Th**********@g mail.com> wrote in message
news:uu******** *******@TK2MSFT NGP10.phx.gbl.. .
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange. I
started getting the message below last week. I googled the error and not
much was returned, but I did find this;
http://forums.asp.net/918725/ShowPost.aspx

I tried both items in the forum and it works for a few hits then it
happens again!

Anyone have the same problem? How do I fix this?

--
Thanks,
TheBurgerMan
at
gmail.com
--

Server Error in '/' Application.
--------------------------------------------------------------------------------

The current identity (NT AUTHORITY\NETWO RK SERVICE) does not have write
access to 'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.Http Exception: The current identity (NT
AUTHORITY\NETWO RK SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWO RK
SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.]
System.Web.Http Runtime.SetUpCo degenDirectory( CompilationSect ion
compilationSect ion) +3473131
System.Web.Http Runtime.Hosting Init(HostingEnv ironmentFlags hostingFlags)
+226

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWO RK
SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +3425571
System.Web.Http Runtime.EnsureF irstRequestInit (HttpContext context) +88
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +149

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.26;
ASP.NET Version:2.0.507 27.26

Nov 19 '05 #4
Thanks for all the responses. I have changed the ACL to add the NETWORK
SERVICE account to the Temp directory (just now), but I am leary of opening
security holes on my box. Is there an actual problem that will cause my
site to keep craping out?

--
Thanks,
TheBurgerMan
at
gmail.com
--
"TheBurgerM an" <Th**********@g mail.com> wrote in message
news:uu******** *******@TK2MSFT NGP10.phx.gbl.. .
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange. I
started getting the message below last week. I googled the error and not
much was returned, but I did find this;
http://forums.asp.net/918725/ShowPost.aspx

I tried both items in the forum and it works for a few hits then it
happens again!

Anyone have the same problem? How do I fix this?

--
Thanks,
TheBurgerMan
at
gmail.com
--

Server Error in '/' Application.
--------------------------------------------------------------------------------

The current identity (NT AUTHORITY\NETWO RK SERVICE) does not have write
access to 'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.Http Exception: The current identity (NT
AUTHORITY\NETWO RK SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWO RK
SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.]
System.Web.Http Runtime.SetUpCo degenDirectory( CompilationSect ion
compilationSect ion) +3473131
System.Web.Http Runtime.Hosting Init(HostingEnv ironmentFlags hostingFlags)
+226

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWO RK
SERVICE) does not have write access to
'C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files'.]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +3425571
System.Web.Http Runtime.EnsureF irstRequestInit (HttpContext context) +88
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +149

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.26;
ASP.NET Version:2.0.507 27.26

Nov 19 '05 #5
TheBurgerMan wrote:
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange.
I started getting the message below last week. I googled the error
and not much was returned, but I did find this;
http://forums.asp.net/918725/ShowPost.aspx

I tried both items in the forum and it works for a few hits then it
happens again!


FYI, when you run the commands in the post above, it changes the permissions
and gives NETWORK SERVICE appropriate permissions. That's why it works when
you do that. If something is then changing the permissions "magically" so
that it doesn't work anymore, a GPO (Group Policy Object) is the most likely
candidate.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com


Nov 19 '05 #6
TheBurgerMan wrote:
Thanks for all the responses. I have changed the ACL to add the
NETWORK SERVICE account to the Temp directory (just now), but I am
leary of opening security holes on my box. Is there an actual
problem that will cause my site to keep craping out?

--


NETWORK SERVICE needs write access there. That's the default permissions.

As to what might cause it to keep crapping out, see my previous post. If
you want to find out if that's it, go to a command line and run this:

gpupdate /force

After that takes effect, see if it's broken again. If it is, a GPO is
altering permissions and you need to talk to your domain admin about
modifying it.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com


Nov 19 '05 #7
Thanks Jim. When I ran the "aspnet_reg iis -ga "NT AUTHORITY\NETWO RK
SERVICE" earlier, I examined the ACL permissions right away and "NETWORK
SERVICE" had only read access, but the site came up!

Anyway, I will check the GPO and let you know (a poet and I didn't even know
it).

--
Thanks,
TheBurgerMan
at
gmail.com
--
"JIMCO Software" <co*******@jimc osoftware.com> wrote in message
news:eD******** ********@TK2MSF TNGP14.phx.gbl. ..
TheBurgerMan wrote:
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange.
I started getting the message below last week. I googled the error
and not much was returned, but I did find this;
http://forums.asp.net/918725/ShowPost.aspx

I tried both items in the forum and it works for a few hits then it
happens again!


FYI, when you run the commands in the post above, it changes the
permissions and gives NETWORK SERVICE appropriate permissions. That's why
it works when you do that. If something is then changing the permissions
"magically" so that it doesn't work anymore, a GPO (Group Policy Object)
is the most likely candidate.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

Nov 19 '05 #8
I ran the gpupdate and the site crapped out again, also "NETWORK SERVICE"
account has been removed from the ACL of the directory.

I am the admin of our small network and have never needed to play with the
GPO before. This problem just happened "out of the blue" and I would like
to resolve what caused it.

In the meantime, can you tell me what I should be looking for in the Default
Domain Controllers Policy?

--
Thanks,
TheBurgerMan
at
gmail.com
--
"JIMCO Software" <co*******@jimc osoftware.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
TheBurgerMan wrote:
Thanks for all the responses. I have changed the ACL to add the
NETWORK SERVICE account to the Temp directory (just now), but I am
leary of opening security holes on my box. Is there an actual
problem that will cause my site to keep craping out?

--


NETWORK SERVICE needs write access there. That's the default permissions.

As to what might cause it to keep crapping out, see my previous post. If
you want to find out if that's it, go to a command line and run this:

gpupdate /force

After that takes effect, see if it's broken again. If it is, a GPO is
altering permissions and you need to talk to your domain admin about
modifying it.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

Nov 19 '05 #9
TheBurgerMan wrote:
I ran the gpupdate and the site crapped out again, also "NETWORK
SERVICE" account has been removed from the ACL of the directory.

I am the admin of our small network and have never needed to play
with the GPO before. This problem just happened "out of the blue"
and I would like to resolve what caused it.

In the meantime, can you tell me what I should be looking for in the
Default Domain Controllers Policy?


So now you know that it's definitely a GPO. You'd have to look at each
policy that's applied to the box and make sure that it includes that change.
You can use gpresult to see what is applied.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com


Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7897
by: Gard T?nnesland | last post by:
Hi everyone, How can I retrieve the current identity used in a procedure from a trigger. What I am trying to do is: The procedure takes a @username (nvarchar) as a parameter, and the procedure identifies the @username's identity and tries to delete the identity's row. An Instead Of trigger fires, and updates the specific row.
2
15076
by: Brian Campbell | last post by:
Gretings... I have written a Windows Service that accesses a Web Service. Both run fine on my development machine.... After installing both the Windows Service and Web Service on my staging server, I get the following error...
6
2938
by: Rob | last post by:
Hi, I am working on a project that requires a Windows Service which performs the following file transfer functions. 1. It monitors a specific local directory on a Windows 2003 Server. 2. When it finds files with a specific extension, it queries a SQL Server database to determine what workstation will be the destination of a File.Copy. 3. It copies those files to the appropriate workstations on the LAN,
1
1978
by: Jesper | last post by:
Im running Windows Server 2003 trying to get my ASP.NET applications to access the file system. My Web application needs to have write access to some folders in the virtual directory from which it runs. The server is a domain controller, so I don't have the ASPNET user to assign rights to. I've tried several guides from several sites.. but none seem to work, I keep getting the: "..Access to the path "..." is denied.
2
14264
by: TheBurgerMan | last post by:
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange. I started getting the message below last week. I googled the error and not much was returned, but I did find this; http://forums.asp.net/918725/ShowPost.aspx I tried both items in the forum and it works for a few hits then it happens again! Anyone have the same problem? How do I fix this?
0
1251
by: berkeleydb_user | last post by:
Guys On my development machine I have a very simple app that takes input from user from asp, runs some macros in excel and spits out the result back on asp page. This works perfectly well on my host. I deployed this by making 'Web Setup' project in VS.net and installing it on remote server which is Windows Server 2003. After installing it I could go to that page etc etc. Here is the error. I gave full access to ASPNET user via explorer....
0
1397
by: Ed Sutton | last post by:
Is there a FileSecurity method that can determine if the current WindowsIdentity has write access to a file? I can get the current windows identity and use FileSecurity to return the AuthorizationRuleCollection and then search for the FileSystemAccessRule's that apply to my identity. The problem is my current identity may be "MYDOMAIN\JDOE", but I do not know how to determine if a group this identity belongs, for example "EVERYONE",...
1
8067
by: =?Utf-8?B?R2FuZXNoIE11dGh1dmVsdQ==?= | last post by:
Hello All, Our application write logs to a file in a folder. Before our application starts writing to that file, I want to check if the current user has write access to that file, for example, "c:\temp\LogFile.txt". I see several articles for setting file access permissions, getting file access permissions for a given user or current user - but the current user could also gain write access to the same file not just by explicit permssion...
1
4452
by: btreddy | last post by:
Hii all , When i was trying to access the webpages from the server(localhost only ) I got the message "The current identity (SYSNAME\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. " suddenly it started showing this error...i didn set/change any permissions .
0
9671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10433
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.