<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4126985520350746834.post3146726724103248019..comments</id><updated>2010-01-14T13:41:28.296Z</updated><category term='Personal'/><category term='Coding'/><category term='WCM'/><category term='Continuous Integration'/><category term='jQuery'/><category term='master pages'/><category term='debugging'/><category term='workflow'/><category term='speaking'/><category term='page layouts'/><category term='security'/><category term='lists'/><category term='deployment'/><category term='SharePoint'/><category term='AJAX'/><category term='content deployment'/><category term='ghosting'/><category term='codeplex'/><category term='help'/><category term='TechEd'/><category term='customizing'/><category term='Virtual Server'/><category term='CAS policy'/><category term='site definitions'/><category term='user group'/><category term='CustomAction'/><category term='SP2010'/><category term='feature-stapling'/><category term='Content Deployment Wizard'/><category term='webparts'/><category term='feature receiver'/><category term='site columns'/><category term='configuration'/><category term='features'/><category term='central admin'/><category term='DelegateControl'/><category term='MOSS'/><category term='content migration API'/><category term='VSeWSS'/><category term='Virtual Machine Manager'/><category term='content query web part'/><category term='content types'/><category term='InfoPath'/><title type='text'>Comments on Chris O'Brien: Site definitions - custom code in the site creatio...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.sharepointnutsandbolts.com/feeds/3146726724103248019/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html'/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_DPonmXhJQ4g/SiFZBcX_Q1I/AAAAAAAAAa0/14b7VTN0FZM/s1600-R/28f5735.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-9146296192110224532</id><published>2008-06-29T22:17:00.000+01:00</published><updated>2008-06-29T22:17:00.000+01:00</updated><title type='text'>Hi Marten,&lt;br&gt;&lt;br&gt;Sorry for the delay in replying....</title><content type='html'>Hi Marten,&lt;BR/&gt;&lt;BR/&gt;Sorry for the delay in replying.&lt;BR/&gt;&lt;BR/&gt;I'm afraid I haven't looked at version 1.2 yet, but hopefully someone who has might respond to your points. I'm surprised that VSeWSS appears to enforce a certain way of factoring Features, since AFAIK little guidance exists on this - I wonder if you are just encountering bugs which slipped through testing. &lt;BR/&gt;&lt;BR/&gt;In terms of the GUID weirdness, remember that is the default value for a GUID (Guid.Empty) - but yes, it could be that code in VSeWSS is expecting to replace these. Does your end solution/Feature have default GUIDs after building from F5? &lt;BR/&gt;&lt;BR/&gt;Perhaps you should try splitting your artifacts across different VSeWSS projects to see if that works around the issues.&lt;BR/&gt;&lt;BR/&gt;In the end however, I have to say I'm personally not sure VSeWSS is the best approach for WCM sites. I discuss my thoughts in the end paragraphs of &lt;A HREF="http://www.sharepointnutsandbolts.com/2007/05/sharepoint-deployment-optionsfeatures.html" REL="nofollow"&gt;SharePoint deployment options: Features or Content Deployment&lt;/A&gt;, though I also intend to discuss this again soon. In summary for my most recent projects I have used the &lt;A HREF="www.codeplex.com/SPDeploymentWizard" REL="nofollow"&gt;SharePoint Content Deployment Wizard&lt;/A&gt; to deploy everything which is &lt;STRONG&gt;not&lt;/STRONG&gt; on the filesystem, and use a Solution package for those files. This seems to work well and avoids the need to 'featurize' everything - I also avoid site definitions unless users really will create many sites from a template. &lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/9146296192110224532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/9146296192110224532'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html?showComment=1214774220000#c9146296192110224532' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-3146726724103248019' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/3146726724103248019' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-7496398729462355666</id><published>2008-06-27T17:57:00.000+01:00</published><updated>2008-06-27T17:57:00.000+01:00</updated><title type='text'>Hi Chris, Thanks for the articles. They are always...</title><content type='html'>Hi Chris, Thanks for the articles. They are always helpful. &lt;BR/&gt;I am using VS2WSS 1.2, not sure if you've had a play around yet or not. I am facing a few issues:&lt;BR/&gt;1. When I create a feature to deploy contenttypes, VSeWSS picks up the contenttype name to be the feature name, rather than the folder name. Even if I modify the folder name and feature name in the manifest, it is still problematic. I had to place it under a different feature for sitecolumns.&lt;BR/&gt;2. A site definition cannot be added to a solution, it must be created as a new solution.&lt;BR/&gt;3. (Important one for me now) A new site definition solution can have features in the same solution for deployment. However, if the features have feature receivers, VSeWSS creates a new feature with GUID 00000000-0000-0000-0000-000000000000 and that dummy feature just calls your feature receiver for your feature. It looks like the developers created the template to scan all feature receivers and assume they will be placed in new separate features. And even if, why on earth are they assigned the GUID 00000000-0000-0000-0000-000000000000!? :|&lt;BR/&gt;4. VS hangs when significant change has been made to a feature (or even item inside a feature). CPU goes to 80-90CPU for devenv. Then the sharepoint process also reaches high CPU and doesn't let you deactivate the problematic feature. It just hangs. &lt;BR/&gt;&lt;BR/&gt;I don't know if it is just me or are others facing the same issues.&lt;BR/&gt;&lt;BR/&gt;Any ideas? especially for number 3 above :)&lt;BR/&gt;&lt;BR/&gt;Thanks,&lt;BR/&gt;Marten</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/7496398729462355666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/7496398729462355666'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html?showComment=1214585820000#c7496398729462355666' title=''/><author><name>Marten</name><uri>marten.com.au</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-3146726724103248019' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/3146726724103248019' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1107931786'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-54603018678540951</id><published>2008-02-22T07:32:00.000Z</published><updated>2008-02-22T07:32:00.000Z</updated><title type='text'>Hi Tim,&lt;br&gt;&lt;br&gt;Sorry for the delay in replying. I'...</title><content type='html'>Hi Tim,&lt;BR/&gt;&lt;BR/&gt;Sorry for the delay in replying. I'm not sure why this wouldn't work properly, and it's interesting you say the event receiver &lt;I&gt;has&lt;/I&gt; been associated with the list. &lt;BR/&gt;&lt;BR/&gt;How about trying a different approach - in a 'standard' Feature receiver, hook up the event receiver in code, rather than using Feature XML to do this. I'm just interested to know if there's something about the sequence of things which could be having an effect.&lt;BR/&gt;&lt;BR/&gt;I'd also be thinking about using the API to write out the details of the event receiver after each approach, so I can compare what SharePoint believes the definition to be.&lt;BR/&gt;&lt;BR/&gt;Best of luck,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/54603018678540951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/54603018678540951'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html?showComment=1203665520000#c54603018678540951' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-3146726724103248019' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/3146726724103248019' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-8012075789221079238</id><published>2008-02-18T23:00:00.000Z</published><updated>2008-02-18T23:00:00.000Z</updated><title type='text'>Chris,&lt;br&gt;   I'm working on a Site Definition to b...</title><content type='html'>Chris,&lt;BR/&gt;   I'm working on a Site Definition to be deployed via a SharePoint solution.  I'm trying to associate an event receiver with a list that was created in my ONET.xml file.  I'm interested in handling the addition of new items.&lt;BR/&gt;&lt;BR/&gt;My event receiver is part of a feature that is activated via a WebFeatures entry in my site's ONET.xml file.  &lt;BR/&gt;&lt;BR/&gt;Even though the event receiver feature is activated when the site is created, the event handler is not being called.  If I deactivate the event handler feature and then reactivate it, the event handler will be called.  Have you seen this problem before?&lt;BR/&gt;&lt;BR/&gt;Thanks.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/8012075789221079238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/8012075789221079238'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html?showComment=1203375600000#c8012075789221079238' title=''/><author><name>Tim Stewart</name><uri>http://www.blogger.com/profile/09462164199588340287</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp3.blogger.com/_I8udcGGmplM/R36BV_9YkZI/AAAAAAAAAAM/kw36BlBhCqQ/S220/me.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-3146726724103248019' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/3146726724103248019' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-926548233'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-3816967536012196207</id><published>2008-02-17T22:05:00.000Z</published><updated>2008-02-17T22:05:00.000Z</updated><title type='text'>Cyfred,&lt;br&gt;&lt;br&gt;Hmm that surprises me - it's been a...</title><content type='html'>Cyfred,&lt;BR/&gt;&lt;BR/&gt;Hmm that surprises me - it's been a long time since I looked at this, but I think you should be able to access the lists in a Feature receiver which runs when sites are created. I show this in &lt;A HREF="http://sharepointnutsandbolts.blogspot.com/2007/08/automatically-setting-custom.html" REL="nofollow"&gt;Automatically setting custom permissions on new sites&lt;/A&gt;.&lt;BR/&gt;&lt;BR/&gt;I can't think of a way to do something like this with a list template (so it would happen when new lists [rather than sites] are created), but it should be possible for site creation.&lt;BR/&gt;&lt;BR/&gt;Can you post the code you used?&lt;BR/&gt;&lt;BR/&gt;Thanks,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/3816967536012196207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/3816967536012196207'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html?showComment=1203285900000#c3816967536012196207' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-3146726724103248019' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/3146726724103248019' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-2280031463625923795</id><published>2008-02-14T16:38:00.000Z</published><updated>2008-02-14T16:38:00.000Z</updated><title type='text'>Chris,&lt;br&gt;&lt;br&gt;Thanks. I learned a lot from your gr...</title><content type='html'>Chris,&lt;BR/&gt;&lt;BR/&gt;Thanks. I learned a lot from your great articles and demo projects. However, I still can't figure out how to get custom code to execute after a site (or list) is first created. &lt;BR/&gt;&lt;BR/&gt;I am trying to set custom permissions on sub folders of a document library during the site provisioning process. Of course, when I tried doing it using a feature receiver as in your example, the code executed before the site and library were created and therefore the folders could not be modified. &lt;BR/&gt;&lt;BR/&gt;I tried using a ListEventReceiver and an ItemEventReceiver but I can’t find appropriate methods to overload that are activated only after the list or item is created. Any ideas?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/2280031463625923795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/2280031463625923795'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html?showComment=1203007080000#c2280031463625923795' title=''/><author><name>Cyfred</name><uri>http://www.blogger.com/profile/11314647250996659881</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-3146726724103248019' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/3146726724103248019' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-701979181'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-6333291158703097012</id><published>2007-08-15T13:26:00.000+01:00</published><updated>2007-08-15T13:26:00.000+01:00</updated><title type='text'>Hi Katrien,&lt;br&gt;&lt;br&gt;Thanks for the feedback!&lt;br&gt;&lt;br...</title><content type='html'>Hi Katrien,&lt;BR/&gt;&lt;BR/&gt;Thanks for the feedback!&lt;BR/&gt;&lt;BR/&gt;I went to take a quick look at your blog and ended up reading many of the articles. High quality stuff there - good work yourself! &lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/6333291158703097012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/6333291158703097012'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html?showComment=1187180760000#c6333291158703097012' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-3146726724103248019' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/3146726724103248019' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-7824677906584004051</id><published>2007-08-15T11:46:00.000+01:00</published><updated>2007-08-15T11:46:00.000+01:00</updated><title type='text'>Hello Chris,&lt;br&gt;&lt;br&gt;I wanted to congratulate you o...</title><content type='html'>Hello Chris,&lt;BR/&gt;&lt;BR/&gt;I wanted to congratulate you on your blog. You have posted some fantastic articles.&lt;BR/&gt;Keep up the good work!&lt;BR/&gt;&lt;BR/&gt;Katrien</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/7824677906584004051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/3146726724103248019/comments/default/7824677906584004051'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html?showComment=1187174760000#c7824677906584004051' title=''/><author><name>Katrien</name><uri>http://www.katriendg.com/aboutdotnet</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/08/site-definitions-custom-code-in-site.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-3146726724103248019' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/3146726724103248019' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1089455720'/></entry></feed>
