<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'SharePoint', 'SharePoint 2010', and 'Template'</title><link>http://bloggingabout.net/search/SearchResults.aspx?a=1&amp;o=DateDescending&amp;tag=SharePoint,SharePoint+2010,Template&amp;orTags=0</link><description>Search results matching tags 'SharePoint', 'SharePoint 2010', and 'Template'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Error when deploying WebTemplate: &amp;quot;Error occurred in deployment step 'Add Solution': Exception from HRESULT: 0x8107026E&amp;quot;</title><link>http://bloggingabout.net/blogs/bas/archive/2011/01/14/error-when-deploying-webtemplate-quot-error-occurred-in-deployment-step-add-solution-exception-from-hresult-0x8107026e-quot.aspx</link><pubDate>Fri, 14 Jan 2011 20:28:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:484603</guid><dc:creator>Bas</dc:creator><description>&lt;p&gt;Recently I was working on a sandboxes solution, which included a WebTemplate (&lt;a href="http://blogs.msdn.com/b/vesku/"&gt;Vesa &amp;quot;Vesku&amp;quot; Juvonen&lt;/a&gt; wrote a really nice &lt;a href="http://blogs.msdn.com/b/vesku/archive/2010/10/14/sharepoint-2010-and-web-templates.aspx"&gt;post&lt;/a&gt; about it), but I couldn&amp;#39;t deploy it, the followin error was displayed into Visual Studio 2010:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/bas/0020.webtemplate-error.png"&gt;&lt;img src="http://bloggingabout.net/resized-image.ashx/__size/550x0/__key/CommunityServer.Blogs.Components.WeblogFiles/bas/0020.webtemplate-error.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Error occurred in deployment step &amp;#39;Add Solution&amp;#39;: Exception from HRESULT: 0x8107026E&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;After checking the Logs (in %SHAREPOINT ROOT%\\LOGS) the following error was found:&lt;br /&gt;&lt;em&gt;Failed to open the file &amp;#39;Features\AD6.Public_AD6_Web\AD6PublishingSite\onet.xml&amp;#39;.&amp;nbsp; &lt;br /&gt;#2006e: The specified path &amp;quot;&amp;quot; does not exist.&amp;nbsp; &lt;br /&gt;Failed to read file &amp;quot;Features\AD6.Public_AD6_Web\AD6PublishingSite\onet.xml&amp;quot; from feature id &amp;quot;6f87a30b-b785-4483-a1f4-25a1150ebda4&amp;quot;.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;/em&gt;After comparing that location to the supposed deployment location, I found out why the error was generated: the onet.xml was deployed to &lt;em&gt;another&lt;/em&gt; location:&lt;br /&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/bas/7725.webtemplate_5F00_deployment_5F00_location.png"&gt;&lt;img src="http://bloggingabout.net/resized-image.ashx/__size/550x0/__key/CommunityServer.Blogs.Components.WeblogFiles/bas/7725.webtemplate_5F00_deployment_5F00_location.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Instead of &amp;quot;&lt;em&gt;Features\AD6.Public_AD6_Web\AD6PublishingSite\&amp;quot; &lt;/em&gt;the onet.xml was deployed to &amp;quot;&lt;em&gt;Features\AD6.Public_AD6_Web\AD6Publishing&amp;quot;. &lt;/em&gt;But why? A &amp;quot;Find&amp;quot; (ctrl+shift+f) on &amp;quot;AD6PublishingSite&amp;quot; scoped to the complete solution, gave me one single result. The name of the webtemplate was the exact match:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/bas/6232.webtemplate_5F00_name.png"&gt;&lt;img src="http://bloggingabout.net/resized-image.ashx/__size/550x0/__key/CommunityServer.Blogs.Components.WeblogFiles/bas/6232.webtemplate_5F00_name.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After changing the webtemplate name to &amp;quot;AD6Publishing&amp;quot; (or changing the Module name to AD6PublishingSite&amp;quot;), I was able to deploy the solution correctly.&lt;/p&gt;
&lt;p&gt;Lessons learned: the webtemplate name and it&amp;#39;s module it resides in, require you to have the same name!&lt;/p&gt;</description></item></channel></rss>