+ Reply to Thread
Results 1 to 3 of 3

Thread: Create/Modify Files (ASP.NET)

  1. #1
    sneckelmann is offline x10Hosting Member sneckelmann is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    19

    Create/Modify Files (ASP.NET)

    I'm getting an error

    Access to the path "/home/neckelma/www/maps/N164RJ TXKF-LFTH.kml" is denied.
    when I run the coding
    Code:
     
    Return XmlTextWriter.Create("/home/neckelma/www/maps/" & strFileName, xmlSettings)
    strFileName obviously holds "N164RJ TXKF-LFTH.kml".

    The file causing the error is Default.aspx & I've set permissions 755.

    Can anyone tell me what I'm doing wrong?

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Create/Modify Files (ASP.NET)

    The permissions on which file are 755? Default.aspx? It doesn't need execute permission because it isn't directly executed. The maps directory, however, needs to give write access to the web server process's user. Try temporarily giving maps the mode 777, but don't leave it that way otherwise every local user can create and delete files from that directory. If that works, you know where the problem lies. A secure solution would be to change the group for maps to a group that the web server process is a member of and give maps the mode 775.

    As the web server should run under your account, I suspect the problem isn't file permissions.
    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.

  3. #3
    sneckelmann is offline x10Hosting Member sneckelmann is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    19

    Re: Create/Modify Files (ASP.NET)

    Thanks. Giving the maps directory 775 worked. Everything else is set to 644.

    I'm not much on the admin side of things. More into the programming.

    Thanks again.
    Edit:
    Oops! I take it back...

    Correct permissions had to be set to 645.
    Last edited by sneckelmann; 09-02-2009 at 05:51 PM. Reason: Automerged Doublepost

+ Reply to Thread

Similar Threads

  1. Uploading ASP.net files internal server error
    By acellec in forum Free Hosting
    Replies: 5
    Last Post: 07-23-2009, 03:12 AM
  2. Using Include Files with html on X10Hosting
    By frankfriend in forum Tutorials
    Replies: 0
    Last Post: 07-06-2009, 01:38 PM
  3. Ok, so I'm trying to decided wether to use asp.net or php
    By mrfish in forum Programming Help
    Replies: 8
    Last Post: 06-16-2009, 05:59 AM
  4. ASP.NET files
    By wildenau in forum Free Hosting
    Replies: 1
    Last Post: 06-09-2009, 06:50 PM
  5. Corrupt files from NAS over FTP
    By sandogg in forum Computers & Technology
    Replies: 1
    Last Post: 02-23-2008, 10:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers