question

MangalaNamal-4914 avatar image
0 Votes"
MangalaNamal-4914 asked MangalaNamal-4914 commented

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

Hi
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.
Thank you



dotnet-csharpoffice-excel-itprodotnet-aspnet-webformsoffice-online-server-deployment
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

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.



0 Votes 0 ·

Can it be used for web applications?
(Open XML)

Thank you.

0 Votes 0 ·

0 Answers