Sometimes when you try to deploy your SharePoint solution from visual studio an error occurred
visual studio wsp deployment Error occurred in deployment step ‘Add Solution’: Value cannot be null
The error comes because you opened “Elements.xml” in visual studio IDE when you deploy the solution ! it fails when the “FindConflicts()” method invoked during add solution step in visual studio deployment.
Two solutions to solve that :
- Simply close any “Elements.xml” file opened in visual studio IDE then deploy it will success 😀
- Change deployment conflict resolution for your module from Automatic “the default value” to None – image below
That’s it ! 🙂