943,701 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 12552
  • VB.NET RSS
Oct 23rd, 2008
0

CrystalDecisions.Windows.Forms not found.

Expand Post »
I have a VB.NET application created in Visual Studio 2005. The application uses crystal reports. It works fine on the developer machine, but I am receiving the following error on a client machine:

System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=11.5.3700.0

This is a standalone executable and not distributable application. I tried manually running the crystal reports .net distributable application on the client machine. The file is called "CRRedist2005_x86.msi" and its found under "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports"

This installed several DLL files on the client machine, which I verified and found under the following directory "C:\Program Files\Common Files\Business Objects\2.7\Bin"

However, it did not install the CrystalDecisions.Windows.Forms.dll that is found on my machine under "C:\Program Files\Common Files\Business Objects\2.7\Managed"

I tried copying these files over to the client machine and registering them manually, but it didnt like that either.

Someone please point me in the right direction! Thanks!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
guht is offline Offline
1 posts
since Oct 2006
Oct 24th, 2008
1

Re: CrystalDecisions.Windows.Forms not found.

What you'll have to do is add the prerequisite for Crystal Reports under your setup properties, or project properties depending on if you are using a install wizard or not. If you have a installation project, you can go to Project -> Properties and select prerequisites, and make sure that Crystal Reports is checked. If you are using the regular installer, Go to the project properties, select publish, and go to prerequisites, and make sure crystal reports is checked there. Then when you setup the application on the client machine, make sure you install using the setup file instead of the .msi, and it will install the crystal reports .dll's, either download them, or if you have them packaged, itll go to the location you specified under prerequisites.
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
cellus205 is offline Offline
57 posts
since May 2007
Mar 25th, 2010
1

Something I just encountered

I had this same issue only with a Click Once deployment. The update process that runs every time the program runs (how I have it set up) would not pull down the prerequisite "Crystal Reports for .NET 2005"and yes that fixes the problem. Quick solution was to uninstall and reinstall and that picked up the install for Crystal Reports and the report would run after that. Not a clean solution but one that works. Just a heads up if your using Click Once.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kjohnston is offline Offline
1 posts
since Feb 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: project
Next Thread in VB.NET Forum Timeline: Adding an entry to a database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC