Here I want Infopath2010 form will appear when I want to start manual Sequential Workflow in visual studio2010.For that I am using Initiation Form(created in Infopath2010) Process. DO anybody have any idea What is the process to attach Infopath form with sequential workflow in visual studio2010


Recently I've wrote step-by-step tutorial how to do this. Check it out here and feel free to ask any questions.

  • Thanx Kai.....But I am facing System.ArgumentNullException Do you have any Idea How canI solve this – akj Mar 27 '12 at 8:46
  • @ashishjoshi, please provide more details about where and how this exception is occurred, stack trace if presented – Sergei Sergeev Mar 27 '12 at 9:03
  • public static SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties(); static XmlSerializer serializer = new XmlSerializer(typeof(AssociationParameters)); static XmlTextReader reader = new XmlTextReader(new System.IO.StringReader(workflowProperties.InitiationData)); AssociationParameters initform = (AssociationParameters)serializer.Deserialize(reader); Here at Stringreader it gives Excepti – akj Mar 27 '12 at 9:09
  • workflowProperties.InitiationData is null for you. Do initiation form appear, when you start workflow on item? Do you specify InstantiationUrl in elements.xml for workflow? When you associate your workflow to a list, checkbox "Start this workflow when a new item is created." should be unchecked. I've just verified my project with initiation form - I changed AssociationUrl to InstantiationUrl="_layouts/IniWrkflIP.aspx", replaced AssociationFormURN with InstantiationFormURN, added workflowProperties.InitiationData (instead of AssociationData) in code and all work fine. – Sergei Sergeev Mar 27 '12 at 9:40
  • I did all the things Properly but It is given erro at the time I Build my sequential Workflow. – akj Mar 27 '12 at 10:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.