title: How to REpublish Custom Task Forms (InfoPath) to SharePoint 2010 State Machine Workflows
body: <p>I am new to SharePoint. Sorry if answer to my question is obvious.</p>
  
  <ol>
  <li>I've create Custom Task Form in InfoPath and publish it (File/Publish/Network Location [Form Template Path and filename='MYPROJECT/Forms/ApprovalForm.xsn'; Form template name='ApprovalForm'], in the next window I've cleared Public URL according to the article <a href="http://www.codeproject.com/Articles/195348/SharePoint-2010-State-Machine-Workflows-with-Custo" rel="nofollow">http://www.codeproject.com/Articles/195348/SharePoint-2010-State-Machine-Workflows-with-Custo</a>). </li>
  <li>After it I've added module Forms, and added ApprovalForm.xsn from the existing items. </li>
  <li><p>My xml files:
  Elements.xml    </p>
  
  <pre><code>&lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
     &lt;Workflow
         Name="Order New Server"
         Description="My SharePoint Workflow"
         Id="482cbc86-b717-4981-a49a-3cf4c89e9399"
         CodeBesideClass="Myproj.OrderNewServer.OrderNewServer"
         CodeBesideAssembly="$assemblyname$" 
         TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"&gt;
     &lt;Categories/&gt;
     &lt;AssociationData&gt;&lt;Data&gt;&lt;/Data&gt;&lt;/AssociationData&gt;
     &lt;MetaData&gt;
        &lt;AssociationCategories&gt;List&lt;/AssociationCategories&gt;      
        &lt;Task2_FormURN&gt;urn:schemas-microsoft-com:office:infopath:ApprovalForm:-myXSD-2012-03-09T14-11-55&lt;/Task2_FormURN&gt;
        &lt;StatusPageUrl&gt;_layouts/WrkStat.aspx&lt;/StatusPageUrl&gt;
     &lt;/MetaData&gt;
    &lt;/Workflow&gt;
  &lt;/Elements&gt;
  </code></pre></li>
  </ol>
  
  <p>Feature.Template.xml:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8" ?&gt;
      &lt;Feature xmlns="http://schemas.microsoft.com/sharepoint/" ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Receiverlass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"&gt;
      &lt;Properties&gt;
        &lt;Property Key="GloballyAvailable" Value="true" /&gt;
        &lt;Property Key="RegisterForms" Value="Forms\*.xsn"/&gt;
      &lt;/Properties&gt;
     &lt;/Feature&gt;
  </code></pre>
  
  <p>My form work fine, but when I make changes and republish it, it doesn't update (I see old form). 
  What I tryed:</p>
  
  <ol>
  <li>IISReset</li>
  <li>Clear all cookies and cache in IE</li>
  <li>Retract solution, restart VS2010, reboot computer.</li>
  <li>Change assembly number, guid.</li>
  </ol>
  
  <p>I have no ideas, what can I try for republish my form with changes.</p>
  
  <p>Thank you in advance for any suggestions.</p>
  
  <p>PS: sorry for my writing. English is not my native language.</p>
  
  <p>PPS: when I save new Form to new location and add it to the project, it works.</p>