<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adventures With .Net &#187; visual studio</title>
	<atom:link href="http://adventureswith.net/tag/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://adventureswith.net</link>
	<description>C# and the like</description>
	<lastBuildDate>Tue, 15 Nov 2011 15:34:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using Common.Logging with Glimpse and ASP.Net MVC</title>
		<link>http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/</link>
		<comments>http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 10:24:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[asp mvc]]></category>
		<category><![CDATA[glimpse]]></category>
		<category><![CDATA[nuget]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/</guid>
		<description><![CDATA[Glimpse is an amazing tool (that comes available with Nuget in Visual Studio 2010 [included in the Tools Update]) that can hook into the System.Diagnostic.Trace (ewww) to display error messages on your client side browser. Like so: I don’t want &#8230; <a href="http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-2360"></div></div><p><a href="http://nuget.org/List/Packages/Glimpse">Glimpse</a> is an amazing tool (that comes available with <a href="http://nuget.org/">Nuget</a> in Visual Studio 2010 [<a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=82cbd599-d29a-43e3-b78b-0f863d22811a&amp;displaylang=en">included in the Tools Update</a>]) that can hook into the System.Diagnostic.Trace (ewww) to display error messages on your client side browser. Like so:</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/04/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb.png" width="543" height="327"></a></p>
<p><em>I don’t want to use System.Diagnostics as my Logging system</em>. I could use it on the side, but not as the core. This would be awful and much too rigid. The good thing is, I typically use Common.Logging in all my projects because of it’s way to tie ANY LOGGING SYSTEM into a single point then ship those events off to any other receiving system. The receiving system in this case, is&nbsp; of course, System.Diagnostics.Trace using the TraceLoggerFactoryAdapter</p>
<p><span style="text-decoration: underline">So to get to the point above this is what I did:</span></p>
<ol>
<li>Using Create a new MVC project in VS2010
<li>Nuget
<ol>
<li>Install-Package Glimpse
<li>Install-Package Common.Logging </li>
</ol>
<li>Add Common.Logging&nbsp; to the web config
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:ac4b2b10-3d7b-4171-9cb7-1428e06708a2" class="wlWriterEditableSmartContent">
<pre style=" width: 510px; height: 300px;background-color:White;overflow: auto;">
<div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)

http://www.CodeHighlighter.com/

--><span style="color: #008000;">&lt;!--</span><span style="color: #008000;">...config sections... </span><span style="color: #008000;">--&gt;</span><span style="color: #000000;">
</span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">sectionGroup </span><span style="color: #FF0000;">name</span><span style="color: #0000FF;">=&quot;common&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
      </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">section </span><span style="color: #FF0000;">name</span><span style="color: #0000FF;">=&quot;logging&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;Common.Logging.ConfigurationSectionHandler, Common.Logging&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">sectionGroup</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;"> 

</span><span style="color: #008000;">&lt;!--</span><span style="color: #008000;">...configuration... </span><span style="color: #008000;">--&gt;</span><span style="color: #000000;">
</span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">common</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
    </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">logging</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
      </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">factoryAdapter </span><span style="color: #FF0000;">type</span><span style="color: #0000FF;">=&quot;Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
        </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">arg </span><span style="color: #FF0000;">key</span><span style="color: #0000FF;">=&quot;level&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;ALL&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
        </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">arg </span><span style="color: #FF0000;">key</span><span style="color: #0000FF;">=&quot;showLogName&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;true&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
        </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">arg </span><span style="color: #FF0000;">key</span><span style="color: #0000FF;">=&quot;showDataTime&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;true&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
        </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">arg </span><span style="color: #FF0000;">key</span><span style="color: #0000FF;">=&quot;dateTimeFormat&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;yyyy/MM/dd HH:mm:ss:fff&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
      </span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">factoryAdapter</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
    </span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">logging</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">common</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span></div>
</pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<li>Add some “problems”<a href="http://adventureswith.net/wp-content/uploads/2011/04/image1.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb1.png" width="469" height="337"></a>
<li>Run the project and go to http://[your project url]/Gimpse/Configthen click “Turn Glimpse On”. Don’t be surprised that nothing happens.
<p><a href="http://adventureswith.net/wp-content/uploads/2011/04/image2.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb2.png" width="438" height="431"></a></p>
<li>Go to your main page http://[your project url]/ – See the icon in the right hand corner? Click that.<br /><a href="http://adventureswith.net/wp-content/uploads/2011/04/image3.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb3.png" width="451" height="257"></a>
<li>Look at those errors! </li>
</ol>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/04/image4.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb4.png" width="500" height="302"></a></p>
<h2><span style="color: #000000">Conclusion?</span></h2>
<p>Amazing! The guys who made Glimpse deserve some sort of medal!</p>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crashing Visual Studio after debugging ASP Classic</title>
		<link>http://adventureswith.net/crashing-visual-studio-after-debugging-asp-classic/</link>
		<comments>http://adventureswith.net/crashing-visual-studio-after-debugging-asp-classic/#comments</comments>
		<pubDate>Mon, 10 May 2010 10:05:04 +0000</pubDate>
		<dc:creator>Dann</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp classic]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://AdventuresWith.Net/crashing-visual-studio-after-debugging-asp-classic/</guid>
		<description><![CDATA[I hate ASP classic. I hate it with a passion. AND THEN when your browser crashes every time that you go to debug it, you start building muderous tendancies. Anyway, Found a solution. Hot fix to VS 2008 that fixes &#8230; <a href="http://adventureswith.net/crashing-visual-studio-after-debugging-asp-classic/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-1230"></div></div><p>I hate ASP classic. I hate it with a passion. AND THEN when your browser crashes every time that you go to debug it, you start building muderous tendancies.</p>
<p>Anyway, Found a solution. Hot fix to VS 2008 that fixes this and a few things that I didnt care about.</p>
<p><a href="http://code.msdn.microsoft.com/KB967631">http://code.msdn.microsoft.com/KB967631</a></p>
<blockquote><p>This QFE fixes three complete separate issues in the VS2008 SP1  Debugger:<br />
- Debugger can hang the IDE after setting a breakpoint when  working with a large C++ project<br />
- Breakpoints do not bind correctly  when an MSIL file is built containing .line directives<br />
- VS crashes  when debugging a classic ASP web and debugging is stopped.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/crashing-visual-studio-after-debugging-asp-classic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

