WF: Check if rule set is defined in the rules file
Today I ran into the following error while creating demos for my WF session:
Error 1 Activity 'policyActivity1' validation failed: Can not find the rule set "Rule Set1". Check if rule set is defined in the rules file. c:\WF\Demos\09 - Rules\PaulGielens.WF.Rules\Workflow1.cs 1 1
First I made absolutely sure that the "Rule Set1" ruleset was properly defined in the rules file. I then found this hint at the Windows Workflow Foundation forum by Serge Luca, and experimented by first creating the state components to validate the rules against before slapping the policy activity on my canvas. No luck whatsoever. Alex came to the rescue and figured that, instead of storing the custom types together with the rulesworkflow in a single file (for the sake of clarity), I should store custom types in separate files. Alex's suggestion solved the problem. Thanks!
This error message is misleading.