I am trying to deploy my first Visual Webpart from Visual Studio 2010 to SharePoint 2010. It contains simple 'Hello World!' message. The project builds successfully, but when I try to deploy it, it gives "Error occurred in deployment step
'Add Solution': Operation is not valid due to the current state of the object"
I have enabled SharePoint Server Publishing Infrastructure in the site collection and site.
View Complete Post