Hi, Wayne.
This all boils down to giving the account ASP.NET is running
under, *whichever account that is* the necessary permissions.
If you have doubts about which account ASP.NET is running under,
just run this short script. It will identify ASP.NET's current identity.
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 = tmp
End Sub
</script>
<html>
<head>
<title>WindowsIdentity.GetCurrent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
--------
Hope this helps...
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:uA**************@TK2MSFTNGP12.phx.gbl...
John;
Thanks for the continued help. I am not sure how to determine which account is
configured for the web site (I thought ASP.NET was always used by VSNET projects?) I
went to Control Panel/Administrative Tools/IIS and Properties but I don't see how to
determine the default user for a web site?
Wayne
"WJ" <Jo*******@HotMail.Com> wrote in message
news:eJ**************@TK2MSFTNGP10.phx.gbl...
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... John;
Thanks for the clarification. I did that and gave ASP.NET full control of that
directory but it still gives the same error when the code attempts to create a file in
that directory?
Check your local website (IIS/MMC) to find out what account is configured for the web
site, then grant FC to that account. Example: If you allow "Anonymous" access to the
web site, then the User Account box likely shows "IUSR_YourPCName". Try that see what
happens.
John