?
Solved

error when running crystal reports in vb.net winforms application

Posted on 2008-11-19
6
Medium Priority
?
454 Views
Last Modified: 2013-11-26
Hello Experts,

I am using crystal repiorts for reporting in a winforms application that connects to an oracle db. The application is working ok but whenever the user tries to run any of the reports available via the reports menu they get the below error:
"Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.2.3600.0,Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."

I have added the Crystal reports 10 NET embedded reporting merge module to my setup project, added the correct keycode in the mergemodule properties. But still get the above error when the application is installed on user machines....any help will be greatly appreciated as this is quite urgent....thanks all in advance.
0
Comment
Question by:drgorsia
  • 3
  • 3
6 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 22996228
Sounds like you have a permissions issue with the temp or virtual directories Crystal uses.

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_23488555.html

mlmcc
0
 

Author Comment

by:drgorsia
ID: 23001978
thanks for the response mlmcc...
i had a look at the link u provided and with that query the user was able to get to the parameter selection of the report....in my case the app throws the error as soon as i try to run the report. additionally since the app in that question was asp.net i dont see how it would be the same with me...as mine is a windows app...i sort of think that its something to do with files/installation of crystal reports runtime on the machine that needs to run the reports...but i'm fresh into the development world and seem to have got stuck here...
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 23005346
It may be you have a mix of CR files installed.

Verify the actual versioin of the files.

mlmcc
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

Author Comment

by:drgorsia
ID: 23011231
the reports are all cr version 10. this is a new application and is currently being tested. The workaround i have found is to manually install the CR runtime via the installation file...this means that i have to install two setup files...which is a little incovenient for the clients...would be all good if i could get everything to work from one single setup file....however i am currently trying to test if adding the x86 merge module for crystal reports 2005 to the deployment project will solve this problem.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 1500 total points
ID: 23014519
Check this document.  Starting on page 434 are instructiions for building the msi for various install methods.

http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf

mlmcc
0
 

Author Closing Comment

by:drgorsia
ID: 31518304
I used the crystal reports x86 merge module and added that to my setup project. The msi file built with this merge module worked ok. Thanks for the pdf file...i located the msm merge module required using the info from the pdf.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month16 days, 6 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question