In this article you will see how to resolve the error "Error occurred in deployment step 'Activate Features': Key cannot be null. Parameter name: key" in Visual Studio 2010.ErrorI have created a custom Content Type using Visual Studio 2010. The entire solution looks like the following:When I try to deploy the solution from Visual Studio 2010 by right-clicking on the solution and then click on Deploy, I was getting the error:"Error occurred in deployment step 'Activate Features': Key cannot be null. Parameter name: key"ReasonThe reason is in the Content Type, the Elements.xml file <FieldRef> tag was closed as </FieldRef> which will be considered as an empty or null element.How to ResolveIn the Content Type Elements.xml file remove the </FieldRef> element and close the <FieldRef> element as shown below:Now I was able to deploy the content type successfully from Visual Studio 2010. SummaryThus in this article you have seen how to resolve the error "Error occurred in deployment step 'Activate Features': Key cannot be null. Parameter name: key" in Visual Studio 2010.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: