Link to home
Avatar of mattolan
mattolanFlag for Canada

asked on

business objects, Crystal Reports, .net, c#, .Net Crystal Reports, IE7, An communication error occured. Printing will be stopped

we have a number of crystal reports that all of a sudden will not print, the reports all run fine, but when you attempt to print you get the following error "An communication error occured. Printing will be stopped"

if you run a report through visual studio the innerException shows "Load Report Failed." [System.Runtime.InteropService.ComException] "Access is denied.\r"
error code -2147467259

Stack Trace
   at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

a google search show lot of other people with the same error when trying to print, but no solutions and very few responces?

Help!
Avatar of frodoman
frodoman
Flag of United States of America image

Are you using Windows Server 2003?  If so, make sure Network Service has access to all of the following:

Crystalviewers virtual directory
Windows Temp folder
Your application directory

I've seen this where your app is running in an application pool with appropriate permissions but when exporting / printing the Network Service identity needs to access the same resources and doesn't have the necessary rights.

frodoman
Avatar of mattolan

ASKER

Yes it is Server 2003, The Network service does have access to these locations, but I still get the error, I have a second site that also runs crystal reports and the reports will work for most people, but certian people (like myself) are getting this error on this site as well
I would recommend you download the free FILEMON utility from Microsoft - this will monitor all file access on the server and you'll be able to see where the access is being denied and from what user context.  It is a standalone executable so there's nothing to install on the server - just run it from the desktop and delete it once you're finished.

This tool has been a great help to me in finding permissions issues on Win2k3

frodoman
We have tried this and it is locking on the global print driver in crystal,
Avatar of Marcus Aurelius
Update all of your Crystal Print drivers,...perhaps one is corrupt or outdated.

MIkeV
how do I update the crystal print drivers?
install latest Crystal Version...what version are you currently running? Do you have IX..R2?
don't know what IX..R2 is, I am running the the visual studio .net 2005 version, and when I check for updates on the crystal components it says it is up to date
Avatar of Mike McCracken
Mike McCracken

The print drivers are installed from the OS.

mlmcc
mlmcc: the crystal print driver is seperate from the OS, it is embedded into the crytal app
ASKER CERTIFIED SOLUTION
Avatar of mattolan
mattolan
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator