473,372 Members | 854 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,372 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 1730
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...
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.