473,326 Members | 2,111 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,326 software developers and data experts.

Temoprary ASP.NET Files access denied

Server Windows 2003. Created one web site, everything works fine. Copied the
content to another folder and created another web site pointing to the copied
contecnt for test purposes. Configuration is identical except that the test
site has a different IP and some path changes were made in web.config to
match the different location. First site still working fine, but test site
gets access denied trying to create folders under the Temporary ASP.NET Files
folder. Network Service and System have Full Control, ran iisreg -i,
restarted IIS. Still same problem. Maybe a probnlem with duplicate web app
names or duplicate dll names? Tried changeing the name of one of the app
folders and app name, but still got the same error. TIA
Nov 19 '05 #1
8 1729
If you are not using impersonation then you need to give access to the ASPNET
account otherwise to the userID that is being impersonated.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"lightcap" wrote:
Server Windows 2003. Created one web site, everything works fine. Copied the
content to another folder and created another web site pointing to the copied
contecnt for test purposes. Configuration is identical except that the test
site has a different IP and some path changes were made in web.config to
match the different location. First site still working fine, but test site
gets access denied trying to create folders under the Temporary ASP.NET Files
folder. Network Service and System have Full Control, ran iisreg -i,
restarted IIS. Still same problem. Maybe a probnlem with duplicate web app
names or duplicate dll names? Tried changeing the name of one of the app
folders and app name, but still got the same error. TIA

Nov 19 '05 #2
The ASPNET account also has full control. Both the original and copied(test)
sites are configured the same as far as I can tell, what would account for
one working and one failing?

"Phillip Williams" wrote:
If you are not using impersonation then you need to give access to the ASPNET
account otherwise to the userID that is being impersonated.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"lightcap" wrote:
Server Windows 2003. Created one web site, everything works fine. Copied the
content to another folder and created another web site pointing to the copied
contecnt for test purposes. Configuration is identical except that the test
site has a different IP and some path changes were made in web.config to
match the different location. First site still working fine, but test site
gets access denied trying to create folders under the Temporary ASP.NET Files
folder. Network Service and System have Full Control, ran iisreg -i,
restarted IIS. Still same problem. Maybe a probnlem with duplicate web app
names or duplicate dll names? Tried changeing the name of one of the app
folders and app name, but still got the same error. TIA

Nov 19 '05 #3
I think I stumbled acrosss the answer. I found a script that will display the
user that is actually trying to create the temp folders. I was surprised to
find that it was the "Connect As" account. I did not mention before that the
content is on a different server. When I checked the "Connect As" on the site
taht was not working, it was different and did not have NTFS permission to
create the temp files. I now have a new error, but I will wrestle with that a
while before I cry for help.

Thanks.

"lightcap" wrote:
The ASPNET account also has full control. Both the original and copied(test)
sites are configured the same as far as I can tell, what would account for
one working and one failing?

"Phillip Williams" wrote:
If you are not using impersonation then you need to give access to the ASPNET
account otherwise to the userID that is being impersonated.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"lightcap" wrote:
Server Windows 2003. Created one web site, everything works fine. Copied the
content to another folder and created another web site pointing to the copied
contecnt for test purposes. Configuration is identical except that the test
site has a different IP and some path changes were made in web.config to
match the different location. First site still working fine, but test site
gets access denied trying to create folders under the Temporary ASP.NET Files
folder. Network Service and System have Full Control, ran iisreg -i,
restarted IIS. Still same problem. Maybe a probnlem with duplicate web app
names or duplicate dll names? Tried changeing the name of one of the app
folders and app name, but still got the same error. TIA

Nov 19 '05 #4
That the ASPNET account is not the one ASP.NET uses
when running under Windows Server 2003 ?

ASP.NET runs as the NT AUTHORITY\NETWORK SERVICE
account when running under W2K3.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"lightcap" <li******@discussions.microsoft.com> wrote in message
news:35**********************************@microsof t.com...
The ASPNET account also has full control. Both the original and copied(test)
sites are configured the same as far as I can tell, what would account for
one working and one failing?

"Phillip Williams" wrote:
If you are not using impersonation then you need to give access to the ASPNET
account otherwise to the userID that is being impersonated.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"lightcap" wrote:
> Server Windows 2003. Created one web site, everything works fine. Copied the
> content to another folder and created another web site pointing to the copied
> contecnt for test purposes. Configuration is identical except that the test
> site has a different IP and some path changes were made in web.config to
> match the different location. First site still working fine, but test site
> gets access denied trying to create folders under the Temporary ASP.NET Files
> folder. Network Service and System have Full Control, ran iisreg -i,
> restarted IIS. Still same problem. Maybe a probnlem with duplicate web app
> names or duplicate dll names? Tried changeing the name of one of the app
> folders and app name, but still got the same error. TIA

