I thought I could reference SPContext when executing the timerjob function but I get "Instance reference is not set to an instance of an object". It fails when I reference SPContext.
What am I doing wrong? (I'm trying to update items in a list using a TimerJob)
Public Overrides Sub Execute(ByVal targetInstanceId As Guid)
Dim oWeb As SPWeb = SPContext.Current.Web
oWeb.Site.OpenWeb("http://dept.litwareinc.com/npp/NPE")
'Update PEEIT Employees List
UpdatePEEITEmployees(oWeb)
End Sub