The hunt for the error in the Workflow.Targets

Have you ever built a K2 Workflow only to get a really helpful error pointing toward Workflow.targets? A source code file and line number would be a big help – especially when it’s something like the use of an unassigned variable.

The solution isn’t obvious – simply right click on suspect events and view the code (having the XOML file open is fine – no need for individual CS files). When you build with the XOML open you will get two errors for each real error – one will point to Workflow.targets and the other to the actual file (line number and everything).

This entry was posted in K2, Top Hacks. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>