Path resolved to Referenced activity Property does not match the Target Type, Workflow Foundation Designer Bug
Just this morning I got this really helpful error when trying to bind to a Custom Activities Dependency Property.
Path resolved to Referenced activity Property 'MyProperty' whose PropertyType 'MyNamespace.MyCustomType ' does not match with the Target Type 'MyNamespace. MyCustomType'.
Basically the error says you can’t bind a property of type Type1 to a property of type Type1. Makes sense really.
Fortunately I was able to find some help on the InfoSupport blog.
The suggested solutions were:
1. Clean Solution
2. Close Visual Studio and Reopen the Solution again
3. Go run %temp% and delete all files.
In reality the only definitive fix for this is to Close Visual Studio and reopen the Solution again.
Hopefully this will be fixed in Visual Studio 2010.