on 2014 Oct 07 6:53 PM
Dear friends, first sorry for my English skill.
I am a Student and my teacher required Crystal Report for final Graduated Project; however I do not know how to work with. Try a lot and have lots trouble follow it:
My system:
Visual Studio Ultimate 2013 - project run on .NET 4.5
Crystal Report 13 version 11 (runtime x64) - is support VS2013, right?!
OS: Windows 8.1 Update 2
Database: SQL Server 2014
1. CSC : warning CS1762: A reference was created to embedded interop assembly 'c:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.ReportAppServer.DataDefModel.dll' because of an indirect reference to that assembly created by assembly 'c:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll'. Consider changing the 'Embed Interop Types' property on either assembly.
2. Bobj is undefined
With first warning I cannot deal with it, search and try, still not work; I dont know but maybe is just a warning not affect to my project. But the second one, I find that many people have the same problem, try to fix like anyone (Change ResourceUri, move crystalreportviewers13 to project folder, add reference...) but the error still there; I do not know what to do next, Please help!
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use below code in your web.config to force the application to look for CR viewer files in its own folder:
<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>
There are other reasons for the error. See the blog How do I resolve “'bobj' is undefined” issue?
And there is more. Enter the search string 'crystal net bobj undefined' in the search box in the top right corner.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.