Click here to Skip to main content
15,911,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We have developed a website and for viewing reports we used Crystal Report for that.
Its working perfect in development environment (local system), but when hosting over Production server (Web server) crystal reports are not working properly.The error is bobj is undefined.We have copied the crystalreport13 in C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319.
Modified the root web config file to

XML
<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"/>
                  <sectionname="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"></section>
            </sectionGroup>
      </sectionGroup>
</configSections>



XML
<businessObjects>
      <crystalReports>
            <rptBuildProvider>
                  <add embedRptInResource="true"/>
            </rptBuildProvider>
            <crystalReportViewer>
                  <add key="ResourceUri" value="~/crystalreportviewers13"/>
            </crystalReportViewer>
      </crystalReports>
</businessObjects>



But No use.
Posted
Updated 16-Oct-13 1:32am
v6
Comments
Nelek 16-Oct-13 6:03am    
And you really expect that with this info we know where is the problem... don't you? There are thousands of ways to screw things up, how are we supposed to know which one did you choose? Please read: What have you tried?[^]
Tejas Vaishnav 16-Oct-13 6:04am    
Have you got any error? or what is the message you got over your production server when you try to view crystal reports?
karthik413 16-Oct-13 6:43am    
'bobj' is undefined

 
Share this answer
 
Comments
karthik413 16-Oct-13 8:03am    
Is it works for vs-2010 and cr13 ?
mprakash12 16-Oct-13 8:11am    
for VS 2010

http://www.4shared.com/file/xuqTAlue/CRRedist2010_x86.html

http://www.4shared.com/rar/uv-S6fgi/CRRedist2010_x64.html
By commenting the below line. crystal report working perfectly.

XML
<add key="ResourceUri" value="~/crystalreportviewers13" />
 
Share this answer
 
v3
Is there any error message that you see? Could you please kindly check once again that CR has been installed preoperly on your server? Then, please check this point too:

1. Please make sure that you run it on Local Service identity.
2. Copy CRViewer and aspnetclient folder to your site
3. Please dont forget to grant full permission.

Hope it helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900