cancel
Showing results for 
Search instead for 
Did you mean: 

Load Report Failed in Azure Kubernetes docker container

aesopf62605
Explorer
0 Kudos

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:

Accepted Solutions (1)

Accepted Solutions (1)

DellSC
Active Contributor
0 Kudos

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

Answers (0)