<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://mattonsoftware.com/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>mattonsoftware.com : .NET</title><link>http://mattonsoftware.com/archive/tags/.NET/default.aspx</link><description>Tags: .NET</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>PPUtil: A Utility for Publisher Policy Generation</title><link>http://mattonsoftware.com/archive/2007/03/11/pputil-a-utility-for-publisher-policy-generation.aspx</link><pubDate>Sun, 11 Mar 2007 09:23:00 GMT</pubDate><guid isPermaLink="false">6209d34a-f29a-4dc5-b4bf-33cf47346ec7:685</guid><dc:creator>matt</dc:creator><slash:comments>32</slash:comments><comments>http://mattonsoftware.com/comments/685.aspx</comments><wfw:commentRss>http://mattonsoftware.com/commentrss.aspx?PostID=685</wfw:commentRss><description>&lt;p&gt;The &lt;a href="http://msdn2.microsoft.com/en-us/library/dz32563a.aspx" class=""&gt;conventional method&lt;/a&gt;
of creating publisher policy (PP) assemblies becomes cumbersome when
dealing with many assemblies, and many earlier versions of assemblies&lt;sup&gt;&lt;a href="http://mattonsoftware.com/archive/2007/03/11/pputil-a-utility-for-publisher-policy-generation.aspx#FOOTNOTE_1" class="" title="Footnote 1" target="_self"&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;br&gt;&lt;/p&gt;

&lt;p&gt;PPUtil is a configuration-based utility for generating PP for many
assemblies/versions. This tool was authored using .NET 2.0, however,
the resultant PP assemblies can be used with .NET 1.0/1.1-compiled
assemblies.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Download&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Binaries: &lt;a href="http://mattonsoftware.com/source/PPUtil_Binaries_v1_0_0_0.zip" class=""&gt;PPUtil_Binaries_v1_0_0_0.zip&lt;/a&gt; &lt;br&gt;&lt;/li&gt;&lt;li&gt;Source: &lt;a href="http://mattonsoftware.com/source/PPUtil_Source_v1_0_0_0.zip" class=""&gt;PPUtil_Source_v1_0_0_0.zip&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
This work is licensed under a &lt;a href="http://creativecommons.org/licenses/by/3.0/" rel="license"&gt;Creative Commons Attribution 3.0 License&lt;/a&gt;.&lt;br&gt;
&lt;p&gt;&lt;b&gt;Usage&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;PPUtil configurationFile outputDirectory&lt;br&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Common Usage Scenarios&amp;nbsp;&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Redirect a specific earlier version of an assembly to a later version;&lt;/li&gt;&lt;li&gt;Redirect a range of earlier versions of an assembly to a later version.&lt;/li&gt;&lt;/ul&gt;
In both scenarios, resolution of the redirection for the earlier assembly
versions is limited to major/minor version combinations i.e. build and revision numbers are not considered. This is due to the design of the
publisher policy mechanism itself.&amp;nbsp; &lt;p&gt;&lt;b&gt;Configuration Examples&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;Redirect a specific earlier version of an assembly to a later version&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;Use the oldVersion attribute of the bindingRedirect element to
specify the specific earlier version to redirect from. The major/minor
component of the oldVersion will typically correspond to the
oldMajorMinorVersion attribute of the publisherPolicy element.&lt;br&gt;&lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicy&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;assemblies&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;assembly&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;name&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;SampleAssembly&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;publicKeyToken&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;baa3201a127d8068&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;strongNameKeyPath&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;SampleKey.snk&lt;/span&gt;"&lt;span style="color:blue;"&gt; &amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt; &lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicies&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicy&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;oldMajorMinorVersion&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;1.0&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;span style="color:red;"&gt;version&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;1.0.0.0&lt;/span&gt;"&lt;span style="color:blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt; &lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;bindingRedirect&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt; &lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;color:red;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;oldVersion&lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;color:blue;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;=&lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;"&lt;span style="color:blue;"&gt;1.0.0.0&lt;/span&gt;"&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;span style="color:red;"&gt;newVersion&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;1.1.0.0&lt;/span&gt;"&lt;span style="color:blue;"&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt; &lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicy&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicies&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;assembly&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;assemblies&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&amp;nbsp; &lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&lt;br&gt;&lt;/span&gt;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicy&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;/span&gt; &lt;/p&gt;
&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;i&gt;Redirect a range of earlier versions of an assembly to a later version&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;Use the oldLowestVersion and oldHighestVersion attributes of the
bindingRedirect element to specify the range of earlier versions to
redirect from.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicy&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;assemblies&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;assembly&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;name&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;SampleAssembly&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; publicKeyToken&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;baa3201a127d8068&lt;/span&gt;"&lt;span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;strongNameKeyPath&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;SampleKey.snk&lt;/span&gt;"&lt;span&gt; &amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicies&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicy&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;oldMajorMinorVersion&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;2.0&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;span style="color:red;"&gt;version&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;2.0.0.0&lt;/span&gt;"&lt;span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;bindingRedirect&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt; &lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;color:red;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;oldLowestVersion&lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;color:blue;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;=&lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;"&lt;span style="color:blue;"&gt;2.0.0.0&lt;/span&gt;"&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;color:red;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;color:red;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;oldHighestVersion&lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;color:blue;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;=&lt;/span&gt;&lt;span style="background:lime none repeat scroll 0% 50%;font-size:10pt;font-family:'Courier New';-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;"&lt;span style="color:blue;"&gt;2.1.0.9&lt;/span&gt;"&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Courier New';"&gt;&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;newVersion&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;2.2.0.0&lt;/span&gt;"&lt;span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicy&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicies&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;assembly&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;assemblies&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;span&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;publisherPolicy&lt;/span&gt;&amp;gt;&lt;/p&gt;
&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;/span&gt;
&lt;p&gt;&lt;b&gt;Tips&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;The provided configuration file must include a configuration
section declaration for the publisherPolicy configuration section, as
follows. The utility will also detect the absence of this declaration
and prompt the user accordingly.&lt;/li&gt;&lt;/ul&gt;

