on 11-12-2015 8:26 AM
Hello,
I have a website in VS2013 and I have created a Crystal Report witch work in development environment but when I deployed it to server I get a blank page. I know there is a lot of information about this error but I’ve tried all I’ve read and don’t work.
My development machine:
Windows 8 64 bits. VS2013 with Crystal Report (13.0.13.1597). 32 bits
Server machine:
Windows Server 2012R2 64 bits
Crystal Report (13.0.13.1597). 32 bits
I have copied the folder "aspnet_client\system_web\4_0_30319\crystalreportviewers13" to my website folder.
I have added to my web.config the following elements:
<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"></section>
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<rptBuildProvider>
<add embedRptInResource="true"/>
</rptBuildProvider>
<crystalReportViewer>
<add key="ResourceUri" value="/aspnet_client/system_web/4_0_30319/crystalreportviewers13"/>
</crystalReportViewer>
</crystalReports>
</businessObjects>
<appSettings>
<add key="vs:EnableBrowserLink" value="false"/>
</appSettings>
I have checked with browser developer tools that all files are served (crv.css, style.css …)
I have configured IIS to run 32 bits applications.
I have developed an application running as a service (VB.NET) in the server that create the same report and export to PDF and works.
In the web application, I have tried export the report to a PDF and send it to browser and don’t use the Crystal Report Viewer with the same result. I can see the pdf in the development machine, but not in the server.
Can anyone help me? I appreciate your help.
Thanks.
For Win 2012, I'd recommend SP 15:
Now, what converns me is that you appear to say that both the CR viewer and the PDF export show up as blank?
If you simply export the PDF to a file and then view the file in Adobe, does it have contents then? I'd suspect not in which case this may be a data issue(?).
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on Twitter
Got Enhancement ideas? Use the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Yes, with CR viewer and PDF export I get the same result, a blank page (doesn’t create a pdf file).
I have installed SP15 in the server (13.0.15.1840).
For testing, I have created a simple asp page with a label and the CR viewer. On init page, I have tried to load the report (without populate data) and if some exception happens I put the message on the label.
Dim rpt As New ReportDocument
If System.IO.File.Exists(pServerPath & "Report\Incidencia.rpt") Then
rpt.Load(pServerPath & "Report\Incidencia.rpt")
CRViewer.ReportSource = rpt
End If
In development machine works and I can see the report, empty, but with logos, labels, etc.
In the server I get the message exception: “Load Report failed” and the InnerException is “Invalid file name” (both messages are in Spanish but says more or less the same). I thought it was a permission issue on the temp folder, but in C:\Windows\Temp I can see the temp file “Incidencia 4648_3784_{666D3184-EB61-4C51-B2C3-FA684112F59E}.rpt”.
Thanks.
Edit;
I answered myself. At the end it was a permission issue, I have been talking with my colleague who manage the server and change the temp folder to full control and all works.
Thanks for your help.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.