Link to home
Start Free TrialLog in
Avatar of Overtonp
OvertonpFlag for United States of America

asked on

Crystal Report Viewer: Could not load file or assembly Error message

I have a .net application I created which allows users to select a crystal report located on a toolbar and launch it using the crystal viewer.  This all works fine on my pc,  however when I move the bin contents to another pc,  an error comes up saying it could not load file or assembly CrystalDecisions.ReportAppServer.Clientdoc (see attachment).

All my crystal references are set to "copy local" = true.

I decided to add msgboxes to track down when this error procs and the culprit turns out to be the following line.

 rptfields = mycaller.CrystalReportViewer1.ParameterFieldInfo()

Keep in mind this all works fine on my pc,  any other computer and the error appears.  I assume it is happening due to the missing .dll file,  but I can't seem to find the reference to properly copy it to local.  Anyone know why this could be happening?
Error-msg.JPG
References.JPG
SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike McCracken
Mike McCracken

What version of Crystal?

What dod you install on the server?

mlmcc
Avatar of Overtonp

ASKER

Thanks guys.  I found the runtime file tanks to that link, works great now.