Quantcast
Channel: SPTimerScheduler Discussions Rss Feed
Viewing all articles
Browse latest Browse all 8

New Post: Problems getting to work

$
0
0
Hi,

I have installed your feature and can create timer jobs, but they do not seem to be doing anything.

Here is my code:

Imports Microsoft.SharePoint
Imports Microsoft.SharePoint.Utilities

 

 

Namespace TestTimerJobAssembly.TimerJobs
    
PublicClass TimerJobClass
        
Dim site As SPSite
        
Dim web As SPWeb

 

 

        PublicSub TestTimerSchedule(ByVal strURL AsString, ByVal webURL AsString)
            site =
New SPSite(strURL)
            web = site.OpenWeb(webURL)
        
EndSub

 

 

        PublicSub Execute()
            SPUtility.SendEmail(web,
False, False, "<my email address>", "Test Timer Job", "It Worked !!!")
        
EndSub
    EndClass
End
Namespace

 



And here are the details for the job:

Name: Test Timer Job
Status: Enabled
DaysToRun: Everyday
HoursToRun: Set to 6PM
Assembly: TestTimerJobAssembly,  Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5
Class: TestTimerJobAssembly.TimerJobs.TimerJobClass
Method: Execute
ConstructorParameter1: http://ne-per-md1 (name of our sharepoint dev server)
ConstructorParameter2: /

The timer does run, as the LastRunDateTime is updated, but no eMail is sent. (I have used this email code in other places so know that it works)

Can you offer any advice?

Thanks in advance,

Sandy

 

 


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>