System.Runtime.InteropServices.COMException (0x800A03EC)

后端 未结 7 1245
梦谈多话
梦谈多话 2020-11-29 02:07

Microsoft.Office.Interop.Excel.WorkbookClass.SaveAs() method is working fine on Windows server 2003 and also on XP but not on Windows server 2008. I copied it a

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 02:23

    It 'a permission problem when IIS is running I had this problem and I solved it in this way

    I went on folders

    C:\Windows\ System32\config\SystemProfile

    and

    C:\Windows\SysWOW64\config\SystemProfile

    are protected system folders, they usually have the lock.

    Right-click-> Card security-> Click on Edit-> Add untente "Autenticadet User" and assign permissions.

    At this point everything is solved, if you still have problems try to give all permissions to "Everyone"

提交回复
热议问题