locked
Visual Studio 2012 Crystal Report not working on Web server RRS feed

  • Question

  • User-1838371510 posted

    Hello,

    I have created a crystal report in VS2012. it is working properly on local but when i host site on live server then it gives below error.

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


    Thanks,
    Krunal

    Monday, August 11, 2014 6:34 AM

All replies

  • User322452319 posted

    Hi,

    Have you made sure that Crystal Reports Runtime (correct version) has been installed on the live server?

    Wednesday, August 13, 2014 7:58 PM
  • User1176121428 posted

    Hi friend,

    • Go to “C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319″ on the web server.
    • <div>Copy “crystalreportviewers13″ folder & paste it to the application</div>

    • Add Following code to web.config file

    <configSections>
    <sectionGroup name="businessObjects">
    <sectionGroup  name="crystalReports">
    <section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler,
    CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral,PublicKeyToken=692fbea5521e1304,  Custom=null" />
           <section  name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
    </sectionGroup>
    </sectionGroup>
    </configSections>
    
    
    <businessObjects>
    <crystalReports>
    <rptBuildProvider>
    <add embedRptInResource="true" />
    </rptBuildProvider>
    <crystalReportViewer>
    <add  key="ResourceUri" value="~/crystalreportviewers13" />
    </crystalReportViewer>
    </crystalReports>
    </businessObjects>
    
    

    Note: Some times<add key=ResourceUri” value=~/crystalreportviewers13 />work with ~ & in some cases without ~.

    More information:http://adilmca.wordpress.com/2013/04/08/visual-studio-2012-crystal-report-not-working-on-windows-server-2012-0x800a1391-javascript-runtime-error-bobj-is-undefined/

    Hope this can be helpful.

    Best Regards,

    Eileen

    Monday, September 29, 2014 2:36 AM
  • User-1809081266 posted

    Hi thanks for the reply. 

    CR runtime was not installed properly on Server. that solved my error.

    Monday, September 29, 2014 2:42 AM