ASPNET does not have write access ... tried everything?

G

Guest

Yesterday I was working with an asp.net 2.0 app. Today is a nightmare - I
can only get a "The current identity (LLCA1-ITE51218\ASPNET) does not have
write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files'" message. Ive reinstalled the mappings (aspnet_regiis), Ive
rebooted more than once, relaxed ntfs permissions massively on the site and
folder noted in the email above. Created a basic project with no mods to the
aspx or anything else. The ASPNET account itself looks good. Searched on
the internet like crazy, trying some of this and that - nothing is work.

If there is one good thing, vs.net 2003 is working fine.

No idea what caused this, but its starting to hurt. Any ideas, anything I
might be missing? Thanks a lot!
 
G

Guest

you need to enable "full" permission for the ASPNET account on the folder you
specified in your post - the Temporary folder at
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files'

Obviously, *something* has been changed on your machine.

Just right click on the folder in Windows Explorer. Choose Properties, then
Security, and make sure the user is in the list. If not, add it in and give
it Full control You might also need to add the IUsr_<yourmachine> account,
and / or the IIS_WPG account depending on your OS.
-- Peter
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
 
G

Guest

Thanks Peter. Eggheadcafe is a great site. Ive still got a link to "Build a
C# WebSite Monitor with Email and MSN Messenger Notification"

Gave ASPNET and NETWORK SERVICE full.
The only "different" thing I can think of is that when I logged in this
morning I had my smartcard plugged in; I didnt yesterday. One of the things
I did was to remove
it and shut down.
Ive added IUR and Everyone, giving them full. Methinks Im trying too many
desperate things.

XP Pro.
 
S

sloan

that stinks. (your entire situation)

One time I had some weirdo issue.

I think I :

Uninstalled IIS. ( Add Remove / Windows Components )
Rebooted.
Installed IIS.
Rebooted.
Installed SP's. (again)
Rebooted.

did the aspnet_regiis thingy dingy.

I don't remember exactly why, I can just remember doing it.

...........
 
J

Juan T. Llibre

J

Juan T. Llibre

You mentioned this, earlier... :

!> Nope, windows (we use iis integrated security)

Are you sure ?

Please copy this script as identity.aspx, and run it...

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>
--------------

Please post back the identity reported by that script.




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/
======================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top