DEPLOY SOLUTION WITH A FEATURE ALREADY (STUBBORNLY) INSTALLED ON A FARM

After a lot of experiences, involving the cmdlets of PowerShell and good old STSADM, if you ever stumble onto an error like “Error occurred in deployment step ‘xxxxxxxxx’: A feature with ID 1x/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx has already been installed in this farm. Use the force attribute to explicitly re-install the feature” do this:

  1. Open the feature on design view
  2. Open the Properties tab next to Solution Explorer
  3. Set the Always Force Install property as TRUE

If you deploy the solution and the feature already exists it will be overwritten and the problem is solved. I don’t know if this is the best solution, but it’s one that worked just fine for me.

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