473,383 Members | 1,859 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,383 software developers and data experts.

Account that creates folders and files under Temporary Internet files

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\...
Access is Denied. ASPNET had full access to that file and all
subfolders. The website I am working with is not impersonating. I
gave the Network Service account full access as well even though I have
IIS 5.0. I downloaded a FileMon utility from the Microsoft website.
It showed me that a domain account was now being used by VS 2003 and VS
2005 when trying to create the temp files for processing. I am not
sure how this was changed but would like to get it set to another
account.

Thanks in advance.

RS

Jan 26 '07 #1
5 3404

Copy this little file I wrote and run it from any folder in your application:

identity.aspx:
------------------
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = "ASP.NET is running as the account : " & tmp
End Sub
</script>
<html>
<head>
<title>What account is ASP.NET running as ?</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
------------

Running that page will return the name of the account ASP.NET is running as.

*That* account is the one that needs full permissions to the Temporary Folders tree
( not just for the root... ).

You might as well make sure the same account has the
necessary permissions to the directories listed in this article :

"ASP.NET Required Access Control Lists (ACLs)"
http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<ro*******@gmail.comwrote in message news:11**********************@m58g2000cwm.googlegr oups.com...
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\...
Access is Denied. ASPNET had full access to that file and all
subfolders. The website I am working with is not impersonating. I7
gave the Network Service account full access as well even though I have
IIS 5.0. I downloaded a FileMon utility from the Microsoft website.
It showed me that a domain account was now being used by VS 2003 and VS
2005 when trying to create the temp files for processing. I am not
sure how this was changed but would like to get it set to another
account.

Thanks in advance.

RS

Jan 26 '07 #2

I did this and it states that ASPNET is running under
<computername>\aspnet. However, when Visual Studio tries to create
files under the Temporary Internet files folder it is using another
account...<DomainName>\generic user. I need to change this.

On Jan 26, 9:24 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
Copy this little file I wrote and run it from any folder in your application:

identity.aspx:
------------------
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = "ASP.NET is running as the account : " & tmp
End Sub
</script>
<html>
<head>
<title>What account is ASP.NET running as ?</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
------------

Running that page will return the name of the account ASP.NET is running as.

*That* account is the one that needs full permissions to the Temporary Folders tree
( not just for the root... ).

You might as well make sure the same account has the
necessary permissions to the directories listed in this article :

"ASP.NET Required Access Control Lists (ACLs)"http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
===================================

<rogers...@gmail.comwrote in messagenews:11**********************@m58g2000cwm.g ooglegroups.com...
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\...
Access is Denied. ASPNET had full access to that file and all
subfolders. The website I am working with is not impersonating. I7
gave the Network Service account full access as well even though I have
IIS 5.0. I downloaded a FileMon utility from the Microsoft website.
It showed me that a domain account was now being used by VS 2003 and VS
2005 when trying to create the temp files for processing. I am not
sure how this was changed but would like to get it set to another
account.
Thanks in advance.
RS- Hide quoted text -- Show quoted text -
Jan 26 '07 #3
re:
I did this and it states that ASPNET is running under <computername>\aspnet.
That means you're using Windows XP, unless you changed the ASP.NET user on purpose.

Did you check whether the ASPNET account has the
necessary permissions for all the directories listed in :

http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx

?

re:
However, when Visual Studio tries to create files under the Temporary Internet
files folder it is using another account...<DomainName>\generic user.
By "generic user", do you mean the anonymous account ?

Also, does this happen when you use VS's ASP.NET development server, or when you use IIS ?

Checking which users are allowed to use the ASP.NET development
server is easy, just check the accounts authorized to run :

Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ WebDev.WebServer.EXE
Right-click that file and select the "Properties" and then the "Security" tab.

The ASPNET account should be one of them.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<ro*******@gmail.comwrote in message news:11*********************@k78g2000cwa.googlegro ups.com...

I did this and it states that ASPNET is running under
<computername>\aspnet. However, when Visual Studio tries to create
files under the Temporary Internet files folder it is using another
account...<DomainName>\generic user. I need to change this.

On Jan 26, 9:24 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
Copy this little file I wrote and run it from any folder in your application:

identity.aspx:
------------------
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = "ASP.NET is running as the account : " & tmp
End Sub
</script>
<html>
<head>
<title>What account is ASP.NET running as ?</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
------------

Running that page will return the name of the account ASP.NET is running as.

*That* account is the one that needs full permissions to the Temporary Folders tree
( not just for the root... ).

