Skip to main content
Participant
March 11, 2010
Question

java.io.FileNotFoundException: (Access is denied) issue

  • March 11, 2010
  • 1 reply
  • 2352 views

Running CF9 on Win7 64 and iis7. getting the error below when I try to write a file

<cfscript>

FileWrite(GetDirectoryFromPath(ExpandPath('./somefilename.png')), "#somedata#");

</cfscript>

Error occured while performing write: java.io.FileNotFoundException: (Access is denied)

The path exists and I have tried the following with no success.

1. change CF to run as a different account and add that account with full access to the web dir - no luck

2. modified all accounts to have full access to the web dir - no luck

3. CF sandbox permissions - no luck

4. changed UAC settings to none - no luck

5. added that web dir as an exclude from the virus software - no luck

6. searched google high and low - no luck

nothing seems to work. out of ideas.

anyone else run across this issue? and solve it?

Thanks.

    This topic has been closed for replies.

    1 reply

    Owainnorth
    Inspiring
    March 11, 2010

    Have you tried setting CF to run as Local System (or just System I think it's called in 08) and turning OFF sandbox security?

    I have also experienced wierdies with permissions, try keeping it simple for now - try writing the file to an explicit path, like c:\temp. Then try moving it up a level, and moving it around until you get to your web root.

    O.

    Participant
    March 12, 2010

    yeah it is already running as local system. and I tried moving the file location around. but no luck. I have noticed this seems to be more of a win 7 thing, vista was not as bad as this... thanks for the advice.

    Shane