I wanted to enable a feature which required special admin rights through power-shell and kept on getting the following exception:
Enable-SPFeature : Failed to create receiver object from assembly "ASSEMBLYNAME, Version=1.0.0.0, Culture=neutral, PublicKeyToken=eaf1b7820cf1
fb30", class "CLASSNAME" for feature "FEATURENAME" (ID: 08284496-c68e-4f6c-befe-5777d14ad74b).
: System.ArgumentNullException: Value cannot be null.
Spent hours trying to find the reason. The class was there. I even gaced manually, tried everything. But later a colleague of mine helped me out with suggesting to open a new instance of power shell and try it again. And it worked perfectly. What a time waste.
Subscribe to:
Post Comments (Atom)
3 comments:
I saw the same thing - the Enable-SPFeature commandlet would not run my event reciever, but it would work when I did it in the UI. Per your post, I closed and reopend the powershell ISE and everything worked fine. Thanks
Did someone just say "turn it off and turn it back on again"!? Worked for me, thanks for the post!
glad it helped!
Post a Comment