我有一個web項目(.NET 4)需要訪問Excel文件訪問該文件,但它與以下錯誤消息結束了:Excel不能用IIS7和Windows Server 2008 R2的(64位)
Error occurred during file generation.Microsoft Excel cannot access the file 'D:\xx\xx\abc.xls'.
There are several possible reasons:
• The file name or path does not exist. (Actually it is there)
• The file is being used by another program. (It can not happen)
• The workbook you are trying to save has the same name as a currently open workbook.
在IIS7中,我使用屬於管理員組的「myservice」身份的DefaultAppPool。
在IIS下的我的網站的身份驗證頁面中,啓用了匿名身份驗證並將其設置爲「應用程序池標識」,並禁用了ASP.NET模擬。
搜索小時的解決方案後,我發現以下,但他們沒有工作
有一點很奇怪,IIS_IUSRS組中沒有任何東西。這是正常的嗎?我記得至少有兩個用戶(DefaultAppPool & Classic .NET AppPool)。
我認爲這是IIS的權限問題,但我無法解決它。
指定的目錄是否存在?管理員組是否具有對該目錄的讀,寫,創建等權限? – sarnold
答案是肯定的。 – DerekY
您沒有提及安裝的Excel的版本和位數。 –