locked
bobj is undefined RRS feed

  • Question

  • hi experts,

    I have the classic bobj is undefined when loading a page containing a Crystal Report viewer.

    I found several forums talking about this issue, nothing work for me but I think I should start with the exact version to deploy on the win 2008 server 32bit.

    I'm using vs2010 professional 32bit C# and I installed the CR for vs2010 as guided by the semi-automatic installation.

    My CR components on the tools show v13

    I have a crystalreportviewer13 folder in the apps_client folder under the .net 4 folder and I think this is why loading the page with the CR doesn't crash anymore however it doesn't work either, the report stays white and I see the bobj is undefined err.

    I suspect I'm using a wrong CR ver on the server but it says exactly the same servion I see in my web.config file.

    so what to install on the server if anything at all or/and

    how to deploy the support files for this CR version on the server?

    thanks a lot,

    ps

    http://forums.sdn.sap.com/thread.jspa?threadID=1753571

    maybe an environment problem? do I still need to install a

    cr viewer support files on the server?

    Wednesday, February 2, 2011 7:06 AM

Answers

  • I got solution for your problem,Please try to my step by step.
    For my version all seem your.

    1. You need to use Web Application Project,No Website Project because Web App will combine DLL to project also.
    2. Copy C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13 (you'll got it when you install -CRforVS_redist_install_32bit_13_0.exe)   To your project such as  (ProjectName/crystalreportviewers13)
    3. copy this below to your web.config
    3.1
    <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>
    3.2
     <businessObjects>
          <crystalReports>
            <rptBuildProvider>
              <add embedRptInResource="true" />
            </rptBuildProvider>
            <crystalReportViewer>
                  <add key="ResourceUri" value="/crystalreportviewers13" />
          </crystalReportViewer>
          </crystalReports>
        </businessObjects>
    3.4 Publish your web application with FTP Mode to your any folder,and copy this publish to your web server then TEST it!

    Please try to do this,if you have any problem please post your error again,I'll review it in soon.

     Naphong

    Thursday, February 10, 2011 8:23 AM

All replies

  • I got solution for your problem,Please try to my step by step.
    For my version all seem your.

    1. You need to use Web Application Project,No Website Project because Web App will combine DLL to project also.
    2. Copy C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13 (you'll got it when you install -CRforVS_redist_install_32bit_13_0.exe)   To your project such as  (ProjectName/crystalreportviewers13)
    3. copy this below to your web.config
    3.1
    <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>
    3.2
     <businessObjects>
          <crystalReports>
            <rptBuildProvider>
              <add embedRptInResource="true" />
            </rptBuildProvider>
            <crystalReportViewer>
                  <add key="ResourceUri" value="/crystalreportviewers13" />
          </crystalReportViewer>
          </crystalReports>
        </businessObjects>
    3.4 Publish your web application with FTP Mode to your any folder,and copy this publish to your web server then TEST it!

    Please try to do this,if you have any problem please post your error again,I'll review it in soon.

     Naphong

    Thursday, February 10, 2011 8:23 AM
  • thank you thank you thank you :)
    Thursday, June 9, 2011 4:50 AM
  • thanks alot man i had the same problem and it drives me crazy and all my searches for solution return nothing except yours which works perfect, really thanks man :) 
    Saturday, July 16, 2011 7:56 AM
  • Thanks a lot, it worked for me. I have struggled for two days. Now it is working fine. 
    • Proposed as answer by arun_2014 Wednesday, July 20, 2011 4:35 PM
    Wednesday, July 20, 2011 4:34 PM