title: How do I add a custom PersistenceIOParticipant for webserver hosted .xamlx services using the web.config
body: <p>I'm trying to duplicate the functionality below using web.config since I'm using webserver hosted .xamlx services</p>
  
  <pre><code>host.WorkflowExtensions.Add(new HiringRequestInfoPersistenceParticipant());
  </code></pre>
  
  <p>I've tried the following from what I've been able to gather searching, but no satisfaction.</p>
  
  <pre><code>&lt;extensions&gt;
          &lt;behaviorExtensions&gt;
              &lt;add name="sqlTracking"
                   type="ApprovalService.Persistence.HiringRequestInfoPersistenceParticipant, ApprovalService.Persistence" /&gt;
          &lt;/behaviorExtensions&gt;
      &lt;/extensions&gt;
  </code></pre>
  
  <p>Any help would be deeply appreciated.</p>
  
  <p>Here is my updated web.config</p>
  
  <pre><code>    &lt;system.serviceModel&gt;
      &lt;extensions&gt;
          &lt;behaviorExtensions&gt;
              &lt;add name="sqlTracking"
                   type="ApprovalService.HiringInfoElement, ApprovalService"/&gt;
          &lt;/behaviorExtensions&gt;
      &lt;/extensions&gt;
      &lt;services&gt;
          &lt;service name="ApprovalService" behaviorConfiguration="ApprovalServiceBehavior"&gt;
          &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
              &lt;behavior name="ApprovalServiceBehavior"&gt;
                  &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt;
                  &lt;serviceMetadata httpGetEnabled="true" /&gt;
                  &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --&gt;
                  &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
                  &lt;sqlWorkflowInstanceStore connectionStringName="WorkflowPersistence" /&gt;
                  &lt;workflowIdle timeToPersist="0" timeToUnload="0:05:0"/&gt;
                  &lt;sqlTracking/&gt;
              &lt;/behavior&gt;
          &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>This all compiles and runs but the custom persistance object never get's called.</p>