Exception from HRESULT: 0x800A03EC

如果在

window2008 R2 64

位服務器中出現導出

Excel

報表問題:

 

 

DataTable

轉換

Excel

異常:異常來自

 

HRESULT:0x800A03EC 

 

解決方法:在:

 

"C:\Windows\

SysWOW64

\config\systemprofile" 

下創建

 

"Desktop" 

目錄

 

 

 

C:\Windows\System32\config\systemprofile\

 

下創建

 

Desktop

 

目錄

 

 

 

 

Exception from HRESULT: 0x800A03EC 

20

 Aug 2009 

我們新的生產環境

, Windows 2008 64-bit, 

自己寫的一個

 

Windows Service, 

用到了

 

Excel 

 

DCOM 

服務的執行賬戶是

 

SYSTEM

 

但是在執行中報出了一下錯誤

Exception from HRESULT: 

0x800A03EC 

at Microsoft.Office.Interop.Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object 

ReadOnly, Object Format, Object Password, Object WriteResPassword, Object 

IgnoreReadOnlyRecommended, Object Origin, Object Delimiter, Object Editable, Object Notify, Object 

Converter, Object AddToMru, Object Local, Object CorruptLoad) 

Google 

了大半天

總算是找到了問題所在

http://social.msdn.microsoft.com/Forums/en-US/innovateonoffice/thread/b81a3c4e-62db-488b-af06-444

21818ef91?prof=required

 

 

Windows 2008 

如果以

 

SYSTEM 

用戶跑

系統會去尋找

 

SYSTEM 

這個用戶的

 

Profile 

目錄

這個用戶是不能按照交互用戶登錄的

,

而且在處理

 

Excel 

文件的過程中

一個

 

for SYSTEM 

賬戶

 

"Desktop" 

文件夾似乎是必須的

 

Windows 2008 Server x64 

 

 

"C:\Windows\

SysWOW64

\config\systemprofile" 

下創建

 

"Desktop" 

目錄

 

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

Windows 2008 Server x86 

 

"C:\Windows\config\systemprofile" 

下創建

 

"Desktop" 

目錄

 

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章