Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...SchedulerClient in assembly not working/updatingSchedulerClient in assembly not working/updating
Previous
 
Next
New Post
6/21/2010 3:27 PM
 
The tail end of last week, I created a custom scheduler implementing the SchedulerClient class listed below.  It did not work initially when I built out the assembly to DotNetNuke's bin directory, which had me wondering if I had been doing something wrong.  I kept going down the route of doing iisreset and deleting the temporary shadow copies of assemblies, which did not seem to work.  Over the weekend, I come back in, I create a brand new class implementing the code below and it works. 

I then thought to myself, is my older class working?!? Sure enough, as soon as both classes were repushed, the original started to work.  Confused? I sure am.  I then started to work on the actual code I want to implement as the originals were just my prototype, so I changed the timing of the intervals to an hour instead of every minute.  As soon as I did this, an hour later, both schedulers were not working. 

Anyone know what I should be doing to ensure when I put out class libraries implementing the SchedulerClient that they are running and up to date???

public class TestScheduleHistory : SchedulerClient

{

public TestScheduleHistory(ScheduleHistoryItem objScheduleHistoryItem)

{

this.ScheduleHistoryItem = objScheduleHistoryItem;

}

public override void DoWork()

{

try

{

this.Progressing();

//SchedulingProvider.Instance().PurgeScheduleHistory();

this.ScheduleHistoryItem.Succeeded = true;

this.ScheduleHistoryItem.AddLogNote("Schedule history test worked! Joseph Baggett");

}

catch (Exception exception1)

{

// ProjectData.SetProjectError(exception1);

Exception objException = exception1;

this.ScheduleHistoryItem.Succeeded = false;

this.ScheduleHistoryItem.AddLogNote("Schedule history test failed. Joseph Baggett" + objException.ToString());

this.ScheduleHistoryItem.Succeeded = false;

this.Errored(ref objException);

Exceptions.LogException(objException);

//ProjectData.ClearProjectError();

}

}

public void EmailEventLogMessages()

{

StringBuilder eventLogMessage = new StringBuilder();

try

{

if (!String.IsNullOrEmpty(eventLogMessage.ToString()) && eventLogMessage.ToString().Length > 0)

{

 

}

}

catch(Exception ex)

{

this.ScheduleHistoryItem.Succeeded = false;

this.ScheduleHistoryItem.AddLogNote("EmailEventLogMessages failed. " + ex.ToString());

this.ScheduleHistoryItem.Succeeded = false;

this.Errored(ref ex);

Exceptions.LogException(ex);

 

}

}

}

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...SchedulerClient in assembly not working/updatingSchedulerClient in assembly not working/updating


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out