<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Generic Feature Receiver for Features that Deploy WebParts</title>
	<atom:link href="http://trentacular.com/2009/04/generic-feature-receiver-for-webpart-deployment-features/feed/" rel="self" type="application/rss+xml" />
	<link>http://trentacular.com/2009/04/generic-feature-receiver-for-webpart-deployment-features/</link>
	<description>Trent Foley's Spectacular Technical Blog</description>
	<lastBuildDate>Wed, 01 Feb 2012 21:02:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: DenisR</title>
		<link>http://trentacular.com/2009/04/generic-feature-receiver-for-webpart-deployment-features/comment-page-1/#comment-2217</link>
		<dc:creator>DenisR</dc:creator>
		<pubDate>Wed, 24 Aug 2011 10:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://trentacular.com/?p=109#comment-2217</guid>
		<description>Thanks for the solution.

I would recommend more unified way of loading web parts gallery (without string hardcoding):
var webPartsGallery = rootWeb.GetCatalog(SPListTemplateType.WebPartCatalog);

It works without problems for me.</description>
		<content:encoded><![CDATA[<p>Thanks for the solution.</p>
<p>I would recommend more unified way of loading web parts gallery (without string hardcoding):<br />
var webPartsGallery = rootWeb.GetCatalog(SPListTemplateType.WebPartCatalog);</p>
<p>It works without problems for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://trentacular.com/2009/04/generic-feature-receiver-for-webpart-deployment-features/comment-page-1/#comment-1370</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Mon, 17 May 2010 14:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://trentacular.com/?p=109#comment-1370</guid>
		<description>Hi,

if you change
var wpGallery = rootWeb.Lists[&quot;Web Part Gallery&quot;];
into
var wpGallery = rootWeb.GetList(&quot;/_catalogs/wp&quot;);

It will work in other languages</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>if you change<br />
var wpGallery = rootWeb.Lists["Web Part Gallery"];<br />
into<br />
var wpGallery = rootWeb.GetList(&#8220;/_catalogs/wp&#8221;);</p>
<p>It will work in other languages</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trent</title>
		<link>http://trentacular.com/2009/04/generic-feature-receiver-for-webpart-deployment-features/comment-page-1/#comment-973</link>
		<dc:creator>Trent</dc:creator>
		<pubDate>Tue, 29 Dec 2009 15:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://trentacular.com/?p=109#comment-973</guid>
		<description>@Perry - Thanks for bringing this up.  The &#039;Cast&#039; method is an extension method located in the System.Linq.Enumerable class.  You will need to include a using statement for the System.Linq namespace.  Extension methods can be a little tricky to track down.</description>
		<content:encoded><![CDATA[<p>@Perry &#8211; Thanks for bringing this up.  The &#8216;Cast&#8217; method is an extension method located in the System.Linq.Enumerable class.  You will need to include a using statement for the System.Linq namespace.  Extension methods can be a little tricky to track down.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perry</title>
		<link>http://trentacular.com/2009/04/generic-feature-receiver-for-webpart-deployment-features/comment-page-1/#comment-971</link>
		<dc:creator>Perry</dc:creator>
		<pubDate>Tue, 29 Dec 2009 05:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://trentacular.com/?p=109#comment-971</guid>
		<description>What namespaces are required?

I can&#039;t figure out what namespace is required to solve the error:

Error	1	&#039;Microsoft.SharePoint.Administration.SPElementDefinitionCollection&#039; does not contain a definition for &#039;Cast&#039; and no extension method &#039;Cast&#039; accepting a first argument of type &#039;Microsoft.SharePoint.Administration.SPElementDefinitionCollection&#039; could be found (are you missing a using directive or an assembly reference?)</description>
		<content:encoded><![CDATA[<p>What namespaces are required?</p>
<p>I can&#8217;t figure out what namespace is required to solve the error:</p>
<p>Error	1	&#8216;Microsoft.SharePoint.Administration.SPElementDefinitionCollection&#8217; does not contain a definition for &#8216;Cast&#8217; and no extension method &#8216;Cast&#8217; accepting a first argument of type &#8216;Microsoft.SharePoint.Administration.SPElementDefinitionCollection&#8217; could be found (are you missing a using directive or an assembly reference?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Powell</title>
		<link>http://trentacular.com/2009/04/generic-feature-receiver-for-webpart-deployment-features/comment-page-1/#comment-635</link>
		<dc:creator>John Powell</dc:creator>
		<pubDate>Fri, 28 Aug 2009 19:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://trentacular.com/?p=109#comment-635</guid>
		<description>Nice work!</description>
		<content:encoded><![CDATA[<p>Nice work!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

