Dears,
We have a reporting application using .NET 4.0 and Crystal Reports .NET SDK 2011. The application is hosted from IIS 7.5 in Windows Server 2008. I have a separate application pool and separate site to host this application.
We have two environments.
The reports connect to Oracle database 11g to pull data. The code base is same in both environments and report files are exact same. All the reports were originally developed using Crystal Reports 10 many years back. They were upgraded to 2011 version using Crystal Designer 2011 and saving them.
Recently one report stopped working in one environment while the same report continued to run from the other environment. I had no other way, but to attach Visual Studio 2010 debugger to the IIS process hosting the application. That revealed that the line of code where the report document object was loading the rpt file (reportdocument.load(rpt file path)), was taking forever. That obviously caused the application to behave weirdly.
Then I attached the debugger to the environment where the report is working and it took 2-3 seconds to load the RPT file. That surely helps in determining the point of failure.
Please remember that the code base is same in both environments and the rpt file is also same in both environments and this issue is happening to a specific report. All other reports are running fine in both the environments.
I am not really sure how to proceed and looking for some expert advice here..