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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Own scheduler - but do only have Visual Web Developer / compiling to DLL with CSCOwn scheduler - but do only have Visual Web Developer / compiling to DLL with CSC
Previous
 
Next
New Post
5/11/2009 4:37 AM
 

Thanks very much, now I at least was able to create a .dll file. Anyways the scheduler does not seem to work:

I created the following DoWork() method for testing purpose:

public override void DoWork()
        {
            try
            {
               
                this.Progressing();
                ScheduleHistoryItem.AddLogNote("Start work... ");
                System.Threading.Thread.Sleep(5000);
                ScheduleHistoryItem.Succeeded = true;
                ScheduleHistoryItem.AddLogNote("Worked.");
            }
            catch (Exception exc)
            {
                ScheduleHistoryItem.Succeeded = false;
                ScheduleHistoryItem.AddLogNote("EXCEPTION: " + exc.ToString());
                Errored(ref exc);
                Exceptions.LogException(exc);
            }
        }

In my DNN bin folder I find the myCompany.modules.myScheduler.dll file. I go to Host > Scheduler and add a new scheduler definition pointing to myCompany.modules.myScheduler.components.MyScheduledTaskClassName (I also tried without components and withouth the class name). Anyways, in the scheduler history I cannot find any log entries.

 
New Post
5/11/2009 5:44 AM
 

Okay, I finally got it working:

Make sure that the scheduler definition is entered correctly: You have to enter two parts: (1) namespace.classname, (2) the name of the .dll in the DNN bin folder. Troubleshooting:

  1. namespace.classname and DLL name might differ, in my case it was: namespace MySchedulerModule.Components { ... while the DLL was named OurCompany.Modules.MySchedulerModule
  2. Check the assembly information under the project properties. By default, there could be something like DotNetNuke.YourModuleName or MyCompany.YourModuleName
  3. Entering the scheduler definition, the second part (DLL) has to be entered without the extension .dll
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Own scheduler - but do only have Visual Web Developer / compiling to DLL with CSCOwn scheduler - but do only have Visual Web Developer / compiling to DLL with CSC


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