Excel Automation unable to open file

Cannot access the file make sure it exists and you have permission

I was receiving this error while I was implementing excel automation in a WCF service

Oddly all you have to do is create two folders, or one if you are running a 32BIT OS

64 bit

·Windows 2008 Server x64

Please make this folder.

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

32 bit

·Windows 2008 Server x86

Please make this folder.

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

So it would seem that a folder named “Desktop” is required in the systemprofile folder in order that excel automation can open files

Leave a Reply

Your email address will not be published. Required fields are marked *