<?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: How to bind SharePoint event receivers to a custom list definition</title> <atom:link href="http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/feed" rel="self" type="application/rss+xml" /><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html</link> <description>This is a collection of interesting stuff that I found on the web or stuff I worked on at the time.</description> <lastBuildDate>Tue, 07 Feb 2012 20:01:32 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <item><title>By: Shane Kotney</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-317052</link> <dc:creator>Shane Kotney</dc:creator> <pubDate>Wed, 20 May 2009 04:59:34 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-317052</guid> <description>Hi there,Please post the complete source code for &quot;How to bind SharePoint event receivers to a custom list definition&quot;.waiting for your reply.Thanks in advance,
Shane</description> <content:encoded><![CDATA[<p>Hi there,</p><p>Please post the complete source code for &#8220;How to bind SharePoint event receivers to a custom list definition&#8221;.</p><p>waiting for your reply.</p><p>Thanks in advance,<br
/> Shane</p> ]]></content:encoded> </item> <item><title>By: Seamus Gormley</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-238952</link> <dc:creator>Seamus Gormley</dc:creator> <pubDate>Thu, 24 Jul 2008 14:56:15 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-238952</guid> <description>Hi there,I have a list which contains both files and folders but I only want the feature to be available for files and NOT folr folders  - is there any way to achieve this?Many thanks,- Seamus</description> <content:encoded><![CDATA[<p>Hi there,</p><p>I have a list which contains both files and folders but I only want the feature to be available for files and NOT folr folders  &#8211; is there any way to achieve this?</p><p>Many thanks,</p><p>- Seamus</p> ]]></content:encoded> </item> <item><title>By: Alexander Brütt</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-233131</link> <dc:creator>Alexander Brütt</dc:creator> <pubDate>Tue, 15 Jul 2008 13:06:24 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-233131</guid> <description>Hi Nick,
thank you for your very detailed step-by-step instructions. It&#039;s a good alternative to the SharePoint Extensions for Visual Studio. In some cases you want or have to create the deployment files on your own (eg. Timer Jobs).But I still recommend using the Extensions for EventReceiver because they deliver a SharePoint project template and a project item type called &quot;EventReceiver&quot;.The project template does all the deployment for you and creates a .wsp and .bat file. The EventReceiver item template allows you to select a list type you want to attach to and creates the xml file to configure your event receiver.Maybe I&#039;ll post a step-by-step article to do so during the next days. Then we have both possible ways documented on this blog.Best regards,
Alex</description> <content:encoded><![CDATA[<p>Hi Nick,<br
/> thank you for your very detailed step-by-step instructions. It&#8217;s a good alternative to the SharePoint Extensions for Visual Studio. In some cases you want or have to create the deployment files on your own (eg. Timer Jobs).</p><p>But I still recommend using the Extensions for EventReceiver because they deliver a SharePoint project template and a project item type called &#8220;EventReceiver&#8221;.</p><p>The project template does all the deployment for you and creates a .wsp and .bat file. The EventReceiver item template allows you to select a list type you want to attach to and creates the xml file to configure your event receiver.</p><p>Maybe I&#8217;ll post a step-by-step article to do so during the next days. Then we have both possible ways documented on this blog.</p><p>Best regards,<br
/> Alex</p> ]]></content:encoded> </item> <item><title>By: Nick Qu</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-233118</link> <dc:creator>Nick Qu</dc:creator> <pubDate>Tue, 15 Jul 2008 12:37:54 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-233118</guid> <description>1. stsadm -o installfeature -filename namedprivyfeature\feature.xml2. stsad -o activatefeature -filename namedprivyfeature\feature.xml -url http://localhost/myweb/mylist -force3. stsad -o activatefeature -filename namedprivyfeature\feature.xml -url http://localhost/myweb/mylist -force</description> <content:encoded><![CDATA[<p>1. stsadm -o installfeature -filename namedprivyfeature\feature.xml</p><p>2. stsad -o activatefeature -filename namedprivyfeature\feature.xml -url <a
href="http://localhost/myweb/mylist" rel="nofollow">http://localhost/myweb/mylist</a> -force</p><p>3. stsad -o activatefeature -filename namedprivyfeature\feature.xml -url <a
href="http://localhost/myweb/mylist" rel="nofollow">http://localhost/myweb/mylist</a> -force</p> ]]></content:encoded> </item> <item><title>By: Nick Qu</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-233117</link> <dc:creator>Nick Qu</dc:creator> <pubDate>Tue, 15 Jul 2008 12:36:45 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-233117</guid> <description>1. stsad.exe -o installfeature -filename namedprivyfeature\feature.xml2. stsad.exe -o activatefeature -filename namedprivyfeature\feature.xml -url http://localhost/myweb/mylist -force3. stsad.exe -o activatefeature -filename namedprivyfeature\feature.xml -url http://localhost/myAnotherweb/myAnotherlist -force</description> <content:encoded><![CDATA[<p>1. stsad.exe -o installfeature -filename namedprivyfeature\feature.xml</p><p>2. stsad.exe -o activatefeature -filename namedprivyfeature\feature.xml -url <a
href="http://localhost/myweb/mylist" rel="nofollow">http://localhost/myweb/mylist</a> -force</p><p>3. stsad.exe -o activatefeature -filename namedprivyfeature\feature.xml -url <a
href="http://localhost/myAnotherweb/myAnotherlist" rel="nofollow">http://localhost/myAnotherweb/myAnotherlist</a> -force</p> ]]></content:encoded> </item> <item><title>By: Nick Qu</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-233114</link> <dc:creator>Nick Qu</dc:creator> <pubDate>Tue, 15 Jul 2008 12:34:55 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-233114</guid> <description>I haven`t found my problem, but I know, although I was careful and learning, they both are not enough. I`ll try and keep learning from you. It`s my honor to be here.Thank you.Nick.</description> <content:encoded><![CDATA[<p>I haven`t found my problem, but I know, although I was careful and learning, they both are not enough. I`ll try and keep learning from you. It`s my honor to be here.</p><p>Thank you.</p><p>Nick.</p> ]]></content:encoded> </item> <item><title>By: Nick Qu</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-233111</link> <dc:creator>Nick Qu</dc:creator> <pubDate>Tue, 15 Jul 2008 12:32:58 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-233111</guid> <description>sorry, the last sentence induced from the above comment are missing.1.
2.
3. </description> <content:encoded><![CDATA[<p>sorry, the last sentence induced from the above comment are missing.</p><p>1.<br
/> 2.<br
/> 3.</p> ]]></content:encoded> </item> <item><title>By: Nick Qu</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-233107</link> <dc:creator>Nick Qu</dc:creator> <pubDate>Tue, 15 Jul 2008 12:25:52 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-233107</guid> <description>Dear Alexander and Tobias,Thanks you so much! I`ve really got the right result by using Feature deployment way. Now it can be step debugged, and functions what I want. Happy that I can move to next work.To look back, I`ve wandered many ways to test this simple function, really. now but other ways like deploy feature as .wsp still remain unconquered by me.1. Deploy EventHandler via code.
1.1 console + class library.
1.2 use &quot;EventHandlerExplorer&quot;. it can be searched on-line by its name. Indeed a good Tool.
1.3 use &quot;EventReceiver-installer-v1.1&quot;, which Sir. Alex introduced to me. Can register and unregister eventhandler on various level of site`s object. So good for quick scanning.2. Deploy EventHandler via feature.xml
2.1 console + class library + feature.xml and elements.xml in 12 hive.
2.2 use &quot;WSPBuilder&quot;. It`s a tool that can generate .wsp and .ddf and manifest.xml and .cab files automatically.
However, The problem is that I didn`t know how to make their position suitable in file structure, or if I must new a folder to hold them? At last I got no result and gave up.
2.3 my so-called best practice:(1) Dilemma: .wsp or feature? say,use addsolution, or installfeature?
I tried first, failed to function, but the latter, pass successfully. And more, result is okay by designating onto any certain web, certain List! It`s ok.(2) It`s hard while you construct file structure and fill in .xml files all by yourself. I highly recommend that we use tool, then this task is a piece of cake.
Task deployment time is estimated as within three minutes.(3) somewhere they can use code snippet management to build feature.xml and elements.xml. it`s good for workflow, but here, I use such a famous tool: &quot;STSDEV&quot;.
Sir. Alex ever kindly suggest me to use VS sharepoint extension. But I`m a little poor in analyzing when I meet a problem that: VS extension cannot automatically generate a file folder that has healthy feature.xml and elements.xml infomation. I got easy to make error and keep unaware. while STSDEV gave me all good file structure and .xml content in the solution. So STSDEV is really a fast tool for someone new to EventHandler. (Web Part and workflow take another way)My step is finally summarized as:1. STSDEV to new an &quot;Empty Solution&quot;
2. Add assembly -&gt; choose WSPBuilder, not SharePoint -&gt;Event Handler.
3. Add existing key.snk that generated from the beginning STSDEV wizard.4. Add Code, Build Project, Deploy .dll into GAC by gacutil.exe or dragging it to assembly foler.
5.  check feature.xml(a little syntax error you`ll see) and elements.xml by adding .dll`s publictoken from GAC.
so, feature, elements, dll. these three all have their GUID and can easily be connected.6. Mind that, everytime you build your project, use rightButtonClick to copy solution part to 12 hive. and iisreset.7. USE FEATURE TO INSTALL AND ACTIVATE ON any WEB or LIST you want:Finally it`s okay, I`m so glad to pass it with your notice and care.Thousands of thanks.Best wishes and good night.Nick.
2008-7-15.</description> <content:encoded><![CDATA[<p>Dear Alexander and Tobias,</p><p>Thanks you so much! I`ve really got the right result by using Feature deployment way. Now it can be step debugged, and functions what I want. Happy that I can move to next work.</p><p>To look back, I`ve wandered many ways to test this simple function, really. now but other ways like deploy feature as .wsp still remain unconquered by me.</p><p>1. Deploy EventHandler via code.<br
/> 1.1 console + class library.<br
/> 1.2 use &#8220;EventHandlerExplorer&#8221;. it can be searched on-line by its name. Indeed a good Tool.<br
/> 1.3 use &#8220;EventReceiver-installer-v1.1&#8243;, which Sir. Alex introduced to me. Can register and unregister eventhandler on various level of site`s object. So good for quick scanning.</p><p>2. Deploy EventHandler via feature.xml<br
/> 2.1 console + class library + feature.xml and elements.xml in 12 hive.<br
/> 2.2 use &#8220;WSPBuilder&#8221;. It`s a tool that can generate .wsp and .ddf and manifest.xml and .cab files automatically.<br
/> However, The problem is that I didn`t know how to make their position suitable in file structure, or if I must new a folder to hold them? At last I got no result and gave up.<br
/> 2.3 my so-called best practice:</p><p>(1) Dilemma: .wsp or feature? say,use addsolution, or installfeature?<br
/> I tried first, failed to function, but the latter, pass successfully. And more, result is okay by designating onto any certain web, certain List! It`s ok.</p><p>(2) It`s hard while you construct file structure and fill in .xml files all by yourself. I highly recommend that we use tool, then this task is a piece of cake.<br
/> Task deployment time is estimated as within three minutes.</p><p>(3) somewhere they can use code snippet management to build feature.xml and elements.xml. it`s good for workflow, but here, I use such a famous tool: &#8220;STSDEV&#8221;.<br
/> Sir. Alex ever kindly suggest me to use VS sharepoint extension. But I`m a little poor in analyzing when I meet a problem that: VS extension cannot automatically generate a file folder that has healthy feature.xml and elements.xml infomation. I got easy to make error and keep unaware. while STSDEV gave me all good file structure and .xml content in the solution. So STSDEV is really a fast tool for someone new to EventHandler. (Web Part and workflow take another way)</p><p>My step is finally summarized as:</p><p>1. STSDEV to new an &#8220;Empty Solution&#8221;<br
/> 2. Add assembly -&gt; choose WSPBuilder, not SharePoint -&gt;Event Handler.<br
/> 3. Add existing key.snk that generated from the beginning STSDEV wizard.</p><p>4. Add Code, Build Project, Deploy .dll into GAC by gacutil.exe or dragging it to assembly foler.<br
/> 5.  check feature.xml(a little syntax error you`ll see) and elements.xml by adding .dll`s publictoken from GAC.<br
/> so, feature, elements, dll. these three all have their GUID and can easily be connected.</p><p>6. Mind that, everytime you build your project, use rightButtonClick to copy solution part to 12 hive. and iisreset.</p><p>7. USE FEATURE TO INSTALL AND ACTIVATE ON any WEB or LIST you want:</p><p>Finally it`s okay, I`m so glad to pass it with your notice and care.</p><p>Thousands of thanks.</p><p>Best wishes and good night.</p><p>Nick.<br
/> 2008-7-15.</p> ]]></content:encoded> </item> <item><title>By: Alexander Brütt</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-233044</link> <dc:creator>Alexander Brütt</dc:creator> <pubDate>Tue, 15 Jul 2008 08:53:23 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-233044</guid> <description>Hi Nick,
I&#039;m glad you made it. How did you fix your problem?
Best regards,
Alex</description> <content:encoded><![CDATA[<p>Hi Nick,<br
/> I&#8217;m glad you made it. How did you fix your problem?<br
/> Best regards,<br
/> Alex</p> ]]></content:encoded> </item> <item><title>By: Tobias Hertkorn</title><link>http://www.fsmpi.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html/comment-page-1#comment-233043</link> <dc:creator>Tobias Hertkorn</dc:creator> <pubDate>Tue, 15 Jul 2008 08:52:15 +0000</pubDate> <guid
isPermaLink="false">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/how-to-bind-event-receivers-to-a-custom-list-definition/146.html#comment-233043</guid> <description>Hi Nick,thank you for your kind words. We really appreciate it. And I am happy that you finally found the solution to your problem.Cheers,
Tobi</description> <content:encoded><![CDATA[<p>Hi Nick,</p><p>thank you for your kind words. We really appreciate it. And I am happy that you finally found the solution to your problem.</p><p>Cheers,<br
/> Tobi</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching using disk

Served from: btfmx2.fs.uni-bayreuth.de @ 2012-02-12 06:49:32 -->
