We have recently setup a new server:
Windows 2003 (Version 5.2)
IIS 6.0
ASP.NET 2.0
Using existing code that previously worked we can't seem to export PDFs from
our Crystal reports anymore (exception below). From past problems we know
the exception typically means that the export destination does not have the
proper security permissions. Normally you have to add NETWORK SERVICE with
permissions but we use Windows Authentication with no anonymous so we simply
add permissions for the user.
To help trouble shoot we have added full permissions for both our users and
the NETWORK SERVICE (with no luck). We also, added full permissions for
these to the temp folder as well (which we expected wouldn't do anything but
had to try).
Furthermore, we currently dump the dataset into the directory via WriteXML
to ensure the user has proper directory access. This succeeds just prior to
running the Crystal Export command.
We really are at the end of our rope on this so any direction at all would
be greatly appreciated.
Exception and stack trace:
------------
Access denied. Error in File
C:\WINDOWS\TEMP \temp_924c10a0-4bd9-40e6-b168-5e40a67d556f
{D09FF055-3EC3-45B7-9FF0-FAA16702420D}.r pt: Access to report file denied.
Another program may be using it. at
CrystalDecision s.ReportAppServ er.ConvertDotNe tToErom.ThrowDo tNetException(E xception
e) at
CrystalDecision s.ReportSource. EromReportSourc eBase.ExportToS tream(ExportReq uestContext
reqContext) at
CrystalDecision s.CrystalReport s.Engine.Format Engine.ExportTo Stream(ExportRe questContext
reqContext) at
CrystalDecision s.CrystalReport s.Engine.Format Engine.Export(E xportRequestCon text
reqContext) at CrystalDecision s.CrystalReport s.Engine.Format Engine.Export()
at CrystalDecision s.CrystalReport s.Engine.Report Document.Export () at
_ExportPDF() in ReportBUS\Repor t.vb:line 1113
TIA,
- Marc Castrechini