You might as well make sure the same account has the
necessary permissions to the directories listed in this article :

"ASP.NET Required Access Control Lists (ACLs)"
http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
===================================

<rogers...@gmail.comwrote in
messagenews:11**********************@m58g2000cwm.g ooglegroups.com...
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\...
Access is Denied. ASPNET had full access to that file and all
subfolders. The website I am working with is not impersonating. I7
gave the Network Service account full access as well even though I have
IIS 5.0. I downloaded a FileMon utility from the Microsoft website.
It showed me that a domain account was now being used by VS 2003 and VS
2005 when trying to create the temp files for processing. I am not
sure how this was changed but would like to get it set to another
account.
Thanks in advance.
RS- Hide quoted text -- Show quoted text -

Jan 26 '07 #4
However, when Visual Studio tries to create files under the Temporary Internet
files folder it is using another account...<DomainName>\generic user.By"generic user", do you mean the anonymous account ?

Also, does this happen when you use VS's ASP.NET development server, or when you use IIS ?
VS IDE.
Checking which users are allowed to use the ASP.NET development
server is easy, just check the accounts authorized to run :

Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ WebDev.WebServer.EXE
Right-click that file and select the "Properties" and then the "Security"tab.

The ASPNET account should be one of them.
ASPNET is for this file which is for VS 2005, right? What about VS
2003?
On Jan 26, 11:36 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
re:
I did this and it states that ASPNET is running under <computername>\aspnet.That means you're using Windows XP, unless you changed the ASP.NET user on purpose.

Did you check whether the ASPNET account has the
necessary permissions for all the directories listed in :

http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx

?

re:
However, when Visual Studio tries to create files under the Temporary Internet
files folder it is using another account...<DomainName>\generic user.By"generic user", do you mean the anonymous account ?

Also, does this happen when you use VS's ASP.NET development server, or when you use IIS ?

Checking which users are allowed to use the ASP.NET development
server is easy, just check the accounts authorized to run :

Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ WebDev.WebServer.EXE
Right-click that file and select the "Properties" and then the "Security"tab.

The ASPNET account should be one of them.

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
===================================

<rogers...@gmail.comwrote in messagenews:11*********************@k78g2000cwa.go oglegroups.com...I did this and it states that ASPNET is running under
<computername>\aspnet. However, when Visual Studio tries to create
files under the Temporary Internet files folder it is using another
account...<DomainName>\generic user. I need to change this.

On Jan 26, 9:24 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
Copy this little file I wrote and run it from any folder in your application:
identity.aspx:
------------------
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = "ASP.NET is running as the account : " & tmp
End Sub
</script>
<html>
<head>
<title>What account is ASP.NET running as ?</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
------------
Running that page will return the name of the account ASP.NET is running as.
*That* account is the one that needs full permissions to the Temporary Folders tree
( not just for the root... ).
You might as well make sure the same account has the
necessary permissions to the directories listed in this article :
"ASP.NET Required Access Control Lists (ACLs)"
http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
===================================
<rogers...@gmail.comwrote in
messagenews:11**********************@m58g2000cwm.g ooglegroups.com...
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\...
Access is Denied. ASPNET had full access to that file and all
subfolders. The website I am working with is not impersonating. I7
gave the Network Service account full access as well even though I have
IIS 5.0. I downloaded a FileMon utility from the Microsoft website.
It showed me that a domain account was now being used by VS 2003 and VS
2005 when trying to create the temp files for processing. I am not
sure how this was changed but would like to get it set to another
account.
Thanks in advance.
RS- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -
Jan 26 '07 #5
re:
VS IDE
With the VS IDE, you can use both IIS and the Development Web Server.

If you're testing a file-based project, you're using the Dev Server.
If you're using HTTP, you're using IIS.

Which one is it you're using ?

re:
ASPNET is for this file which is for VS 2005, right?
No. The account used depends on the operating system/IIS version used.

IIS 5.0 and 5.1 use the ASPNET account.
IIS 6.0 uses the NETWORK SERVICE account.

VS 2005 will use whichever account corresponds to the OS/IIS version it runs under.

re:
What about VS 2003?
It will use whichever account corresponds to the OS/IIS version it runs under.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<ro*******@gmail.comwrote in message news:11**********************@j27g2000cwj.googlegr oups.com...
However, when Visual Studio tries to create files under the Temporary Internet
files folder it is using another account...<DomainName>\generic user.By "generic user", do you
mean the anonymous account ?

