<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Incorporating a Master Page into a SharePoint site definition</title>
	<atom:link href="http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/feed" rel="self" type="application/rss+xml" />
	<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6</link>
	<description>SharePoint Magazine is an online Magazine dedicated to the world of SharePoint</description>
	<lastBuildDate>Tue, 16 Mar 2010 17:20:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jay</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-2293</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Fri, 18 Dec 2009 10:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-2293</guid>
		<description>Greg, Very good article. Help me a lot in understanding the site definition. But after deploying the solution when I try to create new site collection, it give me error message &quot;Unknown Error&quot;. I have doubled checked the procedure you provided and everything is to be exactly the same as per your demo sample.&lt;br&gt;&lt;br&gt;Please advise on what could go wrong.&lt;br&gt;&lt;br&gt;Thank you in advance.&lt;br&gt;Jay</description>
		<content:encoded><![CDATA[<p>Greg, Very good article. Help me a lot in understanding the site definition. But after deploying the solution when I try to create new site collection, it give me error message &#8220;Unknown Error&#8221;. I have doubled checked the procedure you provided and everything is to be exactly the same as per your demo sample.</p>
<p>Please advise on what could go wrong.</p>
<p>Thank you in advance.<br />Jay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tukaram Thatikonda</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-953</link>
		<dc:creator>Tukaram Thatikonda</dc:creator>
		<pubDate>Thu, 02 Jul 2009 01:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-953</guid>
		<description>My solution compiles but it gives an error when I try to deploy.&lt;br&gt;:&lt;br&gt;Install and deploying DemoProject.wsp&lt;br&gt;Unable to deploy solution&lt;br&gt;Inner exception(1): Name cannot begin with the ‘%’ character, hexadecimal value 0×25. Line 1, position 2.&lt;br&gt;:&lt;br&gt;&lt;br&gt;I followed the exact steps but not able to figure out in the XML file, the character that is causing this error. &lt;br&gt;&lt;br&gt;Could we have your code for download? So I can compare my xml files with yours and find the character that is causing the error.</description>
		<content:encoded><![CDATA[<p>My solution compiles but it gives an error when I try to deploy.<br />:<br />Install and deploying DemoProject.wsp<br />Unable to deploy solution<br />Inner exception(1): Name cannot begin with the ‘%’ character, hexadecimal value 0×25. Line 1, position 2.<br />:</p>
<p>I followed the exact steps but not able to figure out in the XML file, the character that is causing this error. </p>
<p>Could we have your code for download? So I can compare my xml files with yours and find the character that is causing the error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adele</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-887</link>
		<dc:creator>Adele</dc:creator>
		<pubDate>Sat, 06 Jun 2009 14:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-887</guid>
		<description>Hi there,&lt;br&gt;I&#039;m trying to create a team site definition that automatically applies my custom master page, called custom.master. I have created the master page as a Feature (as per Heather Solomon&#039;s blog), and I have activated it in my top level site collection. The top level is a Collaboration Portal. &lt;br&gt;&lt;br&gt;When I try to create a new site based off my team site definition, I get the following error:&lt;br&gt;Failed to instantiate file &quot;custom.master&quot; from module &quot;CustomMasterPage&quot;: Source path &quot;custom.master&quot; not found. &lt;br&gt;&lt;br&gt;Here are the relevant pieces of my ONET.xml file:&lt;br&gt;    &lt;Configuration ID=&quot;0&quot; Name=&quot;Default&quot; CustomMasterUrl=&quot;/_catalogs/masterpage/custom.master&quot; MasterUrl=&quot;/_catalogs/masterpage/custom.master&quot;&gt;&lt;br&gt;&lt;....&gt;&lt;br&gt;&lt;Module Name=&quot;CustomMasterPage&quot; List=&quot;116&quot; Url=&quot;_catalogs/masterpage&quot; RootWebOnly=&quot;FALSE&quot;&gt;&lt;br&gt;&lt;File Url=&quot;custom.master&quot; Type=&quot;GhostableInLibrary&quot; IgnoreIfAlreadyExists=&quot;TRUE&quot; /&gt;&lt;br&gt;&lt;/Module&gt;&lt;br&gt;  &lt;/Modules&gt;&lt;br&gt;&lt;br&gt;I have changed my ONET file many times,including trying &lt;Configuration ID=&quot;0&quot; Name=&quot;Default&quot; CustomMasterUrl=&quot;~SiteCollection/_catalogs/masterpage/custom.master&quot; MasterUrl=&quot;/_catalogs/masterpage/custom.master&quot;&gt; and this displays the same error as above.&lt;br&gt;&lt;br&gt;I&#039;m stumped as to how I can get the team site to use the master page from the site collection level, and naturally I&#039;m under heavy time constraints. Can you set me in the right direction?</description>
		<content:encoded><![CDATA[<p>Hi there,<br />I&#39;m trying to create a team site definition that automatically applies my custom master page, called custom.master. I have created the master page as a Feature (as per Heather Solomon&#39;s blog), and I have activated it in my top level site collection. The top level is a Collaboration Portal. </p>
<p>When I try to create a new site based off my team site definition, I get the following error:<br />Failed to instantiate file &#8220;custom.master&#8221; from module &#8220;CustomMasterPage&#8221;: Source path &#8220;custom.master&#8221; not found. </p>
<p>Here are the relevant pieces of my ONET.xml file:<br />    &lt;Configuration ID=&#8221;0&#8243; Name=&#8221;Default&#8221; CustomMasterUrl=&#8221;/_catalogs/masterpage/custom.master&#8221; MasterUrl=&#8221;/_catalogs/masterpage/custom.master&#8221;&gt;<br />&lt;&#8230;.&gt;<br />&lt;Module Name=&#8221;CustomMasterPage&#8221; List=&#8221;116&#8243; Url=&#8221;_catalogs/masterpage&#8221; RootWebOnly=&#8221;FALSE&#8221;&gt;<br />&lt;File Url=&#8221;custom.master&#8221; Type=&#8221;GhostableInLibrary&#8221; IgnoreIfAlreadyExists=&#8221;TRUE&#8221; /&gt;<br />&lt;/Module&gt;<br />  &lt;/Modules&gt;</p>
<p>I have changed my ONET file many times,including trying &lt;Configuration ID=&#8221;0&#8243; Name=&#8221;Default&#8221; CustomMasterUrl=&#8221;~SiteCollection/_catalogs/masterpage/custom.master&#8221; MasterUrl=&#8221;/_catalogs/masterpage/custom.master&#8221;&gt; and this displays the same error as above.</p>
<p>I&#39;m stumped as to how I can get the team site to use the master page from the site collection level, and naturally I&#39;m under heavy time constraints. Can you set me in the right direction?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-869</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Wed, 27 May 2009 22:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-869</guid>
		<description>After further review, I found that you are right CyberJP. The siutation in which that ~SiteCollection will work is very limited. I should have used the more generic approach for this article to cut down on confusion. &lt;br&gt;&lt;br&gt;Change the Onet.xml configuration section to this:&lt;br&gt;&lt;Configuration ID=&quot;0&quot; Name=&quot;Default&quot; CustomMasterUrl=&quot;/_catalogs/masterpage/DemoCompany.master&quot; MasterUrl=&quot;/_catalogs/masterpage/DemoCompany.master&quot;&gt;&lt;br&gt;&lt;br&gt;I tried doing something fancy with the ~SiteCollection and it only worked for very specific situations. This is much more general and will tell the path to look at the root level site collection for the master page. Sorry.&lt;br&gt;&lt;br&gt;I&#039;ve asked the editor of SharePoint Magazine to change the article for me when he has a chance (because he is the only one who can)</description>
		<content:encoded><![CDATA[<p>After further review, I found that you are right CyberJP. The siutation in which that ~SiteCollection will work is very limited. I should have used the more generic approach for this article to cut down on confusion. </p>
<p>Change the Onet.xml configuration section to this:<br />&lt;Configuration ID=&#8221;0&#8243; Name=&#8221;Default&#8221; CustomMasterUrl=&#8221;/_catalogs/masterpage/DemoCompany.master&#8221; MasterUrl=&#8221;/_catalogs/masterpage/DemoCompany.master&#8221;&gt;</p>
<p>I tried doing something fancy with the ~SiteCollection and it only worked for very specific situations. This is much more general and will tell the path to look at the root level site collection for the master page. Sorry.</p>
<p>I&#39;ve asked the editor of SharePoint Magazine to change the article for me when he has a chance (because he is the only one who can)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-868</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Wed, 27 May 2009 22:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-868</guid>
		<description>The WSP version shouldn&#039;t impact the project.&lt;br&gt;I am not sure why you are getting that error. There was an issue with the walkthrough, which I have asked the editor of SharePointMagazine to fix. Try fixing the error by changing the Configuration section of the Onet.xml to:&lt;br&gt;&lt;Configuration ID=&quot;0&quot; Name=&quot;Default&quot; CustomMasterUrl=&quot;/_catalogs/masterpage/DemoCompany.master&quot; MasterUrl=&quot;/_catalogs/masterpage/DemoCompany.master&quot;&gt;&lt;br&gt;&lt;br&gt;However, I am not 100% convinced that will fix your particular error because nobody else has reported that specific error message. And, I couldn&#039;t reproduce that message either. So, you might have other issues with your solution. Maybe a step was missed or mistyped. I am not sure. Tell me if the fix above helps. If not, maybe I can look at your code for you.</description>
		<content:encoded><![CDATA[<p>The WSP version shouldn&#39;t impact the project.<br />I am not sure why you are getting that error. There was an issue with the walkthrough, which I have asked the editor of SharePointMagazine to fix. Try fixing the error by changing the Configuration section of the Onet.xml to:<br />&lt;Configuration ID=&#8221;0&#8243; Name=&#8221;Default&#8221; CustomMasterUrl=&#8221;/_catalogs/masterpage/DemoCompany.master&#8221; MasterUrl=&#8221;/_catalogs/masterpage/DemoCompany.master&#8221;&gt;</p>
<p>However, I am not 100% convinced that will fix your particular error because nobody else has reported that specific error message. And, I couldn&#39;t reproduce that message either. So, you might have other issues with your solution. Maybe a step was missed or mistyped. I am not sure. Tell me if the fix above helps. If not, maybe I can look at your code for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-867</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Wed, 27 May 2009 22:03:51 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-867</guid>
		<description>Barak,&lt;br&gt;I found the issue with the Walkthrough for certain situations. Change the Onet.xml configuration section to this:&lt;br&gt;&lt;Configuration ID=&quot;0&quot; Name=&quot;Default&quot; CustomMasterUrl=&quot;/_catalogs/masterpage/DemoCompany.master&quot; MasterUrl=&quot;/_catalogs/masterpage/DemoCompany.master&quot;&gt;&lt;br&gt;&lt;br&gt;I tried doing something fancy with the ~SiteCollection and it only worked for very specific situations. This is much more general and will tell the path to look at the root level site collection for the master page. Sorry.</description>
		<content:encoded><![CDATA[<p>Barak,<br />I found the issue with the Walkthrough for certain situations. Change the Onet.xml configuration section to this:<br />&lt;Configuration ID=&#8221;0&#8243; Name=&#8221;Default&#8221; CustomMasterUrl=&#8221;/_catalogs/masterpage/DemoCompany.master&#8221; MasterUrl=&#8221;/_catalogs/masterpage/DemoCompany.master&#8221;&gt;</p>
<p>I tried doing something fancy with the ~SiteCollection and it only worked for very specific situations. This is much more general and will tell the path to look at the root level site collection for the master page. Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-866</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Wed, 27 May 2009 21:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-866</guid>
		<description>Hi Raghu,&lt;br&gt;Yes, I just followed the steps on a WSS site and it didn&#039;t work. Instead of using ~SiteCollection in the Onet.xml, try this instead: &lt;Configuration ID=&quot;0&quot; Name=&quot;Default&quot; CustomMasterUrl=&quot;/_catalogs/masterpage/DemoCompany.master&quot; MasterUrl=&quot;/_catalogs/masterpage/DemoCompany.master&quot;&gt;</description>
		<content:encoded><![CDATA[<p>Hi Raghu,<br />Yes, I just followed the steps on a WSS site and it didn&#39;t work. Instead of using ~SiteCollection in the Onet.xml, try this instead: &lt;Configuration ID=&#8221;0&#8243; Name=&#8221;Default&#8221; CustomMasterUrl=&#8221;/_catalogs/masterpage/DemoCompany.master&#8221; MasterUrl=&#8221;/_catalogs/masterpage/DemoCompany.master&#8221;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wang</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-858</link>
		<dc:creator>wang</dc:creator>
		<pubDate>Fri, 15 May 2009 14:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-858</guid>
		<description>it display the error: failed to instantiate file &quot;default.master&quot; from module &quot;defaultmasterpage&quot;: source path &quot;default.master&quot; not found when I  create the sitecollection in central administration by your method.&lt;br&gt;the wsp version will impact the project?</description>
		<content:encoded><![CDATA[<p>it display the error: failed to instantiate file &#8220;default.master&#8221; from module &#8220;defaultmasterpage&#8221;: source path &#8220;default.master&#8221; not found when I  create the sitecollection in central administration by your method.<br />the wsp version will impact the project?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghu</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-857</link>
		<dc:creator>Raghu</dc:creator>
		<pubDate>Tue, 12 May 2009 02:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-857</guid>
		<description>Hi ,&lt;br&gt;I have a quick question i am unable to get the custom masterpage to pickup does this ~SiteCollection is used in MOSS only or can we use this in WSS 3.0?&lt;br&gt;&lt;br&gt;Thanking you in anticipation</description>
		<content:encoded><![CDATA[<p>Hi ,<br />I have a quick question i am unable to get the custom masterpage to pickup does this ~SiteCollection is used in MOSS only or can we use this in WSS 3.0?</p>
<p>Thanking you in anticipation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-705</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Wed, 25 Feb 2009 21:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-705</guid>
		<description>Hi Per,&lt;br&gt;That is a good approach. Remember, think of Site Definitions as &quot;templates&quot;. If you &quot;redeploy&quot; you are just redploying the template. It will not effect the content the users have already started putting into the pages. So, you should have no problem doing this.</description>
		<content:encoded><![CDATA[<p>Hi Per,<br />That is a good approach. Remember, think of Site Definitions as &#8220;templates&#8221;. If you &#8220;redeploy&#8221; you are just redploying the template. It will not effect the content the users have already started putting into the pages. So, you should have no problem doing this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-704</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Wed, 25 Feb 2009 20:55:46 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-704</guid>
		<description>I think you posted this same exact question above in the comments. So, here is the same response :)&lt;br&gt;&lt;br&gt;Depends where the master page lives. If the master page lives within the current site you are on, then it is under the relative path &quot;_catalogs&quot;. However, if the master page lives in the master page gallery on a site collection and you are on a subsite, then you have to build a relatvie path that traverses up to the site collection &quot;~SiteCollection/_catalogs&quot;.&lt;br&gt;The reason I put &quot;~SiteCollection/_catalogs&quot; is because I originally got responses that using &quot;_catalogs&quot; didn&#039;t work. When I discussed this with the people who made the comments, I realized that they were only deploying the master page to the master page gallery at the site collection (or root site) level. Then when they created subsites and used &quot;_catalogs&quot; it wasn&#039;t finding it because it was looking for it at the subsite gallery instead of the the site collection (or root site) gallery.&lt;br&gt;So, I changed the post at that time to tell people to use &quot;~SiteCollection/_catalogs&quot;. This seemed to work for those people and it worked in my test environement. &lt;br&gt;However, since it didn&#039;t work for you, then maybe there are specific situations in which this doesn&#039;t work. MOSS vs WSS. Publishing vs Non-Publishing. In SharePoint there can be a lot of reasons.&lt;br&gt;Regardless, if you are doing the straight &quot;_catalogs&quot; way, then just be careful with sub-sites. You have to make sure the feature that deploys the master page to the master page gallery does it at a &quot;Web&quot; level. That will ensure that the master page goes into the gallery at each sub-web. This post says to do it at a &quot;Site&quot; level. And that will only put the master page at the site collection (or root web).</description>
		<content:encoded><![CDATA[<p>I think you posted this same exact question above in the comments. So, here is the same response <img src='http://sharepointmagazine.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Depends where the master page lives. If the master page lives within the current site you are on, then it is under the relative path &#8220;_catalogs&#8221;. However, if the master page lives in the master page gallery on a site collection and you are on a subsite, then you have to build a relatvie path that traverses up to the site collection &#8220;~SiteCollection/_catalogs&#8221;.<br />The reason I put &#8220;~SiteCollection/_catalogs&#8221; is because I originally got responses that using &#8220;_catalogs&#8221; didn&#39;t work. When I discussed this with the people who made the comments, I realized that they were only deploying the master page to the master page gallery at the site collection (or root site) level. Then when they created subsites and used &#8220;_catalogs&#8221; it wasn&#39;t finding it because it was looking for it at the subsite gallery instead of the the site collection (or root site) gallery.<br />So, I changed the post at that time to tell people to use &#8220;~SiteCollection/_catalogs&#8221;. This seemed to work for those people and it worked in my test environement. <br />However, since it didn&#39;t work for you, then maybe there are specific situations in which this doesn&#39;t work. MOSS vs WSS. Publishing vs Non-Publishing. In SharePoint there can be a lot of reasons.<br />Regardless, if you are doing the straight &#8220;_catalogs&#8221; way, then just be careful with sub-sites. You have to make sure the feature that deploys the master page to the master page gallery does it at a &#8220;Web&#8221; level. That will ensure that the master page goes into the gallery at each sub-web. This post says to do it at a &#8220;Site&#8221; level. And that will only put the master page at the site collection (or root web).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-703</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Wed, 25 Feb 2009 20:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-703</guid>
		<description>Depends where the master page lives. If the master page lives within the current site you are on, then it is under the relative path &quot;_catalogs&quot;. However, if the master page lives in the master page gallery on a site collection and you are on a subsite, then you have to build a relatvie path that traverses up to the site collection &quot;~SiteCollection/_catalogs&quot;.&lt;br&gt;The reason I put &quot;~SiteCollection/_catalogs&quot; is because I originally got responses that using &quot;_catalogs&quot; didn&#039;t work. When I discussed this with the people who made the comments, I realized that they were only deploying the master page to the master page gallery at the site collection (or root site) level. Then when they created subsites and used &quot;_catalogs&quot; it wasn&#039;t finding it because it was looking for it at the subsite gallery instead of the the site collection (or root site) gallery.&lt;br&gt;So, I changed the post at that time to tell people to use &quot;~SiteCollection/_catalogs&quot;. This seemed to work for those people and it worked in my test environement. &lt;br&gt;However, since it didn&#039;t work for you, then maybe there are specific situations in which this doesn&#039;t work. MOSS vs WSS. Publishing vs Non-Publishing. In SharePoint there can be a lot of reasons.&lt;br&gt;Regardless, if you are doing the straight &quot;_catalogs&quot; way, then just be careful with sub-sites. You have to make sure the feature that deploys the master page to the master page gallery does it at a &quot;Web&quot; level. That will ensure that the master page goes into the gallery at each sub-web. This post says to do it at a &quot;Site&quot; level. And that will only put the master page at the site collection (or root web).</description>
		<content:encoded><![CDATA[<p>Depends where the master page lives. If the master page lives within the current site you are on, then it is under the relative path &#8220;_catalogs&#8221;. However, if the master page lives in the master page gallery on a site collection and you are on a subsite, then you have to build a relatvie path that traverses up to the site collection &#8220;~SiteCollection/_catalogs&#8221;.<br />The reason I put &#8220;~SiteCollection/_catalogs&#8221; is because I originally got responses that using &#8220;_catalogs&#8221; didn&#39;t work. When I discussed this with the people who made the comments, I realized that they were only deploying the master page to the master page gallery at the site collection (or root site) level. Then when they created subsites and used &#8220;_catalogs&#8221; it wasn&#39;t finding it because it was looking for it at the subsite gallery instead of the the site collection (or root site) gallery.<br />So, I changed the post at that time to tell people to use &#8220;~SiteCollection/_catalogs&#8221;. This seemed to work for those people and it worked in my test environement. <br />However, since it didn&#39;t work for you, then maybe there are specific situations in which this doesn&#39;t work. MOSS vs WSS. Publishing vs Non-Publishing. In SharePoint there can be a lot of reasons.<br />Regardless, if you are doing the straight &#8220;_catalogs&#8221; way, then just be careful with sub-sites. You have to make sure the feature that deploys the master page to the master page gallery does it at a &#8220;Web&#8221; level. That will ensure that the master page goes into the gallery at each sub-web. This post says to do it at a &#8220;Site&#8221; level. And that will only put the master page at the site collection (or root web).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CyberJP</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-699</link>
		<dc:creator>CyberJP</dc:creator>
		<pubDate>Wed, 25 Feb 2009 03:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-699</guid>
		<description>When I try the example, master page does not work with this :&lt;br&gt;&lt;br&gt;&lt;Configuration ID=”0? Name=”Default” CustomMasterUrl=”~SiteCollection/_catalogs/masterpage/DemoCompany.master”&lt;br&gt;MasterUrl=”~SiteCollection/_catalogs/masterpage/DemoCompany.master”&gt;&lt;br&gt;&lt;br&gt;but work with this :&lt;br&gt;&lt;br&gt;&lt;Configuration ID=”0? Name=”Default” CustomMasterUrl=”_catalogs/masterpage/DemoCompany.master”&lt;br&gt;MasterUrl=”_catalogs/masterpage/DemoCompany.master”&gt;&lt;br&gt;&lt;br&gt;Why ?</description>
		<content:encoded><![CDATA[<p>When I try the example, master page does not work with this :</p>
<p>&lt;Configuration ID=”0? Name=”Default” CustomMasterUrl=”~SiteCollection/_catalogs/masterpage/DemoCompany.master”<br />MasterUrl=”~SiteCollection/_catalogs/masterpage/DemoCompany.master”&gt;</p>
<p>but work with this :</p>
<p>&lt;Configuration ID=”0? Name=”Default” CustomMasterUrl=”_catalogs/masterpage/DemoCompany.master”<br />MasterUrl=”_catalogs/masterpage/DemoCompany.master”&gt;</p>
<p>Why ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CyberJP</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-701</link>
		<dc:creator>CyberJP</dc:creator>
		<pubDate>Wed, 25 Feb 2009 00:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-701</guid>
		<description>Master page does not work with :&lt;br&gt;MasterUrl=”~SiteCollection/_catalogs/masterpage/DemoCompany.master”&gt;&lt;br&gt;&lt;br&gt;but work with :&lt;br&gt;MasterUrl=”_catalogs/masterpage/DemoCompany.master”&gt;</description>
		<content:encoded><![CDATA[<p>Master page does not work with :<br />MasterUrl=”~SiteCollection/_catalogs/masterpage/DemoCompany.master”&gt;</p>
<p>but work with :<br />MasterUrl=”_catalogs/masterpage/DemoCompany.master”&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Per</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-700</link>
		<dc:creator>Per</dc:creator>
		<pubDate>Tue, 24 Feb 2009 18:12:12 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-700</guid>
		<description>Hi Greg&lt;br&gt;&lt;br&gt;Thanks for this well explained article. I have one question:&lt;br&gt;Eventually I will deploy my solution to the production environment and the users will start using it, adding articles etc to the site. If the user then later wants changes to the masterpage, css or other elements in a running site, should I then change the solution an &quot;redeploy&quot; to production (after testing), or should I use another approach.&lt;br&gt;Thanks in advance&lt;br&gt;Per</description>
		<content:encoded><![CDATA[<p>Hi Greg</p>
<p>Thanks for this well explained article. I have one question:<br />Eventually I will deploy my solution to the production environment and the users will start using it, adding articles etc to the site. If the user then later wants changes to the masterpage, css or other elements in a running site, should I then change the solution an &#8220;redeploy&#8221; to production (after testing), or should I use another approach.<br />Thanks in advance<br />Per</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-679</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Thu, 19 Feb 2009 21:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-679</guid>
		<description>I am not really sure Chetan, there could be multiple issues. However, I can help you debug. You are just getting &quot;unexpected error&quot;. You need to get a better error message first before you can figure out what is going on. You could sort through your logs for this. Or, you could turn on debugging messages. Please refer to my blog on how to do that: &lt;a href=&quot;http://greggalipeau.wordpress.com/2008/01/21/debugging-sharepoint/&quot; rel=&quot;nofollow&quot;&gt;http://greggalipeau.wordpress.com/2008/01/21/de...&lt;/a&gt;&lt;br&gt;That should get you a better message and hopefully you can figure out what the issue is.</description>
		<content:encoded><![CDATA[<p>I am not really sure Chetan, there could be multiple issues. However, I can help you debug. You are just getting &#8220;unexpected error&#8221;. You need to get a better error message first before you can figure out what is going on. You could sort through your logs for this. Or, you could turn on debugging messages. Please refer to my blog on how to do that: <a href="http://greggalipeau.wordpress.com/2008/01/21/debugging-sharepoint/" rel="nofollow"></a><a href="http://greggalipeau.wordpress.com/2008/01/21/de.." rel="nofollow">http://greggalipeau.wordpress.com/2008/01/21/de..</a>.<br />That should get you a better message and hopefully you can figure out what the issue is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-678</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Thu, 19 Feb 2009 21:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-678</guid>
		<description>Nope, thats not a typo. I explained it a little more clearly in some of the earlier articles. It is basically saying replace the &quot;MasterUrl&quot; with DemoCompany.master. If you don&#039;t do that, then SharePoint will replace the &quot;MasterUrl&quot; with default.master. So, you are not actually replacing default.master, you are just telling SharePoint what the &quot;MasterUrl&quot; is (which is how it knows the master page to use).</description>
		<content:encoded><![CDATA[<p>Nope, thats not a typo. I explained it a little more clearly in some of the earlier articles. It is basically saying replace the &#8220;MasterUrl&#8221; with DemoCompany.master. If you don&#39;t do that, then SharePoint will replace the &#8220;MasterUrl&#8221; with default.master. So, you are not actually replacing default.master, you are just telling SharePoint what the &#8220;MasterUrl&#8221; is (which is how it knows the master page to use).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ggalipeau</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-677</link>
		<dc:creator>ggalipeau</dc:creator>
		<pubDate>Thu, 19 Feb 2009 21:36:16 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-677</guid>
		<description>Sorry it took me sol long to get ack to you Barak. I am not getting emails from this site on when people leave comments, so I thought I just wasn&#039;t getting any :)&lt;br&gt;I am not sure what you problem is. However, one thing that comes to mind is &quot;Are you expecting this to show up on sites that already exist?&quot;&lt;br&gt;This Site Definition process only works on new sites. For already created sites, you just have to deploy the feature to move the master page to the master page gallery. And, unfortunately, you have to manually choose the master page on the existing site.&lt;br&gt;I actually built myself a little winform app that recursively loops through the sites and turns this on for me. So, programmatically is anothe choice, as opposed to manually, for already existing sites.&lt;br&gt;It is unfortunate in the way they designed that. Sorry.&lt;br&gt;If this is not your situation, then I am not sure why you are having issues. I have worked through this with lots of people and sometimes it comes down to a mistype somewhere or something really small like that.</description>
		<content:encoded><![CDATA[<p>Sorry it took me sol long to get ack to you Barak. I am not getting emails from this site on when people leave comments, so I thought I just wasn&#39;t getting any <img src='http://sharepointmagazine.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />I am not sure what you problem is. However, one thing that comes to mind is &#8220;Are you expecting this to show up on sites that already exist?&#8221;<br />This Site Definition process only works on new sites. For already created sites, you just have to deploy the feature to move the master page to the master page gallery. And, unfortunately, you have to manually choose the master page on the existing site.<br />I actually built myself a little winform app that recursively loops through the sites and turns this on for me. So, programmatically is anothe choice, as opposed to manually, for already existing sites.<br />It is unfortunate in the way they designed that. Sorry.<br />If this is not your situation, then I am not sure why you are having issues. I have worked through this with lots of people and sometimes it comes down to a mistype somewhere or something really small like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chetan</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-659</link>
		<dc:creator>Chetan</dc:creator>
		<pubDate>Sun, 15 Feb 2009 06:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-659</guid>
		<description>Good tips on the deployment Greg! Here is a issue I&#039;ve got: In &quot;development&quot; environment, I have a master page on which there are a couple of web parts incorporated thru the Sharepoint Designer. I move my solution to production and re-activate/de-activate the feature which points to my custom master page and it breaks with the uusual &quot;unexpected error&quot;. I&#039;m wondering, if my assembly has changed, do I have to re-add the webparts thru Sharepoint designer in &quot;development&quot; again and re-deploy? Could it be possible that the webparts have a new ID - but if that was the case my &quot;development&quot; would have errored out too! Any pointers?</description>
		<content:encoded><![CDATA[<p>Good tips on the deployment Greg! Here is a issue I&#39;ve got: In &#8220;development&#8221; environment, I have a master page on which there are a couple of web parts incorporated thru the Sharepoint Designer. I move my solution to production and re-activate/de-activate the feature which points to my custom master page and it breaks with the uusual &#8220;unexpected error&#8221;. I&#39;m wondering, if my assembly has changed, do I have to re-add the webparts thru Sharepoint designer in &#8220;development&#8221; again and re-deploy? Could it be possible that the webparts have a new ID &#8211; but if that was the case my &#8220;development&#8221; would have errored out too! Any pointers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barak</title>
		<link>http://sharepointmagazine.net/technical/development/incorporating-a-master-page-into-a-sharepoint-site-definition-master-pages-and-sharepoint-part-6-of-6/comment-page-1#comment-608</link>
		<dc:creator>Barak</dc:creator>
		<pubDate>Thu, 29 Jan 2009 01:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://sharepointmagazine.net/?p=1999#comment-608</guid>
		<description>Hi Greg,&lt;br&gt;&lt;br&gt;Great article!! However, when I followed the article I&#039;ve got everything right, except that in the default.aspx it was still pointing to default.master and not to DemoCompany.master&lt;br&gt;I&#039;ve checked &amp; doubled checked the onet.xml, but it was exacly as you wrote it. Any idea why this is happening?</description>
		<content:encoded><![CDATA[<p>Hi Greg,</p>
<p>Great article!! However, when I followed the article I&#39;ve got everything right, except that in the default.aspx it was still pointing to default.master and not to DemoCompany.master<br />I&#39;ve checked &#038; doubled checked the onet.xml, but it was exacly as you wrote it. Any idea why this is happening?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
