Workflow Soluiton

 View Only
  • 1.  Code (Script) Component error: The type or namespace could not be found

    Posted Feb 18, 2015 10:41 AM

    I'm trying to use a dll i downloaded (a file converter, in this use case from xlsx to xls) with my workflow project, but can't seem to make workflow designer reference to the dll/namespace/using. What are the problem-solving steps with the scripting component and namespaces?

    Same problem has been presented (but not discussed) prviously here:

    https://www-secure.symantec.com/connect/forums/adding-dllnamespace-code-scripting-component

    gembox_0.png

    assembly.png



  • 2.  RE: Code (Script) Component error: The type or namespace could not be found
    Best Answer

    Posted Feb 18, 2015 12:21 PM

    You probably need to add the physical Gembox assembly into the Integration project, even if it's in your GAC. If memory serves, its the checkbox in the corner of the Select Integration Type dialog, Load External Assemblies



  • 3.  RE: Code (Script) Component error: The type or namespace could not be found
    Best Answer

    Posted Feb 18, 2015 01:21 PM

    You probably need to add the .dll to the project itself.

    2015-02-18_11-18-26.png

    Afterwards, I would reload the project; I've had issues with custom libraries that have just been added - sometimes they don't register properly as a valid namespace until you reload the project.

    reecardo's response didn't load in for me before I saved - to clarify, my response is pertaining specifically to the Code (Script) Component, and likely does not apply if you're using an integration project for your code.



  • 4.  RE: Code (Script) Component error: The type or namespace could not be found

    Posted Feb 18, 2015 01:42 PM

    Thank you both, this was indeed the issue.