Read Range error: Could not load file or assembly 'CustomMarshalers.dll' or one of its dependencies


#1

Hello,

I am not able to use ‘read range’ activity on my machine. I have used an ‘excel application scope’ with required input file path. But I am getting the below exception. I have tried different file formats with no success.

Read Range has thrown an exception

Message: Could not load file or assembly ‘CustomMarshalers.dll’ or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

Source: Read Range

Exception Type: BadImageFormatException

System.BadImageFormatException: Could not load file or assembly ‘CustomMarshalers.dll’ or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
File name: 'CustomMarshalers.dll’
at System.StubHelpers.StubHelpers.CreateCustomMarshalerHelper(IntPtr pMD, Int32 paramToken, IntPtr hndManagedType)
at Microsoft.Office.Interop.Excel.Sheets.GetEnumerator()
at UiPath.Excel.WorkbookApplication.SetSheet(String sheetName, Boolean createNew)
at UiPath.Excel.Activities.ExcelInteropActivity`1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)


#2

Hey @Anas

Are you using a 32 bit OS?

This usually a 32-bit/64-bit issue.

Your DirectX Version?

Regards…!!
Aksh


#3

Hi @aksh1yadav,
Thanks for the quick reply.

I am using Windows 10 Enterprise 62bit OS. DirectX version: 11.2.
Let me know if you need any more details to help me out.


#4

@Anas, Can you please check the .Net Framework version as well?

It looks something related to it.

Regards,
V