&lt;blockquote&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;configuration&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;configSections&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;section&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt; &lt;/span&gt;&lt;span style="font-size:10pt;color:red;font-family:'Courier New';"&gt;name&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;"&lt;span style="color:blue;"&gt;publisherPolicy&lt;/span&gt;"&lt;span style="color:blue;"&gt;&lt;/span&gt;&lt;span style="color:red;"&gt; type&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;PublisherPolicyTool.Configuration.PublisherPolicyConfigurationSection, PPUtil&lt;/span&gt;"&lt;span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;configSections&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;br&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:10pt;color:maroon;font-family:'Courier New';"&gt;configuration&lt;/span&gt;&amp;gt; &lt;span style="font-size:10pt;color:blue;font-family:'Courier New';"&gt;&lt;/span&gt;&lt;/blockquote&gt;

&lt;ul&gt;&lt;li&gt;The PP assembly itself is versioned. When there are multiple
versions of a&amp;nbsp;PP assembly available, the version with the highest
number is used. In .NET 1.0/1.1 a bug exists in the assembly loader
whereby when determining the&amp;nbsp;PP assembly with the highest number, &lt;a href="http://blogs.msdn.com/junfeng/archive/2005/12/16/504555.aspx" class=""&gt;the version numbers are sorted in alphabetic order, rather than numeric order&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The same strong name key used to sign the assembly the PP applies to must be used to sign the PP assembly;&lt;/li&gt;&lt;li&gt;When GACing a PP assembly, the generated PP configuration file must reside in the same folder as the PP assembly;&lt;/li&gt;&lt;li&gt;To diagnose binding issues, the binding resolution can be traced using fuslogw or &lt;a href="http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx" class=""&gt;output to disk by modifying registry values&lt;/a&gt;;&lt;/li&gt;&lt;/ul&gt;
&lt;b&gt;Acknowledgments&lt;/b&gt; 
&lt;p&gt;The idea of using the managed assembly builder APIs for PP generation was derived from &lt;a href="http://weblogs.asp.net/okloeten/archive/2004/02/24/79143.aspx" class=""&gt;Omers publisher policy generation sample&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Footnotes&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;a class="" title="FOOTNOTE_1" name="FOOTNOTE_1"&gt;&lt;/a&gt;1:
Generating&amp;nbsp;PP involves specifying the old version (major and minor
version number resolution) of an assembly that the binding policy
within the PP assembly will be applied to. The old version corresponds
to an earlier version of an assembly that is referenced by dependent
assemblies. &lt;br&gt;&lt;/p&gt;&lt;img src="http://mattonsoftware.com/aggbug.aspx?PostID=685" width="1" height="1"&gt;</description><category domain="http://mattonsoftware.com/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mattonsoftware.com/archive/tags/Tools/default.aspx">Tools</category><category domain="http://mattonsoftware.com/archive/tags/PublisherPolicy/default.aspx">PublisherPolicy</category></item><item><title>LibCheck: Highlight Public API Differences Between Assembly Revisions</title><link>http://mattonsoftware.com/archive/2006/09/28/21.aspx</link><pubDate>Thu, 28 Sep 2006 13:50:00 GMT</pubDate><guid isPermaLink="false">6209d34a-f29a-4dc5-b4bf-33cf47346ec7:21</guid><dc:creator>matt</dc:creator><slash:comments>1528</slash:comments><comments>http://mattonsoftware.com/comments/21.aspx</comments><wfw:commentRss>http://mattonsoftware.com/commentrss.aspx?PostID=21</wfw:commentRss><description>&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=4b5b7f29-1939-4e5b-a780-70e887964165&amp;amp;displaylang=en"&gt;LibCheck&lt;/a&gt; is an assembly comparison tool that:&lt;br&gt;&lt;br&gt;&lt;i&gt;"... allows you to compare two versions of an assembly, and determine the differences. The tool reports the differences as a combination of 'removed' and 'added' APIs."&lt;/i&gt;&lt;br&gt;&lt;br&gt;The comparison results present:&lt;br&gt;&lt;ul&gt;&lt;li&gt;"removed" items: the original member has been either removed or modified;&lt;/li&gt;&lt;li&gt;"added" items: member has been added to the new version, or is a modified form of an original member;&lt;/li&gt;&lt;li&gt;breaking changes highlighted in red.&lt;/li&gt;&lt;/ul&gt;The following example compares two versions of an assembly.&lt;br&gt;&lt;br&gt;&lt;b&gt;Generating Metadata for Comparison&lt;/b&gt;&lt;br&gt;&lt;br&gt;libcheck.exe -store &lt;i&gt;AssemblyName FolderNameToStoreResults &lt;/i&gt;-full &lt;i&gt;FolderContainingAssembly&lt;/i&gt;&lt;br&gt;&lt;br&gt;For example:&lt;br&gt;&lt;br&gt;&amp;nbsp; libcheck.exe -store HelloWorld.dll 1.0.0.0 -full C:\HelloWorldV1\&lt;br&gt;&lt;br&gt;&amp;nbsp; libcheck.exe -store HelloWorld.dll 2.0.0.0 -full C:\HelloWorldV2\&lt;br&gt;&lt;br&gt;&lt;b&gt;Performing the Comparison&lt;/b&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; libcheck.exe -compare &lt;i&gt;FolderContainingFirstStoreResults FolderContainingSecondStoreResults &lt;/i&gt;&lt;br&gt;&lt;br&gt;For example:&lt;br&gt;&lt;br&gt;&amp;nbsp; libcheck.exe -compare 1.0.0.0 2.0.0.0 &lt;br&gt;&lt;br&gt;Here is an &lt;a HREF="/examples/libcheck/APIChanges1.0.0.0to2.0.0.0.html"&gt;example comparison report&lt;/a&gt;.&lt;br&gt;&lt;img src="http://mattonsoftware.com/aggbug.aspx?PostID=21" width="1" height="1"&gt;</description><category domain="http://mattonsoftware.com/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mattonsoftware.com/archive/tags/Tools/default.aspx">Tools</category></item><item><title>Debugging Production Applications using ADPlus</title><link>http://mattonsoftware.com/archive/2006/09/21/debugging-production-applications-using-adplus.aspx</link><pubDate>Fri, 22 Sep 2006 03:02:00 GMT</pubDate><guid isPermaLink="false">6209d34a-f29a-4dc5-b4bf-33cf47346ec7:20</guid><dc:creator>matt</dc:creator><slash:comments>932</slash:comments><comments>http://mattonsoftware.com/comments/20.aspx</comments><wfw:commentRss>http://mattonsoftware.com/commentrss.aspx?PostID=20</wfw:commentRss><description>&lt;p&gt;ADPlus is used to take snapshots of processes in&amp;nbsp;environments where development-time debugging tools are not available e.g. Production server farms, end-users workstations. ADPlus is a Visual Basic&amp;nbsp;script provided as part of the Debugging Tools for Windows&amp;nbsp;that wraps the CDB debugger. &lt;/p&gt;

