Server.Mappath

  • Thread starter Thread starter Guest
  • Start date Start date
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 ?
 
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>
----------------------------------

Whether you access it through an IP address, a domain name or a machinename,
running that script will tell you *exactly* which account needs the permissions.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
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

Back
Top