-1

While downloading excel from Asp.net application its shows the following error [![enter image description here][1]][1]

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: 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.

[COMException (0x800a03ec): Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space.

Hari
  • 11
  • 1
  • 11

1 Answers1

0

Original

1.In your application hosting server, go to its "Component Services"

2.Find "Microsoft Excel Application" in right side.

3.Open its properties by right click

4.Under Identity tab select the option interactive user and click Ok button.


Fixing permissions (Windows server 2008)

A.Windows 2008 Server x64

Please create this folder:

  • C:\Windows\SysWOW64\config\systemprofile\Desktop

And give write permissions to the "IIS AppPool\DefaultAppPool" user in those folders:

  • C:\Windows\SysWOW64\config\systemprofile\Desktop
  • C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Microsoft
  • C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Microsoft

B.Windows 2008 Server x86

Please make this folder:

  • C:\Windows\System32\config\systemprofile\Desktop

And give write permissions to the "IIS AppPool\DefaultAppPool" user in those folders:

  • C:\Windows\System32\config\systemprofile\Desktop
  • C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft
  • C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft
Community
  • 1
  • 1
Ryan Peters
  • 180
  • 9
  • I hosted the website in IIS server.There is not option like Excel Application – Hari Sep 12 '16 at 11:44
  • I changed in dcomcnfg bt when i select interactive user.when i click that button it takes me to the login page of my application – Hari Sep 12 '16 at 11:46
  • You may want to review the other solutions provided in the Original thread I linked to. – Ryan Peters Sep 12 '16 at 12:43
  • [COMException (0x800a03ec): Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space. – Hari Sep 13 '16 at 07:03