joten Posted June 28, 2008 Posted June 28, 2008 My ASP.NET code modifies XML files in a local folder. Everything works fine on my localhost. But at heliohost I get the following error: Access to the path "/home/bouwraad/public_html/Files/Tellers.xml" is denied. Can this be solved? Can ASP.NET be given the right to modify files? Thanks for the help Quote
Ashoat Posted June 28, 2008 Posted June 28, 2008 That's happening because HelioHost disallows users to access other user's files. ASP.NET runs on its own user, and so it cannot access other files that aren't ASP.NET it seems. I've made a small modification in your file's permissions: see if it works now. Quote
joten Posted June 28, 2008 Author Posted June 28, 2008 Accessing the file I specified works fine now. But I suppose you only changed the rights for that particular file. I have multiple files, all located at the "/home/bouwraad/public_html/Files"- directory. Is it possible to change the permission for that whole directory? Thanks for the quick support! Quote
Ashoat Posted June 29, 2008 Posted June 29, 2008 No problem. All the files should be working now. Quote
joten Posted July 1, 2008 Author Posted July 1, 2008 No problem. All the files should be working now. Could it be that the added permissions are deleted again? It doesn't work anymore. Thanks for the help! EDIT: I just think of the fact that I recopied the files to the directory. Are the permissions on each file separately or on the directory 'files'? In the first case it could make sense that the permissions are gone due to the recopying. In that case, is it possible to grant ASP.NET write permission on everything that is located in the 'files' directory? Thanks Quote
Ashoat Posted July 1, 2008 Posted July 1, 2008 Sorry... that's not possible. You'll have to manually request every permission change. OK, I have modified your settings - everything should be working again. Quote
joten Posted July 1, 2008 Author Posted July 1, 2008 So, when I want to add another file - to allow ASP.NET to modify - I will have to ask you again, if I understand it? Can I change the content of a XML file offline without losing the permission? (So first copy the file to my local system, do some modifications and copy the file back online) If I keep working with the same file there will be no problem. Am I correct? Thanks for the clarification Quote
Ashoat Posted July 2, 2008 Posted July 2, 2008 No, you cannot overwrite the file. The permissions are applied directly to the file - if it is overwritten or deleted you will lose the permissions. However, you should be able to use cPanel's File Manager to edit your files. And yes, you'll have to ask me for every file. Sorry Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.