SharePoint: Error occurred during deployment step activate features

Quick (annoying) thing. Whilst deploying a solution, you may see this error:

Error occurred in deployment step ‘Activate Features’: Key cannot be null. Parameter name: Key

This is unhelpfully connected to your Content Type definitions where you have FieldRefs and you’re closing them with the long tag, as opposed to the short tag, i.e.,

<FieldRef ID=”…”></FieldRef>

replace it with this to fix:

<FieldRef ID=”…” />

Thanks to Dhiraj.



Tags: , , , , ,

3 Responses to “SharePoint: Error occurred during deployment step activate features”

  1. [...] var addthis_product = 'wpp-262'; var addthis_config = {"data_track_clickback":true};A while ago, I posted about a problem deploying declarative XML content types and fields. Error occurred in deployment step [...]

  2. Help me a lot!!!
    Thanks

  3. Gantz says:

    Great !

Leave a Reply