Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Scheduler does not start
Previous Previous
 
Next Next
New Post 5/16/2008 10:32 AM
Unresolved
User is offline zoran
8 posts
10th Ranked


Scheduler does not start 

Hi Everyone!

I need some help with the scheduler! I can't get it to run. I created a class simular to the sample in the documentation!

All this is clear to me but what do I have to do with my donnetnuke setup.

Do I have to update my web.config file?

What compiled files do I have to copy to the bin folder(they all look weired to me)!

 

My Class:

-------------------------------------------------------

Imports Microsoft.VisualBasic
Imports System.IO

Namespace DotNetNuke.Modules.MoistureSensitiveItems
    ''' <summary>
    '''
    ''' </summary>
    ''' <remarks></remarks>
    Public Class AutoEmailNotification
        Inherits DotNetNuke.Services.Scheduling.SchedulerClient
        Public Sub New(ByVal objScheduleHistoryItem As DotNetNuke.Services.Scheduling.ScheduleHistoryItem)
            MyBase.New()
            Me.ScheduleHistoryItem = objScheduleHistoryItem
        End Sub

        Public Overrides Sub DoWork()
            Try
                Me.Progressing()

                MSINotification()

                Me.ScheduleHistoryItem.Succeeded = True

                Me.ScheduleHistoryItem.AddLogNote("File updated")

            Catch ex As Exception

                Me.ScheduleHistoryItem.Succeeded = False

                Me.ScheduleHistoryItem.AddLogNote("EXEPTION: " + ex.ToString)

                'nootification that we have errored
                Me.Errored(ex)

                'Log the Exception
                LogException(ex)
            End Try
        End Sub

        Private Sub MSINotification()
            'create filename
            Me.Status = "Updating file"
            Dim FILENAME As String = MSI_Global.MSI_FILEPATH_TEMPFOLDER & _
                                     DateTime.Now.Year.ToString() & _
                                     DateTime.Now.Month.ToString() & _
                                     DateTime.Now.Day.ToString() & _
                                     DateTime.Now.Hour.ToString() & _
                                     DateTime.Now.Minute.ToString() & _
                                     DateTime.Now.Second.ToString() & ".txt"

            'create writestream
            Dim objStreamWriter As StreamWriter
            objStreamWriter = File.AppendText(FILENAME)

            objStreamWriter.WriteLine("I'am running -- " + DateTime.Now.ToString)

            'Close the stream
            objStreamWriter.Close()
            Me.Status = "Updating complete"
            Me.ScheduleHistoryItem.AddLogNote("Add new timestamp to file")
            Me.ScheduleHistoryItem.Succeeded = True
        End Sub
    End Class
End Namespace

 

 

 
New Post 5/19/2008 10:24 AM
User is offline Mitch Sellers
5053 posts
www.mitchelsellers.com
3rd Ranked




Re: Scheduler does not start 

You will need to copy the .dll file that contains your scheduled task into the bin directory.

Then inside the scheduler admin you will need to add a new task for your specific task.  You can use the other items to get the format for the display.


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Scheduler does not start
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com
T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP