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.0Help with SchedulerHelp with Scheduler
Previous
 
Next
New Post
11/7/2006 12:51 PM
 

I built an empty scheduler module to add to the scheduler, per the latest documentation and as posted on http://www.wwwcoder.com/tabid/68/type/art/parentid/224/site/6401/default.aspx

Here's my code:

Imports System.Configuration
Imports DotNetNuke
Imports System.Web

Namespace MyProject

Public Class MemberSyncScheduler
  
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()
     NewTest()
    
Me.ScheduleHistoryItem.Succeeded = True
    
Me.ScheduleHistoryItem.AddLogNote("MemberSync updated successfully")

  Catch ex As Exception
    
Me.ScheduleHistoryItem.Succeeded = False
    
Me.ScheduleHistoryItem.AddLogNote("EXCEPTION: " + ex.ToString)
    
Me.Errored(ex)
 
End Try
End Sub

Private Sub NewTest()
' do nothing
End Sub

End Class
End
Namespace

I compiled it (no errors) with the dll ending up in the bin directory.  Then I added it to the scheduler to my website:

Full Class Name and Assembly:  MyProject.MemberSyncScheduler, MemberSyncScheduler
Schedule Enabled: Yes
Time Lapse:  2 minutes
Retry Frequency: 10 minutes
Retain Schedule History: 25
Run on Event: None
Catch Up Enabled: (not checked)
Object Dependencies: (none)
Run on Servers: localhost

But as soon as I update it, I get an unhandled exception ('System.NullReferenceException') occurred in aspnet_wp.exe[372].

Followed by these twp pop-up windows:

   An unhandled exception of type 'System.NullReferenceException' occurred in DotNetNuke.DNNScheduler.DLL
   Additional information: Object reference not set to an instance of an object.

   An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.
   Additional information: Object reference not set to an instance of an object.

Then the website dies with this error:

   Server Application Unavailable
   The web application you are attempting to access on this web server is currently unavailable. 
   Please hit the "Refresh" button in your web browser to retry your request.

   Administrator Note: An error message detailing the cause of this specific request failure can be
   found in the application event log of the web server. Please review this log entry to discover what
   caused this error to occur.

I have to remove the entry in the Schedule table to get the website back up. 

What do I need to do/add/change to make the scheduler take my new schedule task?  Help!!!

- LL

 
New Post
11/21/2006 12:26 PM
 

Hello,

I have the same issue. Did you ever resolve it? I have checked docs from the link you posted, plus custom modules with scheduler components, to books. every example i've tried kills the aspnet worker process. There is a switch in machine.config to make it not recycle the process when it hits this type of error. I have done this but havent gotten much more information out of it.

The docs that ship with dnn for the scheduler seem out of date.

Any help is appreciated.

dda

 
New Post
11/24/2006 5:30 AM
 
Anyone?
 
New Post
11/25/2006 2:30 PM
 

I eventually figured it out with the help of a co-worker.  I looked inside the dll and figured out that the namespace I had was incorrect.

I had set the compile options for the project to have MyProject as the name space which was pre-pended to the name space in the file.

So the full Full Class Name was: MyProject.MyProject.MemberSyncScheduler.

Once I'd changed it.  It worked okay.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Help with SchedulerHelp with Scheduler


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