IIS - CrystalDecisions.Enterprise.Framework - Asked By Abu AS on 04-Apr-12 11:36 AM

NT AUTHORITY\NETWORK SERVICE
   FileLoadException
   Could not load file or assembly 'CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

website is migrated from iis6.0 to  IIS7 .

i am getting this error message , How to fix this ....
[)ia6l0 iii replied to Abu AS on 04-Apr-12 01:03 PM
Two things could be wrong:

a) Crystal reports v12 can be missing on the new web server. 

b) The appropriate account that the code is running under needs permission to write to c:\windows\temp folder on the web/report server. Ensure that permissions are set. 

Hope this helps.

Parag Satpute replied to Abu AS on 04-Apr-12 03:29 PM
The main reasons,
  1. The datasource name is wrong.
  2. The authentication on the SQL database is not set to use SQL authentication and you are passing the SQL authentication username/password via your code.

OR do the below mentioned steps for IIS 7,

  1. In IIS 7, you use Application Pool instead of Network Service. Read here on how to do it, (http://technet.microsoft.com/en-us/library/cc771170%28WS.10%29.aspx).
  2. Whatever pool your app uses needs to be set to "No managed code".
  3. Second, give write permissions to the IUSR account (not IUSER_<MACHINE> or IWAM_<MACHINE>).
Somesh Yadav replied to Abu AS on 05-Apr-12 12:29 AM
When you reference the dll is on the bin directory or in the gac, check the version of the DLL in the GAC. You can always copy the dll into the bin to make sure to know what dll is being called.
 Hope this helps
Jitendra Faye replied to Abu AS on 05-Apr-12 12:36 AM

I believe you are not the only one who has problems when trying to deploy Crystal Report for VS 2010. Based on the error message you had, have you checked:

1. Please make sure you just have one CR version installed on your system. If you do have other CR version installed, consider to uninstall it so that your application is not "confused" about the CR version.


2. You need to make sure you download the correct CR version. Since you are using VS 2010, you need to refer to http:// downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip (for 64 bit machine) or http:// downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip (for 32 bit machine). These two are the redistributable packages. You can download full package from the below link as well via http:// downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe


3. Make sure you setup FULL TRUST permission on your root folder

4. The LOCAL SERVICE permission must be setup on your application pool

5. Make sure the aspnet_client folder exists on your root folder.

If you can make sure all the 5 points above, your Crystal Report should work without any fuss.

Another important thing to not down here is that if you host your Crystal Report with a shared host, you need to check it with them of whether they really support Crystal Report. If you still have problems, you can switch to http://www.asphostcentral.com/, who provides Crystal Report support.

 

Reena Jain replied to Abu AS on 05-Apr-12 12:55 AM
hi

Just found the solution that works for me: Set Crystal Report Basic for Visual Studio 2008 as a Prerequisite.  Do this from the properties of your web setup project.  You will find a Prerequisites button, use that and mark the above item.
Abu AS replied to Abu AS on 05-Apr-12 09:01 AM
Hi ,
 
Thanks for the reply,. How to check it ....

I can find the D:\Program Files\Common Files\Business Objects\2.7\Bin

is there any command to check or Dir structure presence will confirm it ???

Please advise.
Ravinder Jamgotre replied to Abu AS on 11-May-16 06:30 AM
install the 32bit runtime i.e. CRruntime_32bit_13_0_2 msi