If you are receiving the following error in Native Call that executes an .exe file which uses Microsoft.Office.Interop.Excel services to read an Excel file:
Error in executing NativeCall. Error: Unhandled Exception: System.Runtime.InteropServices.COMException: Microsoft Office Excel cannot access the file 'C:\XYZ.xls'
Follow these steps:
1. Create directory "C:\Windows\SysWOW64\config\systemprofile\Desktop " (for 64 bit Windows) or "C:\Windows\System32\config\systemprofile\Desktop " (for 32 bit Windows)
2. Assign user "Network Services (Service RĂ©seau) " the following rights for folder "C:\Windows\System32\config\systemprofile\Desktop" Read & Execute, List folder contents, Read.
Comments
0 comments
Article is closed for comments.