on 03-15-2023 10:00 AM
I am trying to host an webAPI application in IIS to generate crystal report with crystal report runtime in Azure Kubernetes Service window docker image. I have installed the crystal report runtime into the container and the application has access to the report file but it encounter "Load Report Failed" error when loading the report file.
Docker Image : mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
Crystal Report Runtime: CRRuntime_64bit_13_0_12.msi
IIS version: 10
Error Message:
Extended Properties:
[Error] [Server] [2/22/2023 10:40:59 AM] - [] Load report failed.
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at BusinessLayer.Report.CrystalReportProcessor.LoadReport(ReportDefinition report) in C:\app\CrystalReportWebAPI\BusinessLayer\Report\CrystalReportProcessor.cs:line 170
at BusinessLayer.Report.CrystalReportProcessor.GenerateReport(TaskRequest task) in C:\app\CrystalReportWebAPI\BusinessLayer\Report\CrystalReportProcessor.cs:line 50
at CrystalReportWebAPI.Controllers.ValuesController.Get() in C:\app\CrystalReportWebAPI\Controllers\ValuesController.cs:line 37
Priority: -1
EventId: 0
Machine: MOS-WEBAPI-CRYS
App Domain: /LM/W3SVC/1/ROOT-1-133215355021289922
ProcessId: 51524
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:9
Extended Properties:
I don't know whether this is the issue, but you're using a very old version of the SDK and runtime - SP12 - that is no longer supported or available. The current SP is 33.
Depending on which version of Windows Server your container is running on, the version that you're using may not be compatible, which would cause this problem.
I highly recommend that you go to the Crystal for VS wiki to get the latest version of the SDK. You'll need to get the "Installation Package" .exe file for integration with VS and the matching runtime to install as part of your deployment. Pay attention to the instructions in the wiki for how to install the .exe. Also, you will have to make some code changes - under "Related Documents" in the wiki, there is a link to a blog about how to upgrade your application.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.