Monday, 30 July 2012

Excel Interop : System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Office Excel cannot access the file


Introduction

System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Office Excel cannot access the file 'D:\sunil\sunil.xls. There are several possible reasons: • the file name or path does not exist. •
This error occur on widows server 2008 r2 64 bit

 
Solution
Create folder Desktop.
Create directory "C:\Windows\SysWOW64\config\systemprofile\Desktop” (for 64 bit Windows) or "C:\Windows\System32\config\systemprofile\Desktop” (for 32 bit Windows)


1 comments:

Carlos said...

Thanks for you help.....
It is magic >< I spend a few hour to fix this error

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Powered by Blogger