My setup is as follows:
I have CRN running on my main server, I use this to run reports from both my main server (SQL) and a secondary server (MySQL). Both servers work fine when the reports are run directly from the command line.
The application, calls CRN from PHP, exports the report, and then returns the exported report to the user. This works fine for my Primary Server, however, I get an error when doing this for the ODBC connection (MySQL).
Error / Log is as follows:
[0] => Report loaded successfully
[1] => Database Login done
[2] => Exception: Failed to open the connection. Failed to open the connection.
[3] => invoice 10792_7268_{E38FD6C4-0736-4785-A8B7-347E4D13105A}.rpt
[4] => Inner Exception: System.Runtime.InteropServices.COMException (0x800002F4): Failed to open the connection. Failed to open the connection.
[5] => invoice 10792_7268_{E38FD6C4-0736-4785-A8B7-347E4D13105A}.rpt
[6] => at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
[7] => at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) )
An empty .tmp file is written to C:/Windows/Temp, without any content. It looks to me like a permissions issue that the 'user' which executes the PHP script, doesn't have the correct permissions somewhere - I've opened Temp up to everyone temporarily, but without any joy.
Can someone advise where CRN needs permissions to write to? Or if they've come across the same issue and can advise?
Thanks,