473,568 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1743
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\NETWO RK 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******@discu ssions.microsof t.com> wrote in message
news:35******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:BB******** *************** ***********@mic rosoft.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\NETWO RK 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******@discu ssions.microsof t.com> wrote in message
news:35******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:96******** *************** ***********@mic rosoft.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\NETWO RK 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******@discu ssions.microsof t.com> wrote in message
news:35******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:96******** *************** ***********@mic rosoft.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\NETWO RK 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******@discu ssions.microsof t.com> wrote in message
news:35******** *************** ***********@mic rosoft.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
4501
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 statement joins 15 tables . SOme of the tables are outer joined. It runs much slow when parameters (From & To Date) are for a month.
2
3132
by: Kiko + | last post by:
Hi, I've been getting this error: Server Error in '/applicationname' Application. ---------------------------------------------------------------------------- ---- Failed to create temporary files directory
12
5085
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 Files\projects_cig\e4e3b3da\3c20ac69" is denied. The error goes on to say that the ASP.NET is not authorized...
2
6050
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 server. On the line: dirs = Directory.GetDirectories(currentDir) I get "Access to the path "\\les-net\les\Special Projects\ATSPDF" is denied." ...
0
2251
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 updating the code-behind dll) accessing any aspx page in the application causes the application to run for the first time. Some of the initialization...
4
28943
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. Whenever I execute the application it gives, Unauthorize Exception error and it's not execting the application property. The Error message is as...
10
4431
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 time the windows service tries to rename the file (using flFile.move(source,destination)) it gets an error saying access is denied. The files are...
5
3414
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 afterwards. I did no development for a couple of weeks, came back and I kept receiving Access Denied to Microsoft.Net\Temporary Internet Files\......
6
6992
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
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7916
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6275
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5498
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
932
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.