How to fix 'Microsoft Excel cannot open or save any more documents'

前端 未结 7 1871
粉色の甜心
粉色の甜心 2020-12-14 08:01

I am running C# ASP.NET 4.5 web application on Windows 7 64-bit using IIS 7.5. The application pool it uses has the name \'ASP.NET v4.0\' and its identity is ApplicationPool

相关标签:
7条回答
  • 2020-12-14 08:11

    Test like this.Sometimes, permission problem.

    cmd => dcomcnfg

    Click

    Component services >Computes >My Computer>Dcom config> and select micro soft Excel Application

    Right Click on microsoft Excel Application

    Properties>Give Asp.net Permissions

    Select Identity table >Select interactive user >select ok

    0 讨论(0)
  • 2020-12-14 08:13

    Right click on the file with file explorer, choose Properties, then General tab and click on the Unblock button. This error message is very misleading.

    0 讨论(0)
  • 2020-12-14 08:16

    Go to this key on Registry Editor (Run | Regedit) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

    change key Cache to something like C:\Windows\Temp

    My similar problem was solved like this.

    Regards,

    Ripley

    0 讨论(0)
  • 2020-12-14 08:17

    If none of the above worked, try these as well:

    • In Component services >Computes >My Computer>Dcom config>Microsoft Excel Application>Properties, go to security tab, click on customize on all three sections and add the user that want to run the application, and give full permissions to the user.

    • Go to C:\Windows\Temp make sure it exists and it doesn't prompt you for entering.

    0 讨论(0)
  • 2020-12-14 08:23

    I had this same issue, there was no issue regarding memory in my server machine, Finally i was able to fix it by following steps

    1. In your application hosting server, go to its "Component Services"
    2. enter image description here

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

    4.Open its properties by right click

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

    Check once again. Hope it helps

    NOTE: But now you may end up with another COM error "Retrieving the COM class factory for component...". In that case Just set the Identity to this User and enter the username and password of a user who has sufficient rights. In my case I entered a user of power user group.

    0 讨论(0)
  • 2020-12-14 08:24

    After giving necessary permissions in DCOM configurations I also needed to change the identity of my application in the IIS to a custom account

    0 讨论(0)
提交回复
热议问题