Vb.net code debug

I have invoke code that has vb.net code throwing an exception.

How to debug this code and fix the issue? The exception is not showing any reason.

thanks a lot

Hi,

Can you check content of $exceptionDetails at Locals panel when error occurred in debug mode? There will be detailed information about it.

Regards,

1 Like

@Yoichi

RemoteException wrapping System.ArgumentException: No compiled code to run

error BC31539: Cannot find the interop type that matches the embedded type ‘Microsoft.Office.Interop.Excel.Application’. Are you missing an assembly reference? At line 1

error BC31539: Cannot find the interop type that matches the embedded type ‘Microsoft.Office.Interop.Excel.Workbook’. Are you missing an assembly reference? At line 2

error BC30002: Type ‘Microsoft.Office.Interop.Excel.Worksheets’ is not defined. At line 3

Hi,

It may be similar issue with the following topic.

For now, can you try to add Assign activity like the above post?

Regards,

@Yoichi

Could not fix the issue. Looking for pointers. Thank you,

Does the Assign activity throw the same error?

o is what data type? I am getting an error saying that System.Text.Encodings.Web.JavaScript…cannot be converted to String type.

thank you

@A_Learner

Can you please show which code is throwing error or tell what youa re trying to do

cheers

1 Like

I have invoke code.
Using some microsoft.office.interop.excel for doing some excel.
.
Thank you,

@A_Learner

Check in imports panel if all the assemblies are imported

Cheers

Hi,

The above post is just sample.
Can you try as the following?

 o = New Microsoft.Office.Interop.Excel.Application()

o is object type.

Regards,

upgrading packages automatically fixed the issue. Hope not to see the errors again. thank you.

1 Like