<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.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>Sharing Master Pages Across IIS Applications</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx</link><description>I'm working on an ASP.NET site that consists of many government departments each having their own IIS application off of the root of the server so that they can have complete control over their own web.config file, etc.. Each department site inherited</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>condividere una masterpage tra piu siti | hilpers</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#6843713</link><pubDate>Sun, 18 Jan 2009 13:25:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6843713</guid><dc:creator>condividere una masterpage tra piu siti | hilpers</dc:creator><author>condividere una masterpage tra piu siti | hilpers</author><description>&lt;p&gt;Pingback from &amp;nbsp;condividere una masterpage tra piu siti | hilpers&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6843713" width="1" height="1"&gt;</description></item><item><title>re: Sharing Master Pages Across IIS Applications</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#2191182</link><pubDate>Sat, 07 Apr 2007 22:17:25 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2191182</guid><dc:creator>dwahlin</dc:creator><author>dwahlin</author><description>&lt;p&gt;I'd make sure that the assembly is installed in the GAC properly and that there aren't any typos in assembly attribute of web.config. &amp;nbsp;If it is in the GAC properly then it's really hard to say without being able to inspect the application more.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2191182" width="1" height="1"&gt;</description></item><item><title>re: Sharing Master Pages Across IIS Applications</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#2181060</link><pubDate>Thu, 05 Apr 2007 07:19:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2181060</guid><dc:creator>Antti</dc:creator><author>Antti</author><description>&lt;p&gt;Hi I'm having problems when i try to run the website it informs that &lt;/p&gt;
&lt;p&gt;Parser Error Message: Could not load file or assembly 'App_Web_masterpagebase.master.cdcab7d2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=04fe06ff2beb1ab6' or one of its dependencies. The system cannot find the file specified.&lt;/p&gt;
&lt;p&gt;and the problem is in web.config line 17&lt;/p&gt;
&lt;p&gt;Line 15: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;compilation debug=&amp;quot;true&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;Line 16: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;assemblies&amp;gt;&lt;/p&gt;
&lt;p&gt;Line 17: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;add assembly=&amp;quot;App_Web_masterpagebase.master.cdcab7d2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=04fe06ff2beb1ab6&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;Line 18: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/assemblies&amp;gt;&lt;/p&gt;
&lt;p&gt;Line 19: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/compilation&amp;gt;&lt;/p&gt;
&lt;p&gt;Can you help me?&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2181060" width="1" height="1"&gt;</description></item><item><title>re: Sharing Master Pages Across IIS Applications</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#2065562</link><pubDate>Tue, 20 Mar 2007 04:49:59 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2065562</guid><dc:creator>dwahlin</dc:creator><author>dwahlin</author><description>&lt;p&gt;Correct, 0X166 is first used as the size and then the offset. &amp;nbsp;So, have you checked that the visible size matches with what it says the size is? &amp;nbsp;I don't see anything wrong just glancing at it, so there has to be more going on behind the scenes I would guess. &amp;nbsp;At this point I'd start deleting sections of the code to see if you can't narrow down the issue (experimentation basically). &amp;nbsp;I really don't have any other suggestions other than doing that since visually it seems to be normal code.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2065562" width="1" height="1"&gt;</description></item><item><title>re: Sharing Master Pages Across IIS Applications</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#2065205</link><pubDate>Tue, 20 Mar 2007 03:34:09 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2065205</guid><dc:creator>liviner</dc:creator><author>liviner</author><description>&lt;p&gt;I don't think it's got anything to do with the 0x166. &amp;nbsp;That just represents the length of the string passed to the CRBLC call. &amp;nbsp;Based on the information in the Reflector code, the markup in question is provided below:&lt;/p&gt;
&lt;p&gt;&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;width: 30px;&amp;quot; /&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;table cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;-1&amp;quot; class=&amp;quot;master_mid&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th scope=&amp;quot;col&amp;quot; /&amp;gt;&amp;lt;th scope=&amp;quot;col&amp;quot; /&amp;gt;&amp;lt;th scope=&amp;quot;col&amp;quot; /&amp;gt;&amp;lt;th scope=&amp;quot;col&amp;quot; /&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td scope=&amp;quot;row&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;Graphics/Images/blank10x10.gif&amp;quot; alt=&amp;quot;&amp;quot; class=&amp;quot;mid_spacer_left&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot; style=&amp;quot;width: -1px; position: relative;&amp;quot; class=&amp;quot;cpanel&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;This is exactly all the markup between the cphTop ConentPlaceHolder and the cphLeft ContentPlaceHolder, leaving me to believe that the problem generating the first call is in there somewhere. &amp;nbsp;I just can't find it as I don't see any extraneous characters.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2065205" width="1" height="1"&gt;</description></item><item><title>re: Sharing Master Pages Across IIS Applications</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#2065121</link><pubDate>Tue, 20 Mar 2007 03:14:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2065121</guid><dc:creator>dwahlin</dc:creator><author>dwahlin</author><description>&lt;p&gt;I'm not sure what character 0x166 represents but I'm wondering if you may have a hidden type unicode character somewhere in your page that is causing the problem since that seems to show up in both CreateResourceBasedLiteralControl() calls. &amp;nbsp;It's tough to say though. &amp;nbsp;I'd probably start removing different characters to see if you can locate the general area where this is occurring and what is causing it. &amp;nbsp;Not a fun task I'll admit though unfortunately.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2065121" width="1" height="1"&gt;</description></item><item><title>CreateResourceBasedLiteralControl</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#2064661</link><pubDate>Tue, 20 Mar 2007 01:25:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2064661</guid><dc:creator>liviner</dc:creator><author>liviner</author><description>&lt;p&gt;Found this methodology in the MVP Hacks and Tips book you co-authored. &amp;nbsp;I've been trying my best to get rid of all the calls to CreateResourceBasedLiteralControl, and cannot do it even with the entire markup for the master page on a single line.&lt;/p&gt;
&lt;p&gt;Here's a snippet from Reflector of the code still making the call:&lt;/p&gt;
&lt;p&gt;private HtmlForm __BuildControlform1()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;HtmlForm form = new HtmlForm();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;base.form1 = form;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;form.ID = &amp;quot;form1&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;IParserAccessor accessor = form;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;accessor.AddParsedSubObject(new LiteralControl(&amp;quot;&amp;lt;div class=\&amp;quot;master_div\&amp;quot;&amp;gt;&amp;lt;img src=\&amp;quot;Graphics/Images/blank20x20.gif\&amp;quot; alt=\&amp;quot;\&amp;quot; /&amp;gt;&amp;lt;table id=\&amp;quot;topTable\&amp;quot; cellpadding=\&amp;quot;0\&amp;quot; cellspacing=\&amp;quot;-1\&amp;quot; class=\&amp;quot;master_top\&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th scope=\&amp;quot;col\&amp;quot; /&amp;gt;&amp;lt;th scope=\&amp;quot;col\&amp;quot; /&amp;gt;&amp;lt;th scope=\&amp;quot;col\&amp;quot; /&amp;gt;&amp;lt;th scope=\&amp;quot;col\&amp;quot; /&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;quot;));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;HtmlTableCell cell = this.__BuildControlanim();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;accessor.AddParsedSubObject(cell);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;accessor.AddParsedSubObject(new LiteralControl(&amp;quot;&amp;lt;td /&amp;gt;&amp;lt;td align=\&amp;quot;center\&amp;quot; valign=\&amp;quot;top\&amp;quot; style=\&amp;quot;width: 435px; position: relative;\&amp;quot;&amp;gt;&amp;quot;));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;ContentPlaceHolder holder = this.__BuildControlcphTop();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;accessor.AddParsedSubObject(holder);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;accessor.AddParsedSubObject(base.CreateResourceBasedLiteralControl(0, 0x166, true));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;ContentPlaceHolder holder2 = this.__BuildControlcphLeft();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;accessor.AddParsedSubObject(holder2);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;accessor.AddParsedSubObject(new LiteralControl(&amp;quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=\&amp;quot;Graphics/Images/blank10x10.gif\&amp;quot; alt=\&amp;quot;\&amp;quot; class=\&amp;quot;master_vert_sep\&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td valign=\&amp;quot;top\&amp;quot; style=\&amp;quot;width: 892px; position: relative;\&amp;quot;&amp;gt;&amp;quot;));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;ContentPlaceHolder holder3 = this.__BuildControlcphMain();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;accessor.AddParsedSubObject(holder3);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;accessor.AddParsedSubObject(base.CreateResourceBasedLiteralControl(0x166, 0x37e, true));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;return form;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I cannot for the life of me figure out what is forcing the compiler to make that call. &amp;nbsp;Any suggestions?&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2064661" width="1" height="1"&gt;</description></item><item><title>re: Sharing Master Pages Across IIS Applications</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#1457036</link><pubDate>Tue, 23 Jan 2007 16:09:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1457036</guid><dc:creator>dwahlin</dc:creator><author>dwahlin</author><description>&lt;p&gt;It can be hard to find, but you'll need to look through everything in the assembly (different methods, etc.) that you generate and make sure that there are no calls to that CreateResourceBasedLiteralControl() method. &amp;nbsp;If you're getting that error then make sure you remove as much whitespace as you can from the master. &amp;nbsp;That seems to fix it in most situations.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1457036" width="1" height="1"&gt;</description></item><item><title>re: Sharing Master Pages Across IIS Applications</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#1451272</link><pubDate>Mon, 22 Jan 2007 20:12:36 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1451272</guid><dc:creator>Curt</dc:creator><author>Curt</author><description>&lt;p&gt; Thanks for the article Dan, I am trying to use the technique to allow us to share one master page across a set of intranet applications. &amp;nbsp;I was wondering if you could go into some more detail about how to find the CreateResourceBasedLiteralControl references? &amp;nbsp;I downloaded the reflector tool, but don't seem to find any references to that, and I am getting the error loading the string resources.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt; Curt&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1451272" width="1" height="1"&gt;</description></item><item><title>re: Sharing Master Pages Across IIS Applications</title><link>http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx#1207060</link><pubDate>Sun, 10 Dec 2006 21:41:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1207060</guid><dc:creator>Milas</dc:creator><author>Milas</author><description>&lt;p&gt;Well...good news, i like your site, Happy new year! ))) &lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1207060" width="1" height="1"&gt;</description></item></channel></rss>