Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

Need help developing scheduled task

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
jncraig
Posts:79



03/25/2007 6:23 PM  
I'm trying to develop a simple scheduled task.

To get started, I created a SimpleScheduledTask.vb based on the code in the Professional DNN book.  I've removed the worker guts of the class, and just want to go through the mechanics of installing and running the scheduled task.  Once I've done that, I'll work on the innards of the task that I need.  First, though, I want to go through the steps of creating the task an installing it.

So ... I've got my .vb file.  What do I do to compile it into a .dll file?

Then, is my understanding that I just drop that .dll into the DNN bin directory correct.  I can then select it and schedule it?

Thanks for any help!
John Mitchell
Posts:3248



03/27/2007 9:22 AM  
Yes, you need to compile it into a DLL. If you are using Visual Studio then you would first create a class library project and include your VB file in that project. Make sure you set the root NameSpace on the project to blank.

After that then you place that DLL in the /bin folder and then enter the scheduled task using the DNN interface.
jncraig
Posts:79



03/27/2007 10:17 AM  
Can you give me just one little hint on how to compile to create the DLL. I'm using VS2005. I'm not used to creating DLLs.
John Mitchell
Posts:3248



03/27/2007 10:31 AM  

After you have the project created you just need to go to the Build menu and select Build "Your Project Name"

Here are some other resources for beginning developers:

http://msdn.microsoft.com/vstudio/express/beginner/default.aspx

I highly recommend a subscription to this site:

http://www.learnvisualstudio.net/Default.aspx

 

 

jncraig
Posts:79



03/27/2007 12:20 PM  
Thank you, John!

I've been to the Microsoft site, but the learnvisualstudio.net site is new to me. I suspect that I'll be a lifetime member very shortly.

In the meantime, my brain clicked into gear and I was able to create the DLL. Your hint so set the root NameSpace to blank is a lifesaver, though. That isn't mentioned in the Professional DNN book and I'm sure that, without your help, I'd have beat on this one forever! My sheduled task -- the simple one that merely starts and ends -- is running on schedule!

Thanks for helping me learn to fish!
John Mitchell
Posts:3248



03/27/2007 12:32 PM  
Excellent! I'm glad I could help.
jncraig
Posts:79



03/27/2007 6:01 PM  
Actually, I'm getting better and more prompt answers from you than from the entire DNN forum website. I hope that I don't wear out my welcome, because I know now where to ask questions!
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > Need help developing scheduled task



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information