sneckelmann
New Member
- Messages
- 19
- Reaction score
- 0
- Points
- 0
Hello,
How can I give my ASP.NET script access to the mail directory?
How can I give my ASP.NET script access to the mail directory?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim MAIL_PATH As String = "/home/neckelma/mail/neckelmann.x10hosting.com/mapper/cur/"
Response.Write(My.Computer.FileSystem.DirectoryExists(MAIL_PATH))
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim MAIL_PATH As String = "/home/neckelma/mail/neckelmann.x10hosting.com/mapper/cur/"
Dim HOME_PATH As String = "/home/neckelma/public_html/"
Dim mailInfo As FileInfo
Dim homeInfo As FileInfo
Try
For Each foundfile As String In My.Computer.FileSystem.GetFiles(MAIL_PATH)
mailInfo = My.Computer.FileSystem.GetFileInfo(foundfile)
Response.Write(mailInfo.FullName & "<BR>")
Next
Catch ex As Exception
Response.Write("Error Message: " & ex.Message & "<BR>")
End Try
Try
For Each foundfile As String In My.Computer.FileSystem.GetFiles(HOME_PATH)
homeInfo = My.Computer.FileSystem.GetFileInfo(foundfile)
Response.Write(homeInfo.FullName & "<BR>")
Next
Catch ex As Exception
Response.Write("Error Message: " & ex.Message & "<BR>")
End Try
End Sub
Error Message: Access to the path "/home/neckelma/mail/neckelmann.x10hosting.com/mapper/cur" is denied.
/home/neckelma/public_html/.htaccess
/home/neckelma/public_html/Default.aspx
/home/neckelma/public_html/Default.aspx.vb
/home/neckelma/public_html/aural.css
/home/neckelma/public_html/main.css
/home/neckelma/public_html/print.css
/home/neckelma/public_html/web.config
[SIZE=2]
Response.Write([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"You are logged in as <b>"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] & Mono.Unix.Native.Syscall.getuid & [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"<b>."[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])
[/SIZE]
'Unix' is not a member of 'Mono'.