Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- What is your product version? 8.1.0
- What is your product type (Angular or MVC)? MVC
- What is product framework type (.net framework or .net core)? >net core
we have deployed the application on a production environment which consists of a web farm, a load balancer and 2 IIS servers (windows server 2019). When trying to export results to Excel, I get an error that the file can't be found or does not exist.
Note that we also have a pre production environment with only 1 IIS server and no load balancer. And export to Excel works fine on this environment.
Do you have any sample code on how to override this behaviour and save the file temporarily somewhere other than cache?
Thanks and Regards
Do you use Redis ? If not, you should switch to Redis, see https://aspnetboilerplate.com/Pages/Documents/Caching#redis-cache-integration. Default memory cache will cause problems in such an environment.