Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Access to path **** denied.

Reply
Thread Tools

Access to path **** denied.

 
 
George Hardy
Guest
Posts: n/a
 
      08-23-2005
hello all,

why would the following error occur, and how is it fixed? It seems like IIS
cant create a temp directory. I also added the ASPNET user to the
\Temporary ASP.NET Files\ directory with full rights, but it didn't seem to
work.


Exception Details: System.UnauthorizedAccessException: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\root\82d26208\ca478f3a" is denied.

thanks in advance!!!
george hardy


 
Reply With Quote
 
 
 
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      08-24-2005
Hello George,

which OS are you running on?

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> hello all,
>
> why would the following error occur, and how is it fixed? It seems
> like IIS cant create a temp directory. I also added the ASPNET user
> to the \Temporary ASP.NET Files\ directory with full rights, but it
> didn't seem to work.
>
> Exception Details: System.UnauthorizedAccessException: Access to the
> path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
> Files\root\82d26208\ca478f3a" is denied.
>
> thanks in advance!!!
> george hardy




 
Reply With Quote
 
 
 
 
George Hardy
Guest
Posts: n/a
 
      08-24-2005
my development machine (where this works) is XP,

when i copy the site to the machine where it doesn't work, it is a Win2003
Server.

george


"Dominick Baier [DevelopMentor]" <>
wrote in message news:.. .
> Hello George,
>
> which OS are you running on?
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
>> hello all,
>>
>> why would the following error occur, and how is it fixed? It seems
>> like IIS cant create a temp directory. I also added the ASPNET user
>> to the \Temporary ASP.NET Files\ directory with full rights, but it
>> didn't seem to work.
>>
>> Exception Details: System.UnauthorizedAccessException: Access to the
>> path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
>> Files\root\82d26208\ca478f3a" is denied.
>>
>> thanks in advance!!!
>> george hardy

>
>
>



 
Reply With Quote
 
WJ
Guest
Posts: n/a
 
      08-24-2005
"George Hardy" <-nospam> wrote in message
news:...
> my development machine (where this works) is XP,
>
> when i copy the site to the machine where it doesn't work, it is a Win2003
> Server.
>


1. "AspNet" and "Network Service" accounts should have write or full control
to this folder below:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files

2. When you deploy your app to Win2k3, donot copy files to the above folder,
instead, you deploy them to IIS Virtual folder/directory.

May be somebody modified your FS by chance ?

*** By default, when you first install .NetFW v1.1, the system should
already took care the above folder for you. You really donot have to touch
it.

John



 
Reply With Quote
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      08-24-2005
Hello George,

on XP ASP.NET runs under the ASPNET account - under W2K3 under NETWORK SERVICE
by default (ASPNET is still included). This is configured via the Application
Pool feature in IIS6.

There is also a group called IIS_WPG - give this group full control to the
temp directory - if that works you can lockdown more if you like.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> my development machine (where this works) is XP,
>
> when i copy the site to the machine where it doesn't work, it is a
> Win2003 Server.
>
> george
>
> "Dominick Baier [DevelopMentor]"
> <> wrote in message
> news:.. .
>
>> Hello George,
>>
>> which OS are you running on?
>>
>> ---------------------------------------
>> Dominick Baier - DevelopMentor
>> http://www.leastprivilege.com
>>> hello all,
>>>
>>> why would the following error occur, and how is it fixed? It seems
>>> like IIS cant create a temp directory. I also added the ASPNET user
>>> to the \Temporary ASP.NET Files\ directory with full rights, but it
>>> didn't seem to work.
>>>
>>> Exception Details: System.UnauthorizedAccessException: Access to the
>>> path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
>>> Files\root\82d26208\ca478f3a" is denied.
>>>
>>> thanks in advance!!!
>>> george hardy




 
Reply With Quote
 
George Hardy
Guest
Posts: n/a
 
      08-25-2005
ok thanks, i will give it a shot...i might re-install iis too. that only
takes about 5 minutes anyway.

thanks a bunch.

george hardy


