'EnvironmentLocationReference' is not of type 'InternalState'. When loading this instance you must ensure that the activity with name 'EnvironmentLocationReference' implements 'InternalState'.
Please help to resolve this.
Getting Exception in workflowapplication wfapp=new workflowapplication(new workflowDefinition); wfappp.Load(wfId, new TimeSpan(0, 0, 5));
wfid(workflow id) which is saved in persistance database