Nov 19 '05 #5
You probably found my script.

Yes, verifying the identity ASP.NET is running as
is the first thing that ASP.NET programmers should do.

Knowing that saves a lot of headaches.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"lightcap" <li******@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
I think I stumbled acrosss the answer. I found a script that will display the
user that is actually trying to create the temp folders. I was surprised to
find that it was the "Connect As" account. I did not mention before that the
content is on a different server. When I checked the "Connect As" on the site
taht was not working, it was different and did not have NTFS permission to
create the temp files. I now have a new error, but I will wrestle with that a
while before I cry for help.

Thanks.

"lightcap" wrote:
The ASPNET account also has full control. Both the original and copied(test)
sites are configured the same as far as I can tell, what would account for
one working and one failing?

"Phillip Williams" wrote:
> If you are not using impersonation then you need to give access to the ASPNET
> account otherwise to the userID that is being impersonated.
> --
> HTH,
> Phillip Williams
> http://www.societopia.net
> http://www.webswapp.com
>
>
> "lightcap" wrote:
>
> > Server Windows 2003. Created one web site, everything works fine. Copied the
> > content to another folder and created another web site pointing to the copied
> > contecnt for test purposes. Configuration is identical except that the test
> > site has a different IP and some path changes were made in web.config to
> > match the different location. First site still working fine, but test site
> > gets access denied trying to create folders under the Temporary ASP.NET Files
> > folder. Network Service and System have Full Control, ran iisreg -i,
> > restarted IIS. Still same problem. Maybe a probnlem with duplicate web app
> > names or duplicate dll names? Tried changeing the name of one of the app
> > folders and app name, but still got the same error. TIA

Nov 19 '05 #6
Apparently that changes in a configuration like ours. The content is not
local, but on another file server. The account used to connect to the remote
file share was also the account used to create the local temporary files.
Thanks for the identity script! That was the key.

lightcap
"Juan T. Llibre" wrote:
That the ASPNET account is not the one ASP.NET uses
when running under Windows Server 2003 ?

ASP.NET runs as the NT AUTHORITY\NETWORK SERVICE
account when running under W2K3.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"lightcap" <li******@discussions.microsoft.com> wrote in message
news:35**********************************@microsof t.com...
The ASPNET account also has full control. Both the original and copied(test)
sites are configured the same as far as I can tell, what would account for
one working and one failing?

"Phillip Williams" wrote:
If you are not using impersonation then you need to give access to the ASPNET
account otherwise to the userID that is being impersonated.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"lightcap" wrote:

> Server Windows 2003. Created one web site, everything works fine. Copied the
> content to another folder and created another web site pointing to the copied
> contecnt for test purposes. Configuration is identical except that the test
> site has a different IP and some path changes were made in web.config to
> match the different location. First site still working fine, but test site
> gets access denied trying to create folders under the Temporary ASP.NET Files
> folder. Network Service and System have Full Control, ran iisreg -i,
> restarted IIS. Still same problem. Maybe a probnlem with duplicate web app
> names or duplicate dll names? Tried changeing the name of one of the app
> folders and app name, but still got the same error. TIA


Nov 19 '05 #7
re:
The content is not local, but on another file server.
Yes, when a site's content is on a file server, and not on the web server itself,
the account ASP.NET runs as is the connecting machine's account.

re: Thanks for the identity script! That was the key.
You're very much welcome!


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"lightcap" <li******@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com... Apparently that changes in a configuration like ours. The content is not
local, but on another file server. The account used to connect to the remote
file share was also the account used to create the local temporary files.
Thanks for the identity script! That was the key.

lightcap
"Juan T. Llibre" wrote:

That the ASPNET account is not the one ASP.NET uses
when running under Windows Server 2003 ?

