Search This Blog

Showing posts with label SharePoint Issues. Show all posts
Showing posts with label SharePoint Issues. Show all posts

Thursday, February 5, 2015

'Add Solution':Cannot access a disposed object.

Issue: Error occurred in deployment step 'Add Solution':Cannot access a disposed object. Ohect name:'SharePointProjectItemFile'

Solution: Simply close the project and re-open it and the error should go away

Friday, April 11, 2014

Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been installed in this farm. Use the force attribute to explicitly re-install the feature.


The fix in Visual Studio 2010 is to double click on the feature and open the feature window. from there use the property window and set the value AlwaysForceInstall="TRUE".

<Feature AlwaysForceInstall="TRUE">
....
</Feature>

Also, you can use power-shell:

Install-SPSolution -Identity <Solution File> -GACDeployment -Force