If you use a periodic background agent and you test it using the method LaunchForTest, you must make sure that you do not call this in your version of the code assembly.
Protect it with appropriate conditional compile time checks:
#if DEBUG
ScheduledActionService.LaunchForTest(periodicTaskName, TimeSpan.FromSeconds(1));
#endif
, DEBUG "", "Release" .
, , , , . , ...