Solved

.net could not load . . . crystaldecisions.windows.forms

Posted on 2011-02-14
10
451 Views
Last Modified: 2012-06-27
Launching a Crystal Report .rpt file works ffine on dev machine, but when deployed I get a 'could not load . . . crystaldecisions.windows.forms' error when attempting to load the report.

The reference to crystaldecisions.windows.forms is present in the project properties, so I don't see what it is looking for.

I have seen a number of posts indicating that one needs to add a crystal decisions merge file, but I cannot find the merge file; I don't know what the file is called; and I don't know how to include the merge file in the project once I find it.
0
Comment
Question by:mdreed
10 Comments
 
LVL 12

Expert Comment

by:rgn2121
ID: 34889060
Is the Crystal Reports Redistributable installed on the pc you are deploying to?
What version of VS?
0
 
LVL 12

Expert Comment

by:rgn2121
ID: 34889075
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34889107
What version of Crystal are you using?

Which version of VS?

mlmcc
0
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 34889123
Adding the reference to CrystalDecisions.Windows.Forms only tells the computer that DLL is necessary for your program to run, you still need to make sure that DLL is on the computer where you want your program to run.

Check here http://resources.businessobjects.com/support/additional_downloads/runtime.asp, download the appropriate version & install it on your target computer.
0
 
LVL 12

Accepted Solution

by:
rgn2121 earned 500 total points
ID: 34889128
As for adding it as an installation prereq., you should be able to go to your setup project and right-click and choose Prerequisites.  Then select Crystal Reports for....
0
 

Author Comment

by:mdreed
ID: 34889184
rgn2121:

Adding the Prerequisite causes the report to now display properly, but the installation also now presents a Crystal EULA agreement and intall.  Can that be avoided?
0
 
LVL 12

Expert Comment

by:rgn2121
ID: 34889270
To be honest, I don't know.  I would doubt it, since the user would need to agree.
0
 

Author Closing Comment

by:mdreed
ID: 34889777
Works fine now, except for the Crystal EULA that now comes up during install
0
 
LVL 12

Expert Comment

by:rgn2121
ID: 34889855
I have looked around a little bit on this and what you might be able to do is to use something like VbScript to script the install of the Crystal Reports Package.  This way you could do a silent install and the EULA would be accepted by default.

You would have to add a Custom Action or Launch Condition, neither of which I really have familiarity with, but once it is discovered that your client pc needs CR then the script could be kicked off and it would do the installation.

There would obviously be some research required or post another question about what you are trying to do and some of the more experienced experts in that area could probably help.
0
 

Author Comment

by:mdreed
ID: 34889974
Thanks, rgn, I will check it out.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 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