Hello, I am developing a web app that has reports created on VS 2019 and run fine from developer mode, but when I publish the website I get "Database logon failed" Error. Database server is on different server that development and production machine. The error is throwing in line
cryRpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
Note that I have the same version of crystal reports installed to developer and production machine and aspnet_client folder is on wwwroot and 32-bit Application is enabled on Application Pool. I also changed Identity to Administrator (Application Pool --> Advance Settings) and back to ApplicationPoolIdentity, since it didn't work. I try connecting from IIS Server to database server using the reports credentials to check if I have access and there is access. Development machine: Windows 10, Visual Studio 2019, Crystal Reports v4.0.30319 Production machine: Windows Server 2012 R2, Crystal Reports v4.0.30319 What could be causing this? Thank you in advance. This is my code: