Visual studio wsp deployment Error occurred in deployment step ‘Add Solution’: Value cannot be null

Standard

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 :

  1. Simply close any “Elements.xml” file opened in visual studio IDE then deploy it will success 😀
  2. Change deployment conflict resolution for your module from Automatic “the default value” to None – image below

deployment conflict resolution

That’s it !  🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s