only My site

Wednesday, July 17, 2013

Unable to find a Configuration whose ID

Error

Error occurred in deployment step 'Add Solution': Unable to find a Configuration whose ID is equal to 1 in the WebTemplatePackage_Feature1\Bala Template\onet.xml file for feature {7e557079-c818-415d-850b-c6445896ff96}. The WebTemplatePackage_Feature1\Bala Template\onet.xml file must contain a Configuration element whose ID attribute is equal to the BaseConfigurationID attribute declared in the WebTemplate element.

Cause

The IDs in Element.xml and Onet.xml didn't match.

Solution

The IDs in Element.xml (baseconfigurationID) and Onet.xml(ID) should be the same. Refer the below sample code.

 

No comments: