ASP.NET C# - Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space - Microsoft.Office.Interop.Excel
I'm building web application use “Microsoft.Office.Interop.Excel” library to write API response to excel file.
it locally working find but following error occurred in server side .
Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space.
• To make more memory available, close workbooks or programs you no longer need.
• To free disk space, delete files you no longer need from the disk you are saving to.
- office -2019
- .net Framework 4.5
- Asp .net c# mvc
Please any one can help me.
Office Interop was never intended for use in web applications and is not recommended.
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.
Considerations for server-side Automation of Office
Open XML is the recommended option for web applications.
Can it be used for web applications?
Sign in to comment