Search code examples
asp.netcrystal-reports

Crystal Report error : Could not load file or assembly While loading in asp.net Webconfig file


In My project i use Crystal Reporting which give error on loading my asp.net website. Error in my web.Config like

enter image description here

When i remove these three assemblies (Controller, DataDefModel and ClientDoc) from my web config the error show

 Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified

please guide me if any one solve this error. Thanks in advance


Solution

  • If you haven't already done so, you need to install the Crystal reports for developers with the appropriate runtime level.

    You need the one for developers (Visual Studio) on your development machine, and the redistributable on the target machines. The direct downloads can be found at CRforVS_redist_install_XXX, directly from here (version 13 32bit) and here (version 13 64bit)

    Note: after installing it, you'll need to check the version number in your web.config file to ensure it matches what's been installed. The SAP site says:

    As most of CR/RAS .NET Assemblies are now re-versioned from 13.0.2000.0 to 13.0.3500.0, user MUST remove all old CR assemblies from Reference list and add the new version of CR assemblies, then rebuild the application.