Skip to main content
January 27, 2012
Answered

ColdFusion writing to shared folder on different computer

  • January 27, 2012
  • 1 reply
  • 5477 views

I have a process that has ColdFusion write to a shared folder on a computer that is not processing the request.  When I attempt to refer to the share using the UNC name '\\SERVERNAME\FOLDERNAME\test.txt', ColdFusion throws the following error:

Error occured while performing write: java.io.FileNotFoundException: \\SERVERNAME\FOLDERNAME\test.txt (Access is denied)

ColdFusion has full access to this folder.  However, when I refer to the folder/file locally 'c:/temp/test.txt', ColdFusion has no problem with creating/writing the file.

Is there an issue writing to shared with ColdFusion?

ColdFusion version: 9.0.1

OS: Windows Server 2008 R2

This topic has been closed for replies.
Correct answer Owainnorth

There's your answer then, Local System does not have network permissions. You'll need to run it as a named user, give that user complete control over the CF directory, all website directories and the network share.

1 reply

Owainnorth
Inspiring
January 27, 2012

ColdFusion has full access to this folder. 

The error message would seem to disagree with you

What user is CF running as? No, there is no problem writing to UNC shares.

January 27, 2012

What user is CF running as? No, there is no problem writing to UNC shares.

ColdFusion is running as the Local System I believe.

Owainnorth
OwainnorthCorrect answer
Inspiring
January 27, 2012

There's your answer then, Local System does not have network permissions. You'll need to run it as a named user, give that user complete control over the CF directory, all website directories and the network share.