I am trying to Use Invoke Code activity in my artifact, but one issue is that when I am trying use any external namespace its giving error. Please help me out how to use Invoke Code activity with some demo artifact , how to import external namespace. I am trying to import Microsoft.Office.Interop.Excel in Invoke code activity.
Please try importing the namespace in the workflow instead. This should make it available within Invoke Code. Have a look at the following post for more details about adding external assemblies to projects:
I had the same problem as santosh.
I imported the namespace Microsoft.Office.Interop.Excel into the workfow, but still this error when executing this line :
Dim appXL As Microsoft.Office.Interop.Excel.Application
Error is :
Main has thrown an exception
Source: Invoke code
Message: Error compiling code
error BC30002: Type ‘Microsoft.Office.Interop.Excel.Application’ is not defined. At line 11
Exception Type: ArgumentException