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  |  

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


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

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.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


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
12 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
5569 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
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I reccomend 3Essentials for shared hosting and BaseCamp for project management
 
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.

 


DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com

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