<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Clark Sell : .NET</title><link>http://blogs.msdn.com/csell/archive/tags/.NET/default.aspx</link><description>Tags: .NET</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>App_Offline.htm</title><link>http://blogs.msdn.com/csell/archive/2006/06/22/app-offline-htm.aspx</link><pubDate>Thu, 22 Jun 2006 15:12:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:642791</guid><dc:creator>csell</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/csell/comments/642791.aspx</comments><wfw:commentRss>http://blogs.msdn.com/csell/commentrss.aspx?PostID=642791</wfw:commentRss><description>&lt;P&gt;Been catching up on the ole blogs when I ran across a post from &lt;A href="http://weblogs.asp.net/scottgu"&gt;Scott Guthrie&lt;/A&gt;&amp;nbsp;about a new ASP .Net 2.0 feature with a file called App_Offline.htm.&amp;nbsp; &lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;&lt;EM&gt;"One of the new features I talked about was the "App_Offline.htm" feature in ASP.NET 2.0, which provides a super convenient way to bring down an ASP.NET application while you make changes to it (for example: updating a lot of content or making big changes to the site where you want to ensure that no users are accessing the application until all changes are done)."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;From: Scott Guthrie&lt;EM&gt;, &lt;/EM&gt;&lt;A href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx"&gt;App_Offline.htm and working around the "IE Friendly Errors" feature&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Arial&gt;I must admit thats pretty awesome and very welcomed.&lt;/FONT&gt;&lt;/P&gt;&lt;img width="0" height="0" src="http://csell.net/cptrk.ashx?id=62d1bb22-e377-4ce5-9d8c-c2f8dda04797"&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=642791" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/csell/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Testing Code Snippets</title><link>http://blogs.msdn.com/csell/archive/2006/01/23/testing-code-snippets.aspx</link><pubDate>Tue, 24 Jan 2006 00:27:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:516409</guid><dc:creator>csell</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/csell/comments/516409.aspx</comments><wfw:commentRss>http://blogs.msdn.com/csell/commentrss.aspx?PostID=516409</wfw:commentRss><description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms165392(en-US,VS.80).aspx"&gt;Code Snippets&lt;/A&gt; just rock.&amp;nbsp; I thought I would post my testing code snippets.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://csell.net/content/binary/CSTestSnippets.zip"&gt;CSTestSnippets.zip (2.2 KB)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://csell.net/content/binary/VBTestSnippets.zip"&gt;VBTestSnippets.zip (2.13 KB)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Just add them to the appropriate place under "My Documents\Visual Studio 2005\Code Snippets\"&lt;/P&gt;&lt;img width="0" height="0" src="http://csell.net/cptrk.ashx?id=3a1826c1-1e8d-4269-bd84-3d1b261d4464"&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=516409" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/csell/archive/tags/.NET/default.aspx">.NET</category></item><item><title>VS 2002 / 2003 / 2005 Conversions and Building</title><link>http://blogs.msdn.com/csell/archive/2006/01/20/vs-2002-2003-2005-conversions-and-building.aspx</link><pubDate>Sat, 21 Jan 2006 04:19:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:515611</guid><dc:creator>csell</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/csell/comments/515611.aspx</comments><wfw:commentRss>http://blogs.msdn.com/csell/commentrss.aspx?PostID=515611</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;FONT face=Verdana color=#000000&gt;The following are some different resources to either convert your Visual Studio 2002/2003 projects to Visual Studio 2005 or just target the 1.1 framework in Visual Studio 2005.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;A href="http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/webprojectsvs05.asp"&gt;&lt;FONT face=Verdana&gt;Step-By-Step Guide to Converting Web Projects from Visual Studio .NET 2002/2003 to Visual Studio 2005&lt;/FONT&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;FONT face=Verdana color=#000000&gt;&lt;A href="http://blogs.msdn.com/jomo_fisher/archive/category/10216.aspx"&gt;Jomo Fisher on MSBuild&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;A id=_ctl0__ctl0__ctl0__ctl0_CategoryView__ctl0_postlist__ctl0_EntryItems__ctl0_PostTitle href="http://blogs.msdn.com/jomo_fisher/articles/410896.aspx"&gt;&lt;FONT face=Verdana&gt;MSBuild Sample Code Demonstrating How to Target 1.1 Framework with VS Whidbey Beta 2&lt;/FONT&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;FONT face=Verdana color=#000000&gt;&lt;A href="http://blogs.msdn.com/jomo_fisher/archive/2004/10/01/236879.aspx"&gt;Hack the Build: Targeting .NET Runtime 1.1 Step-by-Step&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;FONT face=Verdana color=#000000&gt;&lt;A href="http://blogs.msdn.com/jomo_fisher/articles/category/7359.aspx"&gt;Samples&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;FONT color=#800080&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;FONT face=Verdana color=#000000&gt;Robert McLaws&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;A href="http://weblogs.asp.net/rmclaws/archive/0001/01/01/237179.aspx"&gt;MSBuild Compatibility Toolkit 1.0&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;FONT color=#000000&gt;Nagaraju Palla's&lt;/FONT&gt; &lt;A href="http://blogs.msdn.com/nagarajp/archive/2005/10/26/485368.aspx"&gt;Building binaries targeting .NET 1.1 and .NET 1.0 in TeamBuild&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img width="0" height="0" src="http://csell.net/cptrk.ashx?id=8b282992-9304-4dff-9d18-9c57d085a54d"&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=515611" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/csell/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Configuration Management in .NET 2.0</title><link>http://blogs.msdn.com/csell/archive/2006/01/18/configuration-management-in-net-2-0.aspx</link><pubDate>Wed, 18 Jan 2006 15:51:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:514263</guid><dc:creator>csell</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/csell/comments/514263.aspx</comments><wfw:commentRss>http://blogs.msdn.com/csell/commentrss.aspx?PostID=514263</wfw:commentRss><description>&lt;P&gt;&lt;A href="http://blogs.conchango.com/pauloreichert/default.aspx"&gt;Paulo Reichert&lt;/A&gt;&amp;nbsp;posted a GREAT walkthrough / sample using the new &lt;A href="http://blogs.conchango.com/pauloreichert/archive/2005/05/31/1514.aspx"&gt;Configuration Management features of .Net 2.0&lt;/A&gt;.&lt;/P&gt;&lt;img width="0" height="0" src="http://csell.net/cptrk.ashx?id=18786581-006b-44c2-af58-106a8199ea45"&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=514263" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/csell/archive/tags/.NET/default.aspx">.NET</category></item><item><title>System.Diagnostics Tracing and DebugView</title><link>http://blogs.msdn.com/csell/archive/2006/01/14/system-diagnostics-tracing-and-debugview.aspx</link><pubDate>Sat, 14 Jan 2006 18:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:512876</guid><dc:creator>csell</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/csell/comments/512876.aspx</comments><wfw:commentRss>http://blogs.msdn.com/csell/commentrss.aspx?PostID=512876</wfw:commentRss><description>&lt;P&gt;The other day I ran across &lt;A href="http://www.sysinternals.com/Utilities/DebugView.html"&gt;&lt;FONT color=#667755&gt;DebugView &lt;/FONT&gt;&lt;/A&gt;by &lt;A href="http://sysinternals.com/"&gt;&lt;FONT color=#667755&gt;Sysinternals&lt;/FONT&gt;&lt;/A&gt;. After playing with it for a few I suddenly had a re-found love for &lt;A href="http://msdn2.microsoft.com/en-us/library/15t15zda(en-US,VS.80).aspx"&gt;&lt;FONT color=#667755&gt;System.Diagnostics&lt;/FONT&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;“DebugView is an application that lets you monitor debug output on your local system, or any computer on the network that you can reach via TCP/IP. It is capable of displaying both kernel-mode and Win32 debug output, so you don’t need a debugger to catch the debug output your applications or device drivers generate, nor do you need to modify your applications or drivers to use non-standard debug output APIs.” from &lt;A href="http://sysinternals.com/"&gt;&lt;FONT color=#667755&gt;Sysinternals&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This means you have a nice little exe you can carry on a thumb drive and collect those trace events at runtime on from any machine. Let’s look at some code.&lt;/P&gt;
&lt;P&gt;First define a TraceSwitch. This switch gives you the ability to determine when to throw an event. You can define multiple switches.&lt;BR&gt;&lt;CODE&gt;&lt;BR&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;public&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;static&lt;/SPAN&gt; TraceSwitch GeneralTraceSwitch &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/SPAN&gt; TraceSwitch(”General”, “My Trace Switch”); &lt;BR&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/SPAN&gt; ( GeneralTraceSwitch.TraceError )&lt;BR&gt;&amp;nbsp; Trace.TraceError( “YOUR ERROR MSG” );&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/CODE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Now let’s setup configuration. There are two major sections, listeners and switches. Listeners define where System.Tracing should send your events. The example below sends events to both the EventLog and a text file. Having said that has no influence on DebugView, you do not have to define a listener for DebugView to pick them up. The switches section defines the level of events to throw. 1 is the minimal number of events, while 4 is everything.&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;BR&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;lt;configuration &amp;gt; &lt;BR&gt;&amp;nbsp;&amp;lt;system.diagnostics &amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;lt;trace autoflush=”&lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;true&lt;/SPAN&gt;” indentsize=”0″ &amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;listeners &amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;add name=”EventLogTraceListener” type=”System.Diagnostics.EventLogTraceListener” initializeData=”Team Build”/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=”TextWriterTraceListener” type=”System.Diagnostics.TextWriterTraceListener” initializeData=”.\ci.log” /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/listeners &amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/trace &amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;lt;switches &amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=”General” value=”4″ /&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/switches &amp;gt;&lt;BR&gt;&lt;FONT size=1&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;FONT size=1&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;lt;/system.diagnostics &amp;gt;&lt;BR&gt;&amp;lt;/configuration &amp;gt;&lt;BR&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;img width="0" height="0" src="http://csell.net/cptrk.ashx?id=42fc4575-0ac8-4314-9a85-dc3e0dfa3285"&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=512876" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/csell/archive/tags/.NET/default.aspx">.NET</category></item></channel></rss>