Category Archives: Visual Studio

System.ArgumentNullException: Key cannot be null.

So you are happily adding custom Fields, and/or FieldRefs to your ContentType, through Visual Studio for SharePoint and you deploy the outcome to your farm and when you want to activate your feature the following error pops up:

[ArgumentNullException: Key cannot be null.
Parameter name: key]
Continue reading

Advertisements

Cannot remove Sharepoint Project item from feature error

Should you ever get this error “Cannot remove Sharepoint Project item from feature” due to a null reference exception in Visual Studio 2012. Close the feature designer and re-open it.