CFDOCUMENT exception error - (write)
Here's the code:
<cfset the_file_name = 'somename'>
<cfdocument format='pdf' filename='D:\Domains\domainname.net\wwwroot\#the_file_name#.pdf' overwrite='true'>
<font face="arial" size="2">Test</font>
</cfdocument>
When I run this, I get the following error:
-----------------------------------------------------------------------------------------
An exception occurred when performing document processing.
The cause of this exception was that: java.security.AccessControlException: access denied (java.io.FilePermission D:\Domains\domainname.net\wwwroot\somename.pdf write).
-----------------------------------------------------------------------------------------
This error, as I understand it, is telling me that the 'write' permissions need to be turned on for the directory in question.
The write permission -are- turned on. I have also tried to use a different directory path in the filename attribute, as well as no path at all, and keep getting the same error. There are no images being used in the generated PDF, so it isn't a problem with not being able to find an image file.
Any ideas why I'm getting the error?
Thanks,
Wheis
