I have created a scheduled job. It is working fine when I clicked on "StartMannually". But giving Object reference not set to an Instance of an Object"
what could be the reason. Can anybody help me.
The user running the scheduler does not have access to EPiServer pages. You therefore need to specify required accesslevel when fetching EPiServer data (GetPage, GetChildren etc).
PageData aPage = GetPage(myPageReference, EPiServer.Security.AccessControlList.NoAccess);