471,306 Members | 835 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 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 1619
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Mahesh Hardikar | last post: by
2 posts views Thread by Kiko + | last post: by
12 posts views Thread by Chad Crowder | last post: by
2 posts views Thread by Tom Wells | last post: by
10 posts views Thread by dermot | last post: by

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.