Raghu's SharePoint Column : SharePoint - My Lifeline!!

Raghu's SharePoint Column

Failed to create feature receiver object from assembly

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=1.0.0.0, 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)
at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()

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.

 
Comments

Awesome! Thanks a ton

Leave a Reply
*

Protected by WP Anti Spam