Server.Mappath

G

Guest

Hi,

What rights do I have to add if I want to write to and create files in a
directory, if I acces it through an IP adress
I already added the "ASPNET Machine Account" and the "Guest user for
Internet Connections"(IUSR) They both have full read/write acces to that
particular dir

What am I forgetting ?
 
J

Juan T. Llibre

The most important thing you can do is *identify*
the correct account to give read/write rights to.

Save the following as identity.aspx, and run it.
---------------------------------------------
<%@ 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>
 

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

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,173
Latest member
GeraldReund
Top