Application doesn't work on another computer (Couldn't load file or assembly)
I run the same exe file on another computer, but it gives error. The application works on my pc, but does not work on user's pc. I try to compile the app in other development machine and it is work well, the problem is my app doesn't work on user's pc.
Could not load file or assembly 'CrystalDecision.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Platform : vb.开发者_如何学运维net(visual studio 2008)
How to solve this error? Do I need to install additional software to the users pc?
You may install Crystal reports redistributable in the user PC. That will make your app will work correctly on user PC.
You may read more and download the relevant redistributable package for you app using the following link:
http://resources.businessobjects.com/support/additional_downloads/runtime.asp#08
Hope this helps...
Sozai,
You are missing CR runtime on users machine. Just install crystal reports runtime on users machine.
Hope this will fix the problem
This assembly CrystalDecision.Shared
is not installed on the other machine and will need to be for it to work.
I have not worked with Crystal for year, but this should work in general.
Add a new Setup project to your solution. It should detect your dependencies, and allow you to build an msi-package for installation that contains the stuff your application needs.
open up the references of your project, and for each Crystal* reference listed, set its “Copy Local“ property to “true“. This will copy the DLLs into your bin folder, and might help distribute them.
Source
精彩评论