Use the force attribute to explicitly re-install the feature

Hi All,

When you have a Sharepoint Solution and when you try to deploy it with using visual studio and you got an error like this  “Error occurred in deployment step ‘Add Solution’: A feature with ID 15/cc629889-f2c1-4dba-b8fa-1ae0c752bcf2 has already been installed in this farm. Use the force attribute to explicitly re-install the feature”  don’t panic 🙂

You can go to the your solution and find the xml feature inside and insert attribut AlwaysForceInstall=True on each of your xml feature. Then  you can deploy again.

<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" AlwaysForceInstall="TRUE">
</Feature>

Happy Sharepoint-Ing

 

 

 

 

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.