Crystal Reports in ASP.NET 2.0 Application - Report changes are not displayed

I am developing an ASP.NET 2.0 application that includes Crystal Reports (version 10 included in VS 2005). Initially, the reports worked correctly, both when running from my machine using an ASP.NET development web server and when deployed to an IIS server.

I made some changes to the reports and redeployed the application to the IIS server, but the report changes are not shown when the application starts (although they do appear when I serve the application locally on my machine). Is it possible that the IIS server is caching old copies of rpt files and not clearing them properly? I offered this option to the guy running the server, but he said that he started the application pool again and that didn't make a difference. Any ideas?

+1


source to share


2 answers


The report source object has a caching property (in seconds). I think the default is 60 seconds. You can either shorten this and then run the report again or alternatively you can disable it with another "enableCacheing" property. I've had mixed results with disabling caching, so I usually just use the aspx page to set a property on the report source and lower it for 1 second to refresh the report, then bring it back up after clearing the cache.



0


source


Double check that the new one didn't get renamed somewhere in the process and the code is still referencing the old one.

What happens if you temporarily delete the RPT file on the web server? If you don't get the error, it downloads the report from somewhere else.



Are there subreports?

0


source







All Articles