BUG in System.Workflow.ComponentModel.Activity class?
Hi All,
I have posted a problem inhttp://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=586644&SiteID=1 ,but I’m still looking for a solution.
I’m creating a workflow generator system and I’m using CodeDom to generate the workflow files (.cs, .designer.cs) andWorkflowMarkupSerializerto generate the .rules file.
If I put the generated files into solution and compile them, my workflow works perfectly, but if I compile them in runtime and insert the generated Assembly into TypeProvider dinamically, the workflow executes some steps and generates a Deserialization error.
I used a reflector in WWF Activity class and analyzing the stackStrack, I saw that the error occurred in Load method when the WWF tried to deserialize an Activity.
Activity class generated by reflector:
...
try
{
if (outerActivity != null)
{
Activity.FillContextIdToActivityMap(outerActivity.RootActivity);
}
activity1 = (Activity) formatter.Deserialize(stream);
Queue<Activity> queue1 = new Queue<Activity>();
I turn off the SQLPersistence and the error continues. Both my workflow and my delegates use the Serializable attributes.
I’m thinking that can be an error in Activity class.
Any suggestions?
Thanks in advance

