Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Object reference not set to instance of an object error in sharepoint job feature

$
0
0

Hi all,

I am using the below code for deactivating the sharepoint feature but I am getting the error object reference not set to instance of an object error. Can anyone help me to resolve this issue please..

  foreach (SPJobDefinition job in site.WebApplication.JobDefinitions)
                    {

                        if (job.Name == List_JOB_NAME)

                            job.Delete();

                    }


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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