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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...Custom scheduled task without DLL reference?Custom scheduled task without DLL reference?
Previous
 
Next
New Post
8/9/2011 8:23 AM
 
I posted this thread: http://www.dotnetnuke.com/Resources/F...
in the getting started section some time ago (2 weeks ago). However I never got an answer, not even a reply to it. I'm posting it here again in the hopes of people who do have the knowlegde checkin these subforums.

Steven wrote:
When using the DNN scheduler one must enter the full class name, followed by a comma and then the name of your DLL.
I just have a module and a custom scheduled task file in one of my DNN folders. I did not create a seperate project for it. For the module this is no problem, for the scheduled task it seems like it is?

Just entering the full assembly name and leaving out a DLL name does not seem to do the trick. How do I get it to work without having a seperate DLL?

 How can I do it?

 
New Post
8/10/2011 11:31 AM
 
Hi Steven,

The default DotNetNuke scheduler implementation utilizes the BuildProvider.GetType(string, bool) method when mapping the schedule type string to underlying type (see the GetSchedulerClient method of the ProcessGroup class located at Providers/SchedulingProviders/DNNScheduler/ProcessGroup.cs).  Because of this, any string that that results in a valid type when passed to this method should work with the scheduler (assuming it also implements the proper interface).

The documentation associated with this method indicates that any assembly-qualified type name is acceptable (as you noted in your original post) along with an unqualified type drawn from one of the App_GlobalResources, App_WebReferences, App_Code, or App_Browsers directories.  If you wish to use a type that cannot be assembly-qualified, it will need to be located there.

An alternate option would be to create a custom scheduling provider.  While DotNetNuke supports this, I would recommend against it unless you are very familiar with asynchronous, thread-oriented development.

Hope this helps!

Brandon 

Brandon Haynes
BrandonHaynes.org
 
New Post
8/11/2011 4:51 AM
 
Hi Brandon, thanks for your reply!

I just made a small test and it works. The previous test was located in the DesktopModules folder, so that was the problem. Once created in the App_Code folder the task executes succesfully. Thanks for the crucial tip :)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...Custom scheduled task without DLL reference?Custom scheduled task without DLL reference?


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