title: Periodictask not being executed
body: <p>In my WP7 app I am using a periodic task.   </p>
  
  <p>Whe I use the code for debugging to launch the Periodic Task it runs as expected i.e.</p>
  
  <pre><code>ScheduledActionService.LaunchForTest(periodicTaskName, TimeSpan.FromSeconds(60));
  </code></pre>
  
  <p>However when I just add it to the action service it will not execute i.e.</p>
  
  <pre><code>ScheduledActionService.Add(periodicTask);
  </code></pre>
  
  <p>The code is never executed.  Its the same issue as <a href="http://forums.create.msdn.com/forums/t/91617.aspx">http://forums.create.msdn.com/forums/t/91617.aspx</a> </p>
  
  <p>I have downloaded several sample apps and its the same in all of them. As soon as I comment out the LaunchForTest code then the task is not run.  Its the same in the emulator and on the phone.  I have checked the <code>Phone &gt; Settings &gt; Background</code> tasks and my task is there and 'on'.</p>
  
  <p>The only thing I do see is the following in the output window when running in debug via the emulator</p>
  
  <pre><code>The thread '&lt;No Name&gt;' (0xf25003e) has exited with code 0 (0x0).
  </code></pre>
  
  <p>When I am running the ScheduledActionService.LaunchForTest code then I see a similar message, but I also see that assemblies have been loaded etc - and  the code is performed.</p>
  
  <p>Any ideas?  Its very frustrating.  - Thanks!</p>