Access file denied - Urgent!!!

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Access file denied - Urgent!!!

    Hi all,

    I was trying to read/write to a file under the ASP.NET web application's
    root directory. After some configurations, e.g. Enabling 'Impersonate',
    Assigning correct pemissions to ASPNET accounts for this file, the program
    ran very well. However when I put it on another server, it appears the
    system is trying to locate the file under "C:\Winnt\System32" and I got
    "Unauthorized Exception". This file IS under the web application root
    directory, and I tried to put "~/" or "./" before the file name, it didn't
    work either! Any ideas? Thank you in advance!!!


    David


    David Li Guest

  2. Similar Questions and Discussions

    1. access denied to file
      When installing a java program from my computer the install shield brings up and error message saying that it needs to access a file inside...
    2. Access Denied when uploading a file
      Just changed web hosting providers. I'm using Contribute 4. This problem only seems to happen when I'm linking a new file from our network (ie...
    3. Access Denied. The file may not exist,...
      Hello everyone, I have no idea why this issue keeps poping up... what have i done wrong... any ideas here is the error message... Access...
    4. Access denied to file from ServicedComponent
      I would greatly appreciate help on issue that looks as have been resolved before: I wrote a ServicedComponent that reads and writes files to a...
    5. A failure occurred writing to the resources file. Access is denied. -- RESX file is locked? -- WHY?
      Hi. This is an error that comes up fairly regularly when trying to run the "Rebuild All" command in a Solution that contains more than one...
  3. #2

    Default Re: Access file denied - Urgent!!!

    On Wed, 20 Oct 2004 08:29:35 -0500, "David Li" <david.li@yourcall.com> wrote:

    ¤ Hi all,
    ¤
    ¤ I was trying to read/write to a file under the ASP.NET web application's
    ¤ root directory. After some configurations, e.g. Enabling 'Impersonate',
    ¤ Assigning correct pemissions to ASPNET accounts for this file, the program
    ¤ ran very well. However when I put it on another server, it appears the
    ¤ system is trying to locate the file under "C:\Winnt\System32" and I got
    ¤ "Unauthorized Exception". This file IS under the web application root
    ¤ directory, and I tried to put "~/" or "./" before the file name, it didn't
    ¤ work either! Any ideas? Thank you in advance!!!
    ¤

    Are you using Server.MapPath to specify the location of the file?


    Paul ~~~ [email]pclement@ameritech.net[/email]
    Microsoft MVP (Visual Basic)
    Paul Clement Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139