We were writing a custom workflow activity that was using LINQ (early bound).
Here we had used ILMerge to merge the early bound assemblies with the workflow assembly.
The solution was to place the following attribute in the AssemblyInfo.cs of the workflow assembly (same goes for Plugin Assembly)
The helpful thread
Hope it helps..