473,320 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do I fix this error: "The current identity (NT AUTHORITY\NETWORK 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\NETWORK SERVICE) does not have write
access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary 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.HttpException: The current identity (NT
AUTHORITY\NETWORK SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary 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\NETWORK
SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files'.]
System.Web.HttpRuntime.SetUpCodegenDirectory(Compi lationSection
compilationSection) +3473131
System.Web.HttpRuntime.HostingInit(HostingEnvironm entFlags hostingFlags)
+226

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK
SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3425571
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +149

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.26; ASP.NET
Version:2.0.50727.26

Nov 23 '05 #1
2 14209
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
--
"TheBurgerMan" <Th**********@gmail.com> wrote in message
news:OO**************@tk2msftngp13.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\NETWORK SERVICE) does not have write
access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary 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.HttpException: The current identity (NT
AUTHORITY\NETWORK SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary 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\NETWORK
SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files'.]
System.Web.HttpRuntime.SetUpCodegenDirectory(Compi lationSection
compilationSection) +3473131
System.Web.HttpRuntime.HostingInit(HostingEnvironm entFlags hostingFlags)
+226

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK
SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3425571
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +149

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.26;
ASP.NET
Version:2.0.50727.26

Nov 23 '05 #2
I fixed the problem (thanks to Jim Cheshire of JIMCO Software
(http://www.jimcosoftware.com) ).

The GPO (Default Domain Policy) was overriding the ACL's and NOT including
the NETWORK SERVICE account everytime it did a policy check (or whatever it
does). Once I added the account to the correct directory in the Default
Domain Policy, it was fine.

--
Thanks,
TheBurgerMan
at
gmail.com
--
"TheBurgerMan" <Th**********@gmail.com> wrote in message
news:eu**************@TK2MSFTNGP10.phx.gbl...
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
--
"TheBurgerMan" <Th**********@gmail.com> wrote in message
news:OO**************@tk2msftngp13.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\NETWORK SERVICE) does not have write
access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary
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.HttpException: The current identity (NT
AUTHORITY\NETWORK SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary 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\NETWORK
SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files'.]
System.Web.HttpRuntime.SetUpCodegenDirectory(Compi lationSection
compilationSection) +3473131
System.Web.HttpRuntime.HostingInit(HostingEnvironm entFlags
hostingFlags)
+226

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK
SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3425571
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)
+149

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.26;
ASP.NET
Version:2.0.50727.26


Nov 23 '05 #3

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

Similar topics

3
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...
2
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...
6
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...
1
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...
11
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;...
0
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...
0
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 ...
1
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,...
1
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...
0
by: vidhyaG | last post by:
Hi, i am developing a project in c#.net(windows application-ms access).i have created one table and set autonumber to one field.now i want to get a current identity value of particular table...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.