473,387 Members | 1,844 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,387 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 19 '05 #1
11 45222
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!
***************************
"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!

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 19 '05 #3
TheBurgerMan,

I think you should try giving the NT AUTHORITY/NETWORK SERVICE account
modify permissions on the
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files folder
manually.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"TheBurgerMan" <Th**********@gmail.com> wrote in message
news:uu***************@TK2MSFTNGP10.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 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
--
"TheBurgerMan" <Th**********@gmail.com> wrote in message
news:uu***************@TK2MSFTNGP10.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 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_regiis -ga "NT AUTHORITY\NETWORK
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*******@jimcosoftware.com> wrote in message
news:eD****************@TK2MSFTNGP14.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*******@jimcosoftware.com> wrote in message
news:%2****************@TK2MSFTNGP15.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
Thanks Jim. I added the directory (and all sub's) into the policy and then
did the 'gbupdate /force' again. My site is still up and running, so I
guess that was it.

--
Thanks,
TheBurgerMan
at
gmail.com
--
"JIMCO Software" <co*******@jimcosoftware.com> wrote in message
news:ez**************@TK2MSFTNGP15.phx.gbl...
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 #11
TheBurgerMan wrote:
Thanks Jim. I added the directory (and all sub's) into the policy
and then did the 'gbupdate /force' again. My site is still up and
running, so I guess that was it.


Cool. Glad to help.

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


Nov 19 '05 #12

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...
2
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.