Also, does this happen when you use VS's ASP.NET development server, or when you use IIS ?
VS IDE.
Checking which users are allowed to use the ASP.NET development
server is easy, just check the accounts authorized to run :

Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ WebDev.WebServer.EXE
Right-click that file and select the "Properties" and then the "Security" tab.

The ASPNET account should be one of them.
ASPNET is for this file which is for VS 2005, right? What about VS
2003?
On Jan 26, 11:36 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
re:
I did this and it states that ASPNET is running under <computername>\aspnet.That means you're
using Windows XP, unless you changed the ASP.NET user on purpose.

Did you check whether the ASPNET account has the
necessary permissions for all the directories listed in :

http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx

?

re:
However, when Visual Studio tries to create files under the Temporary Internet
files folder it is using another account...<DomainName>\generic user.By "generic user", do you
mean the anonymous account ?

Also, does this happen when you use VS's ASP.NET development server, or when you use IIS ?

Checking which users are allowed to use the ASP.NET development
server is easy, just check the accounts authorized to run :

Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ WebDev.WebServer.EXE
Right-click that file and select the "Properties" and then the "Security" tab.

The ASPNET account should be one of them.

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
===================================

<rogers...@gmail.comwrote in
messagenews:11*********************@k78g2000cwa.go oglegroups.com...I did this and it states that
ASPNET is running under
<computername>\aspnet. However, when Visual Studio tries to create
files under the Temporary Internet files folder it is using another
account...<DomainName>\generic user. I need to change this.

On Jan 26, 9:24 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
Copy this little file I wrote and run it from any folder in your application:
identity.aspx:
------------------
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = "ASP.NET is running as the account : " & tmp
End Sub
</script>
<html>
<head>
<title>What account is ASP.NET running as ?</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
------------
Running that page will return the name of the account ASP.NET is running as.
*That* account is the one that needs full permissions to the Temporary Folders tree
( not just for the root... ).
You might as well make sure the same account has the
necessary permissions to the directories listed in this article :
"ASP.NET Required Access Control Lists (ACLs)"
http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
===================================
<rogers...@gmail.comwrote in
messagenews:11**********************@m58g2000cwm.g ooglegroups.com...
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\...
Access is Denied. ASPNET had full access to that file and all
subfolders. The website I am working with is not impersonating. I7
gave the Network Service account full access as well even though I have
IIS 5.0. I downloaded a FileMon utility from the Microsoft website.
It showed me that a domain account was now being used by VS 2003 and VS
2005 when trying to create the temp files for processing. I am not
sure how this was changed but would like to get it set to another
account.
Thanks in advance.
RS- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -

Jan 26 '07 #6

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

Similar topics

10
by: James_101 | last post by:
My training piece is in Authorware. The user logs in with last name and a four-digit number. Authorware sends this user identifier to an asp page called db_read.asp. This file sends a SQL SELECT...
3
by: Web Webon | last post by:
Hi everybody! I wonder if this is possible? I need to determine if a client is using "windows classic folders" or anything else. If I instantiate a Shell ActiveX object is there a way of...
5
by: Rosa | last post by:
Hi, I'm trying to clear the TIF on Windows XP programmatically with the below code. This code works fine on any folder but the TIF. For some reason the atEnd() statements always defaults to true...
3
by: Jim | last post by:
Is it possible to read the Temporary Internet Files folder using C#? I'm messing with FileIO (newbie here) and everything seems to work fine until I try to read the list of files in this Temporary...
0
by: VZUmar | last post by:
Hi I am using IWebBrowser2 in my VC++ windows Application, My application uses browser control to navigate through different web pages. IE of machine has Security setting "Empty Temporary Internet...
7
by: Norton | last post by:
Hi all, I would like to know if there is any method in asp or asp.net to direct the browser to download a file into the Temporary Internet Files directory so that i can make use of vb script to...
4
by: Nicolás Castagnet | last post by:
Hi, I write this post because I notice a strange behavior related with "Temporary Internet Files" and maybe some of you can help me to understand it. I am working in a web application with...
3
by: JV | last post by:
I'm trying to understand how ASP.NET creates web folders when it creates a new ASP.NET project. I am experienced with DotNet development, but not an expert on how IIS works. Or, this may be a...
1
by: =?Utf-8?B?Q2VzYXI=?= | last post by:
Hello, I started to use IIS 6.0 and created a web site (anonymous authentication enabled with domain account). This web site contains several apps (web services and "plain" web apps) and I want...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.