&lt;p&gt;Snapshots of processes&amp;nbsp;taken with ADPlus are analysed using the Windows Debugger (WinDbg). Managed processes in particular are analysed using SOS.dll, which contains extensions to WinDbg for debugging managed processes.&lt;/p&gt;&lt;p&gt;Practical applications include taking snapshots of&amp;nbsp;WinForms and
ASP.NET&amp;nbsp;processes to interrogate unhandled exceptions, memory
utilisation, resource contention etc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Installing Debugging Tools for Windows in Target Environment&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Download &lt;a href="http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx"&gt;debugging tools&lt;/a&gt;; 
&lt;/li&gt;&lt;li&gt;XCOPY deploy to target environment; 
&lt;/li&gt;&lt;li&gt;Create a folder to store snapshots; 
&lt;/li&gt;&lt;li&gt;Set CScript as the default scripting engine (required by ADPlus, also requires Windows Script Host 5.6 or higher, interrogate version using CSCRIPT /? command)&lt;/li&gt;&lt;/ul&gt;
&lt;blockquote dir="ltr"&gt;
&lt;p&gt;CSCRIPT /H:CScript&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Taking a Snapshop using ADPlus&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following&amp;nbsp;examples demonstrate&amp;nbsp;taking a snapshot of a WinForms process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Via process id&lt;br&gt;ADPlus.vbs -c ADPlus_Config.xml -p 968&lt;br&gt;
&lt;/li&gt;&lt;li&gt;Via process name&lt;br&gt;ADPlus.vbs -c ADPlus_Config.xml -pn HelloWorldGUI.exe&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Note that ADPlus will warn that the _NT_SYMBOL_PATH environment variable is not set. This is ok&amp;nbsp;as the environment variable&amp;nbsp;is not required for taking snapshots, however, it is required for analysing the snapshot later.&lt;/p&gt;
&lt;p&gt;The following example ADPlus_Config.xml file configures ADPlus for Hang mode (hang mode instructs ADPlus to take the&amp;nbsp;snapshot immediately,&amp;nbsp;crash mode is another option that attaches the debugger to the process, then waits for process to exit before generating the snapshot):&lt;/p&gt;
&lt;p&gt;&amp;lt;ADPlus&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Settings&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RunMode&amp;gt;&lt;strong&gt;HANG&lt;/strong&gt;&amp;lt;/RunMode&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Option&amp;gt;Quiet&amp;lt;/Option&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;OutputDir&amp;gt; &lt;strong&gt;C:\Snapshots&lt;/strong&gt; &amp;lt;/OutputDir&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Settings&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Load sos.dll --&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PreCommands&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Cmd&amp;gt; .load C:\Program Files\Debugging Tools for Windows\clr10\sos.dll &amp;lt;/Cmd&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/PreCommands&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Exceptions&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Do a unique mini dump with full heap on every --&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- first chance exception.&amp;nbsp;--&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Config&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Code&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllExceptions&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Code&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Actions1&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FullDump;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Actions1&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ReturnAction1&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GN&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ReturnAction1&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Config&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Exceptions&amp;gt;&lt;br&gt;&amp;lt;/ADPlus&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Using WinDBG and SOS.dll&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Install debugging tools; 
&lt;/li&gt;&lt;li&gt;Add installation location to PATH environment variable; 
&lt;/li&gt;&lt;li&gt;Create a folder to store symbols; 
&lt;/li&gt;&lt;li&gt;Add new environment variable, referencing the symbols folder:&lt;/li&gt;&lt;/ul&gt;
&lt;blockquote dir="ltr"&gt;
&lt;p&gt;Name: _NT_SYMBOL_PATH&lt;br&gt;Value: SRV*&lt;strong&gt;c:\temp\symbols&lt;/strong&gt;* &lt;a href="http://msdl.microsoft.com/download/symbols"&gt;http://msdl.microsoft.com/download/symbols&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This setting is used by WinDbg to dynamically download symbols (pdb files) on demand.&lt;/p&gt;&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Launch WinDbg.exe; 
&lt;/li&gt;&lt;li&gt;Open the snapshot using File --&amp;gt;&amp;nbsp;Open Crash Dump; 
&lt;/li&gt;&lt;li&gt;Load SOS.dll by entering the following command: &lt;/li&gt;&lt;/ul&gt;
&lt;blockquote dir="ltr"&gt;
&lt;p&gt;.load C:\Program Files\Debugging Tools for Windows\clr10\sos.dll&lt;/p&gt;&lt;/blockquote&gt;
&lt;p dir="ltr"&gt;Useful WinDbg/SOS.dll commands are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;!help (all available commands)&lt;/div&gt;
&lt;/li&gt;&lt;li&gt;
&lt;div&gt;!help &amp;lt;functionname&amp;gt; (help on provided function)&lt;/div&gt;
&lt;/li&gt;&lt;li&gt;
&lt;div&gt;!clrstack (shows managed stack)&lt;/div&gt;
&lt;/li&gt;&lt;li&gt;
&lt;div&gt;!dae (dumps all managed exceptions, noting that instances of ExecutionEngineException, StackOverflowException and OutOfMemoryException&amp;nbsp; are normal)&lt;/div&gt;
&lt;/li&gt;&lt;li&gt;
&lt;div&gt;!EEStack (shows full stack trace, including managed and unmanaged calls)&lt;/div&gt;
&lt;/li&gt;&lt;li&gt;
&lt;div&gt;!do (dump object, including fields) &lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p dir="ltr"&gt;&lt;strong&gt;Further Information&lt;/strong&gt;&lt;/p&gt;
&lt;p dir="ltr"&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q286350"&gt;How to use ADPlus to troubleshoot "hangs" and "crashes"&lt;/a&gt;&lt;/p&gt;
&lt;p dir="ltr"&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/DBGrm.asp"&gt;Production Debugging for .NET Framework Applications&lt;/a&gt;&lt;/p&gt;
&lt;p dir="ltr"&gt;&lt;a href="http://msdn.microsoft.com/msdnmag/issues/05/03/Bugslayer/"&gt;Mini Dump Snapshots and the New SOS&lt;/a&gt;&lt;/p&gt;
&lt;p dir="ltr"&gt;&lt;a href="http://blogs.msdn.com/tess/archive/2005/11/30/498297.aspx"&gt;Tips on Debugging Managed Exceptions with ADPlus and WinDbg&lt;/a&gt;&lt;/p&gt;&lt;img src="http://mattonsoftware.com/aggbug.aspx?PostID=20" width="1" height="1"&gt;</description><category domain="http://mattonsoftware.com/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mattonsoftware.com/archive/tags/Tools/default.aspx">Tools</category><category domain="http://mattonsoftware.com/archive/tags/Debugging/default.aspx">Debugging</category></item><item><title>.NET Resources: Updated</title><link>http://mattonsoftware.com/archive/2006/05/06/9.aspx</link><pubDate>Sat, 06 May 2006 09:25:00 GMT</pubDate><guid isPermaLink="false">6209d34a-f29a-4dc5-b4bf-33cf47346ec7:9</guid><dc:creator>matt</dc:creator><slash:comments>0</slash:comments><comments>http://mattonsoftware.com/comments/9.aspx</comments><wfw:commentRss>http://mattonsoftware.com/commentrss.aspx?PostID=9</wfw:commentRss><description>Managing  hyperlinks via CommunityServer has become too cumbersome, I've shifted these resources to del.icio.us, as follows:&lt;br&gt;&lt;br&gt;&lt;a href="http://del.icio.us/MattDunn"&gt;http://del.icio.us/MattDunn&lt;/a&gt;&lt;br&gt;&lt;br&gt;You can also subscribe to changes via the following feed:&lt;br&gt;&lt;br&gt;&lt;a href="http://del.icio.us/rss/MattDunn"&gt;http://del.icio.us/rss/MattDunn&lt;/a&gt;&lt;br&gt;&lt;br&gt;Many thanks to &lt;a href="http://www.holliday.com.au/"&gt;Grant&lt;/a&gt; for the tip!&lt;br&gt;&lt;img src="http://mattonsoftware.com/aggbug.aspx?PostID=9" width="1" height="1"&gt;</description><category domain="http://mattonsoftware.com/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Issues Migrating from .NET 1.0 to .NET 1.1</title><link>http://mattonsoftware.com/archive/2006/03/06/8.aspx</link><pubDate>Mon, 06 Mar 2006 11:48:00 GMT</pubDate><guid isPermaLink="false">6209d34a-f29a-4dc5-b4bf-33cf47346ec7:8</guid><dc:creator>matt</dc:creator><slash:comments>287</slash:comments><comments>http://mattonsoftware.com/comments/8.aspx</comments><wfw:commentRss>http://mattonsoftware.com/commentrss.aspx?PostID=8</wfw:commentRss><description>Mainstream support for .NET 1.0 &lt;A href="http://support.microsoft.com/lifecycle/?p1=1248"&gt;ends 30 June 2007&lt;/A&gt;. For organisations migrating from .NET 1.0 to .NET 1.1, the following changes are for&amp;nbsp; consideration:&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A class="" title="Backwards Breaking Changes from version 1.0 to 1.1" href="http://www.gotdotnet.com/team/changeinfo/Backwards1.0to1.1/default.aspx" target=""&gt;Backwards Breaking Changes from version 1.0 to 1.1&lt;/A&gt; 
&lt;LI&gt;&lt;A class="" title="API Changes between versions of the .NET Framework: Version 1.0 to Version 1.1" href="http://www.gotdotnet.com/team/upgrade/v1.1/v1.0tov1.1changes.zip" target=""&gt;API Changes between versions of the .NET Framework: Version 1.0 to Version 1.1&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;In addition to the changes listed above, the following issues were encountered during a recent migration activity. &lt;BR&gt;&lt;BR&gt;&lt;B&gt;Web Service &lt;/B&gt;&lt;B&gt;WSDL Generation Issue&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;After upgrading websites from ASP.NET 1.0 to 1.1, the following error message may be encountered&lt;/FONT&gt;:&lt;/FONT&gt;&lt;BR&gt;
&lt;UL&gt;
&lt;P&gt;&lt;I&gt;The XML element named 'HelloWorldMethodResponse' from namespace '&lt;/FONT&gt;&lt;/I&gt;&lt;I&gt;http://www.test.com&lt;/I&gt;&lt;I&gt;' references a method and a type. Change the method's message name using WebMethodAttribute or change the type's root element using the XmlRootAttribute.&lt;/FONT&gt;&lt;/I&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/UL&gt;
&lt;P&gt;This error occurs when the WSDL for a web service is being generated. &lt;/FONT&gt;Note that the error message includes two possible solutions. The first of these solutions which recommends changing the web methods message name using the WebMethodAttribute is undesirable as this will alter the WSDL contract and break existing consumers. The second of the two solutions, applying the XmlRoot attribute to the web methods return type, will resolve the error, however, this requires recompilation of existing web service assemblies.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Properties of web methods that cause this error include:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The return type is a class or structure;&lt;/FONT&gt; 
&lt;LI&gt;The return type is named [WebMethodName]Response;&lt;BR&gt;&lt;/FONT&gt;
&lt;LI&gt;The web method accepts no parameters (or has parameters that do not serialise to a complex type in the WSDL, for example, strings, integers).&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;This error does not affect the invocation of existing client proxies as they do not consume the WSDL at runtime.&lt;/FONT&gt;&amp;nbsp; This issue will affect development activities when the WSDL is requested, for example, when re-generating client-side proxies using the Visual Studio Add/Update Web Reference feature.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;To resolve this issue, apply the XmlRoot attribute to the return type of the WebMethod, noting the following:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The ElementName should be of the form [ResponseType]Dummy. Note that no element named HelloWorldMethodResponseDummy will appear in the WSDL;&lt;/FONT&gt; 
&lt;LI&gt;The DataType property should be set to the response type. &lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;An example application of the XmlRoot attribute is as follows:&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;[WebMethod(Description = &lt;FONT color=#a52a2a&gt;"Test Method"&lt;/FONT&gt;)]&lt;/FONT&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT face="Courier New" size=2&gt;[return: XmlRoot(Namespace = &lt;FONT color=#a52a2a&gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT color=#a52a2a&gt;&lt;B&gt;&lt;U&gt;&lt;FONT face="Courier New" size=2&gt;http://www.test.com/&lt;/FONT&gt;&lt;/U&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#a52a2a&gt;"&lt;/FONT&gt;, &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT face="Courier New" size=2&gt;ElementName = &lt;FONT color=#a52a2a&gt;"HelloWorldMethodResponseDummy"&lt;/FONT&gt;, &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT face="Courier New" size=2&gt;DataType = &lt;FONT color=#a52a2a&gt;"HelloWorldMethodResponse"&lt;/FONT&gt;, &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT face="Courier New" size=2&gt;IsNullable = false)]&lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#0000ff&gt;public &lt;/FONT&gt;HelloWorldMethodResponse HelloWorldMethod()&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;{&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;return new&lt;/FONT&gt; HelloWorldMethodResponse();&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;B&gt;Activator.CreateInstance() raises a System.MissingMethodException &lt;/B&gt;&lt;B&gt;exception when creating instances of Arrays&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;In order for the Activator.CreateInstance() method to create instances of a given type, the type must define a public default constructor. In .NET 1.0, the Activator does not raise an exception when creating instances of Arrays (which has a private default constructor), however, this issue has been fixed for .NET 1.1 and now raises a System.MissingMethodException ("No parameterless constructor defined for this object") exception as expected.&lt;BR&gt;&lt;BR&gt;To resolve this issue, the Array.CreateInstance() method can be used instead of Activator.CreateInstance(), as follows:&lt;BR&gt;
&lt;BLOCKQUOTE&gt;&lt;FONT face="Courier New" color=#000000 size=2&gt;...&lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;if &lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt;(typeToInstantiate.IsArray) &lt;BR&gt;{ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type elementType = typeToInstantiate.GetElementType(); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newInstance = Array.CreateInstance(elementType, arraySize); &lt;BR&gt;} &lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;else &lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt;&lt;BR&gt;{ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newInstance = Activator.CreateInstance(typeToInstantiate); &lt;BR&gt;}&lt;/FONT&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;img src="http://mattonsoftware.com/aggbug.aspx?PostID=8" width="1" height="1"&gt;</description><category domain="http://mattonsoftware.com/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Diagnosing Binary Formatter Version Incompatability Problems</title><link>http://mattonsoftware.com/archive/2006/02/27/7.aspx</link><pubDate>Tue, 28 Feb 2006 11:37:00 GMT</pubDate><guid isPermaLink="false">6209d34a-f29a-4dc5-b4bf-33cf47346ec7:7</guid><dc:creator>matt</dc:creator><slash:comments>880</slash:comments><comments>http://mattonsoftware.com/comments/7.aspx</comments><wfw:commentRss>http://mattonsoftware.com/commentrss.aspx?PostID=7</wfw:commentRss><description>Clients consuming remoting services hosted in IIS (and therefore
exposed via the HTTP channel) configured to use the binary formatter
may receive the following error:&lt;br&gt;
	&lt;br&gt;
		&lt;i&gt;An unhandled exception of type 'System.Runtime.Serialization. SerializationException' occurred in mscorlib.dll&lt;br&gt;
				&lt;br&gt;Additional information: BinaryFormatter Version incompatibility. Expected Version 1.0. Received Version 1008738336.1684104552.&lt;br&gt;&lt;/i&gt;
		&lt;br&gt;&lt;a target="" class="" title="This article" href="http://www.thinktecture.com/Resources/RemotingFAQ/BINARYVERSIONMISMATCH.html"&gt;This article&lt;/a&gt;
explains that the above error is masking the original exception, and
describes a mechanism for tracing this exception. However, this tracing
process requires opening additional ports on the server, which may be
problematic if the application under inspection is hosted in a secured
environment.&lt;br&gt;
				&lt;br&gt;An alternative to tracing the error is to configure
the remoting service to use the SOAP formatter instead of the binary
formatter, which will allow the original exception to propogate to the
client correctly. The SOAP formatter is the default formatter for the
HTTP channel, so assuming the remoting system is configured
declaratively, the following elements can be removed/commented out of
the configuration files:&lt;br&gt;
						&lt;br&gt;
							&lt;b&gt;Client &lt;br&gt;
									&lt;br&gt;&lt;/b&gt;
							&lt;font color="#a52a2a"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;configuration&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;system.runtime.remoting&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;application&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;channels&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;channel &lt;font color="#ff0000"&gt;ref&lt;/font&gt;&lt;font color="#0000ff"&gt;="http"&amp;gt;&lt;/font&gt;&lt;br&gt;
													&lt;font color="#008000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;
													&lt;font color="#008000"&gt;&amp;lt;clientProviders&lt;/font&gt;
													&lt;font color="#008000"&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;
													&lt;font color="#008000"&gt;&amp;lt;formatter &lt;/font&gt;
													&lt;font color="#008000"&gt;ref&lt;/font&gt;
													&lt;font color="#008000"&gt;="binary" /&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;
													&lt;font color="#008000"&gt;&amp;lt;/clientProviders&lt;/font&gt;
													&lt;font color="#008000"&gt;&amp;gt;&lt;/font&gt;
													&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;channel&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;channels&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;application&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;system.runtime.remoting&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;configuration&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;
							&lt;br&gt;
								&lt;br&gt;
									&lt;b&gt;Server&lt;/b&gt;
									&lt;br&gt;
										&lt;br&gt;
											&lt;font color="#a52a2a"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;configuration&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;system.runtime.remoting&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;application&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;channels&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;channel &lt;font color="#ff0000"&gt;ref&lt;/font&gt;&lt;font color="#0000ff"&gt;="http"&lt;/font&gt;&lt;font color="#ff0000"&gt;port&lt;/font&gt;&lt;font color="#0000ff"&gt;="1234"&lt;/font&gt;&amp;gt;&lt;br&gt;
																	&lt;font color="#008000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;
																	&lt;font color="#008000"&gt;&amp;lt;serverProviders&lt;/font&gt;
																	&lt;font color="#008000"&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;
																	&lt;font color="#008000"&gt;&amp;lt;formatter &lt;/font&gt;
																	&lt;font color="#008000"&gt;ref&lt;/font&gt;
																	&lt;font color="#008000"&gt;="binary"&lt;/font&gt;
																	&lt;font color="#008000"&gt;/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;
																	&lt;font color="#008000"&gt;&amp;lt;/serverProviders&lt;/font&gt;
																	&lt;font color="#008000"&gt;&amp;gt;&lt;/font&gt;
																	&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;channel&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;channels&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;application&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;system.runtime.remoting&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;configuration&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;
											&lt;br&gt;
												&lt;br&gt;
													Also note that custom errors must be disabled 
on the server for the original exception to propogate correctly:&lt;br&gt;
															&lt;br&gt;
																&lt;font color="#a52a2a"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;configuration&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;system.web&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;customErrors &lt;font color="#ff0000"&gt;mode&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#ff0000"&gt;=&lt;font color="#0000ff"&gt;"&lt;/font&gt;&lt;/font&gt;Off" /&amp;gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;system.web&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;configuration&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;
													&lt;br&gt;&lt;img src="http://mattonsoftware.com/aggbug.aspx?PostID=7" width="1" height="1"&gt;</description><category domain="http://mattonsoftware.com/archive/tags/.NET/default.aspx">.NET</category></item><item><title>WinForms use of AssemblyInformationalVersion Attribute </title><link>http://mattonsoftware.com/archive/2006/02/25/6.aspx</link><pubDate>Sun, 26 Feb 2006 06:58:00 GMT</pubDate><guid isPermaLink="false">6209d34a-f29a-4dc5-b4bf-33cf47346ec7:6</guid><dc:creator>matt</dc:creator><slash:comments>1075</slash:comments><comments>http://mattonsoftware.com/comments/6.aspx</comments><wfw:commentRss>http://mattonsoftware.com/commentrss.aspx?PostID=6</wfw:commentRss><description>The AssemblyInformationalVersion attribute provides a secondary
mechanism for versioning an assembly without modifying the value of the
AssemblyVersion attribute, thus consumers of an assembly do not need to
apply binding redirects or publisher policy when revisions of an
assembly are deployed.&lt;br&gt;&lt;br&gt;Contrary to the &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionAssemblyInformationalVersionAttributeClassTopic.asp"&gt;documentation&lt;/a&gt;:&lt;br&gt;&lt;br&gt;&lt;i&gt;The attribute defined by this class attaches additional version information to 
an assembly for documentation purposes only. &lt;b&gt;This data is never used at runtime.&lt;/b&gt;&lt;/i&gt;&lt;br&gt;&lt;br&gt;this attribute is referenced by the &lt;a href="http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.productversion.aspx"&gt;System.Windows.Forms.Application.ProductVersion&lt;/a&gt; static property, which in turn is referenced by the &lt;a target="" class="" title="CommonAppDataPath" href="http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.commonappdatapath.aspx"&gt;Application.CommonAppDataPath&lt;/a&gt;, &lt;a target="" class="" title="LocalUserAppDataPath" href="http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.localuserappdatapath%28VS.80%29.aspx"&gt;Application.LocalUserAppDataPath&lt;/a&gt; and &lt;a target="" class="" title="UserAppDataPath" href="http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.userappdatapath%28VS.80%29.aspx"&gt;Application.UserAppDataPath&lt;/a&gt; static properties. This is the case for the&amp;nbsp; .NET 1.* and .NET 2.0 class libraries.&lt;br&gt;&lt;br&gt;If
the AssemblyInformationalVersion attribute is applied to the base
executable, the ProductVersion property and its dependent properties
will use this value instead of the AssemblyVersion attribute value.&lt;br&gt;&lt;br&gt;Microsoft states that this behaviour is &lt;a href="http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=00fd41bf-1a6f-4bf6-ac60-8146edd72bf7"&gt;by design&lt;/a&gt;.&lt;br&gt;&lt;img src="http://mattonsoftware.com/aggbug.aspx?PostID=6" width="1" height="1"&gt;</description><category domain="http://mattonsoftware.com/archive/tags/.NET/default.aspx">.NET</category></item></channel></rss>