I am totally confused with behavior of SAP Crystal Report which i am using with Visual Studio 2013. When I run my ASP.NET Web Application, I am getting following folder path aspnet_client/system_web/4_6_81/crystalreportviewers13/ instead of C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13. I do not have any such folder found in my IIS 7.5 C:\inetpub\wwwroot\aspnet_client\system_web). Can you please help me on this? due to this i am not able to see the report.
5 Answers
The most robust solution is to create a virtual directory under your application in IIS:
Go to IIS, Right click your application
Add virtual directory Set the physical path to
C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13\
.Set the virtual Path to /crystalreportviewers13
In your web.config file add the following after the root element:
<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>
Then later on in your web.config file, add:
<businessObjects> <crystalReports> <rptBuildProvider> <add embedRptInResource="true" /> </rptBuildProvider> <crystalReportViewer> <add key="ResourceUri" value="~/crystalreportviewers13" /> </crystalReportViewer> </crystalReports> </businessObjects>
It is still an issue. Workaround still seems to have to change the folder version under aspnet_client>system_web>
like;
Before
After
When report pages are blank or stop working just view the source from browser and check system.web
's version from url ../../aspnet_client/system_web/4_0_30369/crystalreportviewers13/js/crviewer/crv.js
.
Here's SAP's website. https://apps.support.sap.com/sap/support/knowledge/public/en/0002250097
aspnet_client
folder (which in my case required administrator permission to do). – NightOwl888