{"id":139,"date":"2014-12-10T09:57:00","date_gmt":"2014-12-10T09:57:00","guid":{"rendered":"http:\/\/waynenguyen.org\/dev\/2014\/12\/10\/a-feature-with-id-has-already-been\/"},"modified":"2016-05-21T03:15:57","modified_gmt":"2016-05-21T03:15:57","slug":"a-feature-with-id-has-already-been","status":"publish","type":"post","link":"https:\/\/bruceng.com\/dev\/?p=139","title":{"rendered":"A feature with ID has already been installed in this farm"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\">\n<h1 style=\"box-sizing: border-box; color: inherit; font-size: 36px; font-weight: 500; line-height: 1.1; margin: 20px 0px 10px;\">\nSharePoint 2013: A feature with ID has already been installed in this farm<\/h1>\n<div class=\"metadata\" style=\"box-sizing: border-box;\">\nSaturday, January 11, 2014<\/p>\n<div class=\"tags\" style=\"box-sizing: border-box;\">\n<a class=\"tag label label-default\" href=\"http:\/\/weblogs.asp.net\/sreejukg\/Tags\/Sharepoint\" rel=\"tag\" style=\"background: rgb(174, 167, 159); border-radius: 0.25em; box-sizing: border-box; color: white; display: inline; font-size: 11px; font-weight: bold; line-height: 1; padding: 0.2em 0.6em 0.3em; text-align: center; text-decoration: none; vertical-align: baseline; white-space: nowrap;\">Sharepoint<\/a>&nbsp;<a class=\"tag label label-default\" href=\"http:\/\/weblogs.asp.net\/sreejukg\/Tags\/SharePoint%202013\" rel=\"tag\" style=\"background: rgb(174, 167, 159); border-radius: 0.25em; box-sizing: border-box; color: white; display: inline; font-size: 11px; font-weight: bold; line-height: 1; padding: 0.2em 0.6em 0.3em; text-align: center; text-decoration: none; vertical-align: baseline; white-space: nowrap;\">SharePoint 2013<\/a>&nbsp;<a class=\"tag label label-default\" href=\"http:\/\/weblogs.asp.net\/sreejukg\/Tags\/Visual%20Studio\" rel=\"tag\" style=\"background: rgb(174, 167, 159); border-radius: 0.25em; box-sizing: border-box; color: white; display: inline; font-size: 11px; font-weight: bold; line-height: 1; padding: 0.2em 0.6em 0.3em; text-align: center; text-decoration: none; vertical-align: baseline; white-space: nowrap;\">Visual Studio<\/a>&nbsp;<a class=\"tag label label-default\" href=\"http:\/\/weblogs.asp.net\/sreejukg\/Tags\/Visual%20Studio%202013\" rel=\"tag\" style=\"background: rgb(174, 167, 159); border-radius: 0.25em; box-sizing: border-box; color: white; display: inline; font-size: 11px; font-weight: bold; line-height: 1; padding: 0.2em 0.6em 0.3em; text-align: center; text-decoration: none; vertical-align: baseline; white-space: nowrap;\">Visual Studio 2013<\/a><\/div>\n<\/div>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nWhen you try to deploy a Visual Web Part you may get the following error.<\/div>\n<blockquote style=\"background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;\">\n<div style=\"box-sizing: border-box;\">\n\u201cError occurred in deployment step &#8216;Add Solution&#8217;: A feature with ID 15\/3e472a61-bbc9-4242-87c7-a07e8e3fab99 has already been installed in this farm. Use the force attribute to explicitly re-install the feature.\u201d<\/div>\n<\/blockquote>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nSee a sample screenshot of the error<\/div>\n<blockquote style=\"background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;\">\n<div style=\"box-sizing: border-box;\">\n<a href=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image001_6E03E17F.png\" mce_href=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image001_6E03E17F.png\" style=\"background: transparent; box-sizing: border-box; color: #dd4814; text-decoration: none;\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image001\" border=\"0\" height=\"51\" mce_src=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image001_thumb_7CDAEACC.png\" src=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image001_thumb_7CDAEACC.png\" style=\"background-image: none; border: 0px; box-sizing: border-box; display: inline; height: auto; max-width: 100%; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;\" title=\"clip_image001\" width=\"244\" \/><\/a><\/div>\n<\/blockquote>\n<h2 style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 1.1; margin-bottom: 10px; margin-top: 20px;\">\nThe reason for the error<\/h2>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nThe Visual Studio deploys your project to the site specified by the Site URL property. Once you deployed a visual web part to a site, later from Visual Studio change the Site URL property to another site, next time when you try to deploy the project, you will see this error.<\/div>\n<h2 style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 1.1; margin-bottom: 10px; margin-top: 20px;\">\nResolution<\/h2>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nThe solution is clearly specified in the error message itself.<\/div>\n<blockquote style=\"background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;\">\n<div style=\"box-sizing: border-box;\">\n\u201cUse the force attribute to explicitly re-install the feature.\u201d<\/div>\n<\/blockquote>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nIn order to specify the Force attribute, expand the Features node in your project and expand it.<\/div>\n<blockquote style=\"background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;\">\n<div style=\"box-sizing: border-box;\">\n<a href=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image002_7ABDEC03.png\" mce_href=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image002_7ABDEC03.png\" style=\"background: transparent; box-sizing: border-box; color: #dd4814; text-decoration: none;\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image002\" border=\"0\" height=\"113\" mce_src=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image002_thumb_39AF6C9F.png\" src=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image002_thumb_39AF6C9F.png\" style=\"background-image: none; border: 0px; box-sizing: border-box; display: inline; height: auto; max-width: 100%; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;\" title=\"clip_image002\" width=\"244\" \/><\/a><\/div>\n<\/blockquote>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nDouble click on the feature to open the feature.<\/div>\n<blockquote style=\"background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;\">\n<div style=\"box-sizing: border-box;\">\n<a href=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image004_69F64155.jpg\" mce_href=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image004_69F64155.jpg\" style=\"background: transparent; box-sizing: border-box; color: #dd4814; text-decoration: none;\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image004\" border=\"0\" height=\"67\" mce_src=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image004_thumb_1CD5ABF0.jpg\" src=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image004_thumb_1CD5ABF0.jpg\" style=\"background-image: none; border: 0px; box-sizing: border-box; display: inline; height: auto; margin: 0px; max-width: 100%; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;\" title=\"clip_image004\" width=\"244\" \/><\/a><\/div>\n<\/blockquote>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nClick on the Manifest to modify the XML for the feature file and then click on the Edit options.<\/div>\n<blockquote style=\"background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;\">\n<div style=\"box-sizing: border-box;\">\n<a href=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image006_6BF2F484.jpg\" mce_href=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image006_6BF2F484.jpg\" style=\"background: transparent; box-sizing: border-box; color: #dd4814; text-decoration: none;\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image006\" border=\"0\" height=\"122\" mce_src=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image006_thumb_00489443.jpg\" src=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image006_thumb_00489443.jpg\" style=\"background-image: none; border: 0px; box-sizing: border-box; display: inline; height: auto; margin: 0px; max-width: 100%; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;\" title=\"clip_image006\" width=\"244\" \/><\/a><\/div>\n<\/blockquote>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nYou can edit the manifest in the Edit options editor. You can edit the file here, or use the link \u201cOpen in XML editor\u201d link to open the link in the XML editor. With XML editor, you will get the intellisense support.<\/div>\n<blockquote style=\"background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;\">\n<div style=\"box-sizing: border-box;\">\n<a href=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image007_7DBF6284.png\" mce_href=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image007_7DBF6284.png\" style=\"background: transparent; box-sizing: border-box; color: #dd4814; text-decoration: none;\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image007\" border=\"0\" height=\"121\" mce_src=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image007_thumb_71513F5B.png\" src=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image007_thumb_71513F5B.png\" style=\"background-image: none; border: 0px; box-sizing: border-box; display: inline; height: auto; margin: 0px; max-width: 100%; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;\" title=\"clip_image007\" width=\"244\" \/><\/a><\/div>\n<\/blockquote>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nAdd the AlwaysForceInstall=&#8221;TRUE&#8221; attribute to the Feature element. Once you modify the element, the modified element looks as follows.<\/div>\n<blockquote style=\"background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;\">\n<div style=\"box-sizing: border-box;\">\n<a href=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image009_41B320CF.jpg\" mce_href=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image009_41B320CF.jpg\" style=\"background: transparent; box-sizing: border-box; color: #dd4814; text-decoration: none;\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image009\" border=\"0\" height=\"31\" mce_src=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image009_thumb_400254FB.jpg\" src=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image009_thumb_400254FB.jpg\" style=\"background-image: none; border: 0px; box-sizing: border-box; display: inline; height: auto; margin: 0px; max-width: 100%; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;\" title=\"clip_image009\" width=\"244\" \/><\/a><\/div>\n<\/blockquote>\n<div style=\"background-color: white; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 10px;\">\nOnce you save the manifest, now try to deploy the project, you will find the project will deploy with out any error.<\/div>\n<blockquote style=\"background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;\">\n<div style=\"box-sizing: border-box;\">\n<a href=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image010_04CE7930.png\" mce_href=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image010_04CE7930.png\" style=\"background: transparent; box-sizing: border-box; color: #dd4814; text-decoration: none;\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image010\" border=\"0\" height=\"46\" mce_src=\"https:\/\/mscblogs.blob.core.windows.net\/media\/sreejukg\/Media\/clip_image010_thumb_1C85B096.png\" src=\"http:\/\/weblogs.asp.net\/blogs\/sreejukg\/clip_image010_thumb_1C85B096.png\" style=\"background-image: none; border: 0px; box-sizing: border-box; display: inline; height: auto; max-width: 100%; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;\" title=\"clip_image010\" width=\"244\" \/><\/a><\/div>\n<\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>SharePoint 2013: A feature with ID has already been installed in this farm Saturday, January 11, 2014 Sharepoint&nbsp;SharePoint 2013&nbsp;Visual Studio&nbsp;Visual Studio 2013 When you try to deploy a Visual Web Part you may get the following error. \u201cError occurred in deployment step &#8216;Add Solution&#8217;: A feature with ID 15\/3e472a61-bbc9-4242-87c7-a07e8e3fab99 has already been installed in this &hellip; <a href=\"https:\/\/bruceng.com\/dev\/?p=139\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;A feature with ID has already been installed in this farm&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":260,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-139","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=139"}],"version-history":[{"count":1,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":259,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/139\/revisions\/259"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/media\/260"}],"wp:attachment":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}