"WJ" <> wrote in message
news:...
> "George Hardy" <-nospam> wrote in message
> news:...
>> my development machine (where this works) is XP,
>>
>> when i copy the site to the machine where it doesn't work, it is a
>> Win2003 Server.
>>

>
> 1. "AspNet" and "Network Service" accounts should have write or full
> control to this folder below:
> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
> Files
>
> 2. When you deploy your app to Win2k3, donot copy files to the above
> folder, instead, you deploy them to IIS Virtual folder/directory.
>
> May be somebody modified your FS by chance ?
>
> *** By default, when you first install .NetFW v1.1, the system should
> already took care the above folder for you. You really donot have to touch
> it.
>
> John
>
>
>



 
Reply With Quote
 
George Hardy
Guest
Posts: n/a
 
      08-25-2005
thanks for the info.

having much better luck now.

george hardy

"Dominick Baier [DevelopMentor]" <>
wrote in message news:.. .
> Hello George,
>
> on XP ASP.NET runs under the ASPNET account - under W2K3 under NETWORK
> SERVICE by default (ASPNET is still included). This is configured via the
> Application Pool feature in IIS6.
>
> There is also a group called IIS_WPG - give this group full control to the
> temp directory - if that works you can lockdown more if you like.
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
>> my development machine (where this works) is XP,
>>
>> when i copy the site to the machine where it doesn't work, it is a
>> Win2003 Server.
>>
>> george
>>
>> "Dominick Baier [DevelopMentor]"
>> <> wrote in message
>> news:.. .
>>
>>> Hello George,
>>>
>>> which OS are you running on?
>>>
>>> ---------------------------------------
>>> Dominick Baier - DevelopMentor
>>> http://www.leastprivilege.com
>>>> hello all,
>>>>
>>>> why would the following error occur, and how is it fixed? It seems
>>>> like IIS cant create a temp directory. I also added the ASPNET user
>>>> to the \Temporary ASP.NET Files\ directory with full rights, but it
>>>> didn't seem to work.
>>>>
>>>> Exception Details: System.UnauthorizedAccessException: Access to the
>>>> path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
>>>> Files\root\82d26208\ca478f3a" is denied.
>>>>
>>>> thanks in advance!!!
>>>> george hardy

>
>
>



 
Reply With Quote
 
Pat
Guest
Posts: n/a
 
      08-29-2005
Good you got Dominick put you through .
WIN2003 server uses another acct not the same as ASPNET.
PAtrick
"George Hardy" <-nospam> wrote in message
news:...
> ok thanks, i will give it a shot...i might re-install iis too. that only
> takes about 5 minutes anyway.
>
> thanks a bunch.
>
> george hardy
>
>
> "WJ" <> wrote in message
> news:...
> > "George Hardy" <-nospam> wrote in message
> > news:...
> >> my development machine (where this works) is XP,
> >>
> >> when i copy the site to the machine where it doesn't work, it is a
> >> Win2003 Server.
> >>

> >
> > 1. "AspNet" and "Network Service" accounts should have write or full
> > control to this folder below:
> > C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
> > Files
> >
> > 2. When you deploy your app to Win2k3, donot copy files to the above
> > folder, instead, you deploy them to IIS Virtual folder/directory.
> >
> > May be somebody modified your FS by chance ?
> >
> > *** By default, when you first install .NetFW v1.1, the system should
> > already took care the above folder for you. You really donot have to

touch
> > it.
> >
> > John
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PERL windows : "Windows cannot access the specified device, path orfile. You may not have the appropriate permission to access the item." guru Perl Misc 4 02-18-2009 04:46 PM
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
Windows cannot access the specified device path or file. You may not have the appropriate permissions to access the item. strollingjj Computer Support 11 12-03-2006 01:27 PM
"Access to the path <path> is denied" but it shouldn't be. Kent Tegels ASP .Net Security 0 08-26-2004 04:43 PM
Bizzare: Invalid path to Access mdb, path is good Keith-Earl ASP .Net 1 05-03-2004 03:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57