on 01-09-2015 1:09 AM
I'm unable to open reports in my Visual Studio 2010 project. When loading the report, the code breaks on the following line of generated javascript:
error:bobj.crv.stateManager.setComponentState('ctl00_ContentPlaceHolder_PageBody_CrystalReportViewer_WarrantRequest__UI',eval('('+document.getElementById('__CRYSTALSTATEctl00$ContentPlaceHolder_PageBody$CrystalReportViewer_WarrantRequest').value+')'));
I'm using runtime engine Version 13.0.2000.0. I have set web.config according to the directions in the developer guide and on this blog:
<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="printControl" type="System.Configuration.NameValueSectionHandler"/>
<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>
<section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null" />
<!--<section name="rptBuildProvider" type="System.Configuration.NameValueSectionHandler"/>-->
</sectionGroup>
</sectionGroup>
<sectionGroup name="crystalDecisions">
<section name="serverFileReportManager" type="System.Configuration.NameValueSectionHandler"/>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<crystalReportViewer>
<add key="documentView" value="weblayout"/>
<add key="EnableTextClipping" value="true"/>
<add key="maxNumberListOfValues" value="50"/>
<add key="UseBrowserLocale" value="true"/>
<add key="ResourceUri" value="~/crystalreportviewers13" />
<!--<add key="resourceURI" value="C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETClientFiles\crystalreportviewers13"/>-->
</crystalReportViewer>
<rptBuildProvider>
<add embedRptInResource="true" />
</rptBuildProvider>
</crystalReports>
</businessObjects>
<crystalDecisions>
<serverFileReportManager>
<add key="rootDirectory" value="c:\inetpub\wwwroot"/>
</serverFileReportManager>
</crystalDecisions>
I added the crystalreportviewers13 folder to the project under aspnet_client / system_web / 4_0_30319 / crystalreportviewers13. (This was done automatically when I installed the runtime engine.)
I am running in Windows7 . .NET Framework 4. The build is for AnyCPU.
Thanks for any assistance!
Try searching first, lots of info on that error. And be sure to be on SP 12.
Also, must install the exe on DEV PC, do not install just the redist package.
Must be VS Pro or above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.