Annoying mistake when create web template in SharePoint 2010
I get the error Error occurred in deployment step ‘Add Solution’: Exception from HRESULT: 0x8107026E when deploying my web template project. It turns out that your name for the Web template name has to match the name of you WebTemplate section in the element.xml file. Please see the screenshot below, the highlighted two needs to be the same. It took me so long to figure out and I will keep here in case everybody else struggle.
If you are a newbie with web template in SharePoint 2010, this blog post explains the details.