Today when i was working with Timer Job which i was creating with the help of item template I came across a very simple error when i was installing timer job as a feature.
The error details is as shown below:
Failed to create feature receiver object from assembly “Org.Project.Solution, Version=18.104.22.168, Culture=neutral, PublicKeyToken=12gav43334vw3445”, type “Org.Project.Solution.MyFeature.FeatureReceiver” for feature 6a9b2358-ea4e-486d-a4e4-4f813c52ce88: System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
It took me some time to figure it out the exact error, so thought of writing a post so that it would help you to fix the issue soon. In my feature.xml file for the timer job feature the Receiver Class was specified wrong, so next time guys when you get this error please verify your Receiver Assembly (it will be having the assembly name) And Receiver Class (it will be having feature installer class) correctly.