CallExternalMethodActivty with Input Parameter as Delegate

Hi,

I needed to set a delegate as value for input parameter on CallExternalMethodActivty. It gives me "Object reference not set to an instance of an object." error if I try to set the refferance to Instance of the delegate.

Is there a way to set refferance of Parameter value at runtime

Or is there any attribute by which i can set a Delegate ref at Design time



Answer this question

CallExternalMethodActivty with Input Parameter as Delegate

  • lufa

    Hi,

    This sounds very similar to a known issue in our Beta2. Is your Delegate type defined in the same assembly as the workflow If so, try defining it in a separately compiled assembly.

    If this does not address your issue, you can try setting the property yourself by bypassing the designer. Open the .Designer.cs file in your project, find the activity whose input parameter you want to set, and do it yourself. I suspect that this is an issue with the designer itself.

    Hope this helps!

    Angel



  • CallExternalMethodActivty with Input Parameter as Delegate