VS2010 SharePoint Projects: Error occurred in deployment step 'Add Solution'

7 May 2011

The inbuilt Visual Studio 2010/Sharepoint 2010 tooling has improved significantly since the WSS 3.0 days, but there are still quite a few annoyances that crop up from time to time.

One error which you might encounter is the following, when you are attempting to deploy what is otherwise a perfect solution:

Error occurred in deployment step 'Add Solution': Value cannot be null. Parameter name: s

A quick google pointed me to a blog that said to disable Deployment Conflict Resolution, and that worked - but since I was deploying to a blank site collection, I knew that there wasn't really anything conflicting so there must have been another way to get it to deploy...

And it turns out that if you close all your open files and attempt your deployment again, everything will work!

So, pro tip - if you come across "Error occurred in deployment step 'Add Solution': Value cannot be null. Parameter name: s", close all your open files and try deploying again - it can't hurt to try.

Tags: deployment, exception, SharePoint 2010

Add a Comment

No Comments