cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report not working on IIS when "Enable 32-bit application" to True

A6824
Explorer
0 Kudos
188
HI 
We are using Crystal Report as a report in Visual Studio 2022.
We have purchased SAP Crystal Report 2020 for development additionally we installed
Crystal report runtime 32 and 64-bit.
The report is not working when we apply one setting on our IIS server 
"Enable 32-bit application" to true under application pool in advance setting.
We are facing the following error 
"Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc' 
or one of its dependencies. An attempt was made to load a program with an incorrect format."
P2008541278_0-1722922647844.png
Also, we are facing issues with building failed errors.
for this, we have automated our process by using Azure pipeline.
Error:
   ##[error]SGEN(0,0): Error: An attempt was made to load an assembly with an incorrect format: C:\Windows\Microsoft.Net\assembly\GAC_64\CrystalDecisions.CrystalReports.TemplateEngine\v4.0_13.0.4000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.TemplateEngine.dll.
P2008541278_1-1722922708782.png

 

View Entire Topic
DonWilliams
Active Contributor
0 Kudos

What SP are you using? You can get SP 36 from here:

https://origin.softwaredownloads.sap.com/public/site/index.html

See the end of this section on the web.config file, possibly your app is missing it or it's loading the wrong one.

Upgrading a Visual Studio 2008->2022 .NET project with the latest CR .NET SDK packages

So 64 bit AppPool works?

Likely missing 32 bit dependency or permissions.