Skip to main content
Participating Frequently
December 21, 2017
Answered

After upgrade to ColdFusion 2016 file access denied?

  • December 21, 2017
  • 1 reply
  • 1682 views

Hello everyone,

We have upgraded our development server from CF10 to ColdFusion 2016 today. While I was testing our system I notice that every report couldn't be accessed. I have checked the folder on the server and files are in there. I tried to use this code to test and access the files:

<cffile action="read" file="\\testsite\testsite_d\test.xlsx" variable = "fileContent">

After I run code above error message showed on the screen:

Message\\testsite\testsite_d\test.xlsx (Access is denied)     
DetailThe cause of this exception was: java.io.FileNotFoundException: \\testsite\testsite_d\test.xlsx (Access is denied).     

I'm not sure why files can't be accessed. Everything worked fine before we did the upgrade. If anyone knows how to fix this problem please let me know.

Thank you.

This topic has been closed for replies.
Correct answer Dave Watts

Running ColdFusion as a specific user

Dave Watts, CTO, Fig Leaf Software

1 reply

Community Expert
December 21, 2017

My guess is that the previous version of CF was configured to run as a specific user account, and the new version is running as SYSTEM. In general, to access network shares, you need to run as something other than SYSTEM.

Dave Watts, CTO, Fig Leaf Software

Dave Watts, Eidolon LLC
Participating Frequently
December 21, 2017

Hello Dave,

Thanks for your time and help. I'm not familiar with setting permissions and where that should be fixed. Can you provide any information where I should be looking for to fix this problem?

Thanks in advance.

Dave WattsCommunity ExpertCorrect answer
Community Expert
December 21, 2017

Running ColdFusion as a specific user

Dave Watts, CTO, Fig Leaf Software

Dave Watts, Eidolon LLC