Hello,
How can I give my ASP.NET script access to the mail directory?
Hello,
How can I give my ASP.NET script access to the mail directory?
I'm trying the following coding:
which always writes FALSE. Here is a picture of the control panel showing the mail path.Code: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
Any suggestions?
What is the directory currently chmoded to?
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Each directory:
mail - 0750
neckelmann.x10hosting.com - 0750
mapper - 0750
cur - 0750
I'm hoping a Moderator could help me with this. I believe they have to set the appropriate permissions.
try setting it to 754
You can do it through the cPanel file manager or FTP.
Last edited by xav0989; 10-14-2009 at 05:10 PM.
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Thanks xav0989 but that didn't work either.
Post a ticket in the free hosting support section, as it is probably something only admins can do.
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Will do. Thanks again.
There should be nothing preventing you from setting permissions on a directory you own. Furthermore, the ASP.Net script will run with your credentials and thus have the same authorization to access anything you can access. The cause probably lies elsewhere, perhaps in Mono's Visual Basic Runtime Library, which is the assembly that hosts My.Computer.FileSystem.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.