ASP.NET runs as the NT AUTHORITY\NETWORK SERVICE
account when running under W2K3.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"lightcap" <li******@discussions.microsoft.com> wrote in message
news:35**********************************@microsof t.com...
> The ASPNET account also has full control. Both the original and copied(test)
> sites are configured the same as far as I can tell, what would account for
> one working and one failing?
>
> "Phillip Williams" wrote:
>
>> If you are not using impersonation then you need to give access to the ASPNET
>> account otherwise to the userID that is being impersonated.
>> --
>> HTH,
>> Phillip Williams
>> http://www.societopia.net
>> http://www.webswapp.com
>> "lightcap" wrote:
>>
>> > Server Windows 2003. Created one web site, everything works fine. Copied the
>> > content to another folder and created another web site pointing to the copied
>> > contecnt for test purposes. Configuration is identical except that the test
>> > site has a different IP and some path changes were made in web.config to
>> > match the different location. First site still working fine, but test site
>> > gets access denied trying to create folders under the Temporary ASP.NET Files
>> > folder. Network Service and System have Full Control, ran iisreg -i,
>> > restarted IIS. Still same problem. Maybe a probnlem with duplicate web app
>> > names or duplicate dll names? Tried changeing the name of one of the app
>> > folders and app name, but still got the same error. TIA

Nov 19 '05 #8
Thanks Juan for this correction. I guess I have accidentally helped by
suggesting the ASPNET account even though it was not the right answer, though
it turned out to be the solution :-)

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Juan T. Llibre" wrote:
re:
The content is not local, but on another file server.


Yes, when a site's content is on a file server, and not on the web server itself,
the account ASP.NET runs as is the connecting machine's account.

re:
Thanks for the identity script! That was the key.


You're very much welcome!


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"lightcap" <li******@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
Apparently that changes in a configuration like ours. The content is not
local, but on another file server. The account used to connect to the remote
file share was also the account used to create the local temporary files.
Thanks for the identity script! That was the key.

lightcap
"Juan T. Llibre" wrote:

That the ASPNET account is not the one ASP.NET uses
when running under Windows Server 2003 ?

ASP.NET runs as the NT AUTHORITY\NETWORK SERVICE
account when running under W2K3.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"lightcap" <li******@discussions.microsoft.com> wrote in message
news:35**********************************@microsof t.com...
> The ASPNET account also has full control. Both the original and copied(test)
> sites are configured the same as far as I can tell, what would account for
> one working and one failing?
>
> "Phillip Williams" wrote:
>
>> If you are not using impersonation then you need to give access to the ASPNET
>> account otherwise to the userID that is being impersonated.
>> --
>> HTH,
>> Phillip Williams
>> http://www.societopia.net
>> http://www.webswapp.com
> "lightcap" wrote:
>>
>> > Server Windows 2003. Created one web site, everything works fine. Copied the
>> > content to another folder and created another web site pointing to the copied
>> > contecnt for test purposes. Configuration is identical except that the test
>> > site has a different IP and some path changes were made in web.config to
>> > match the different location. First site still working fine, but test site
>> > gets access denied trying to create folders under the Temporary ASP.NET Files
>> > folder. Network Service and System have Full Control, ran iisreg -i,
>> > restarted IIS. Still same problem. Maybe a probnlem with duplicate web app
>> > names or duplicate dll names? Tried changeing the name of one of the app
>> > folders and app name, but still got the same error. TIA


Nov 19 '05 #9

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

Similar topics

6
by: Mahesh Hardikar | last post by:
Hi , Oracle 8.1.7.0.0 on HP-UX 11.0 I am a newbie as far as PL-SQL is concerned . I have Sybase/MSSQL T-SQL background. We have a report which uses a select statement . This select...
2
by: Kiko + | last post by:
Hi, I've been getting this error: Server Error in '/applicationname' Application. ---------------------------------------------------------------------------- ---- Failed to create...
12
by: Chad Crowder | last post by:
Hi all, I hope someone can give me a hand, because I'm out of ideas. I keep getting this message: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET...
2
by: Tom Wells | last post by:
I have a little file upload page that I have been able to use to successfully upload files to the C: drive of LocalHost (my machine). I need to be able to upload to a network drive from the intranet...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
4
by: Anbu | last post by:
Hi all, I have developed an application in VS .NET 2003 (framework 1.1) on a XP platform. It is working fine in that PC. Now, I setup new PC with same configuration for another develper....
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
5
by: rogersw8n | last post by:
Some how, some way the account that creates folders under Temporary Internet files has been changed to a domain account for VS 2003 and VS 2005. I recently installed VS 2005. All seemed to be ok...
6
by: fyitang | last post by:
hi guys, here is the sample: string strFileFullName = ""; try { FileInfo currentFile = GetOneFile("some directory"); strFileFullName = currentFile.FullName; // do someting...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
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.