<?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>Association Thoughts &#187; .NET Programming</title>
	<atom:link href="http://associationthoughts.com/blog/archives/category/net-programming/feed" rel="self" type="application/rss+xml" />
	<link>http://associationthoughts.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:27:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting CC.Net working on our Test/Dev/Staging box</title>
		<link>http://associationthoughts.com/blog/archives/122</link>
		<comments>http://associationthoughts.com/blog/archives/122#comments</comments>
		<pubDate>Tue, 13 Apr 2010 16:08:55 +0000</pubDate>
		<dc:creator>grantmcinnes</dc:creator>
				<category><![CDATA[.NET Programming]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://associationthoughts.com/blog/?p=122</guid>
		<description><![CDATA[I used Jeff Atwoods article on Setting up Subversion on Windows to get started. 
Once Subversion was up and running, I installed TortoiseSVN to create a repository, VisualSVN to connect to a repository and begun the CI installation.
Install Cruise Control on the Server and install as service
Configure the ccnet.config with a Project proj1
Create a working [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: tahoma;"><small>I used Jeff Atwoods <a href="http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html" target="_blank">article </a>on Setting up Subversion on Windows to get started. </small></span></p>
<p><span style="font-family: tahoma;"><small>Once Subversion was up and running, I installed TortoiseSVN to create a repository, VisualSVN to connect to a repository and begun the CI installation.</small></span></p>
<p><span style="font-family: tahoma;"><small>Install</small><small> Cruise Control on the Server and install as service<br />
Configure the ccnet.config with a Project proj1<br />
Create a working directory<br />
In the working directory\bin directory, install nant, nantcontrib, visualsvn<br />
Create a project directory in the working directory</small> <small>proj1<br />
In the proj1 directory, create a nant build script<br />
Start the Cruise Control service</small></span></p>
<p><span style="font-family: tahoma;"><small>Key is to get the config file correct. There&#8217;s lots of posts on getting CI working so this is just some brief notes.</small></span></p>
<p><span style="font-family: tahoma;"><small></small></span></p>
]]></content:encoded>
			<wfw:commentRss>http://associationthoughts.com/blog/archives/122/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>log4net example</title>
		<link>http://associationthoughts.com/blog/archives/92</link>
		<comments>http://associationthoughts.com/blog/archives/92#comments</comments>
		<pubDate>Thu, 25 Jun 2009 21:45:46 +0000</pubDate>
		<dc:creator>grantmcinnes</dc:creator>
				<category><![CDATA[.NET Programming]]></category>

		<guid isPermaLink="false">http://associationthoughts.com/blog/archives/92</guid>
		<description><![CDATA[&#160;
In a recent project, I needed to implement logging and decided to use the log4net.dll which I have seen referenced in a number of different open source projects. Here are the steps I had to taken in order to use log4net in my project:
&#160;
1. Download the log4net.dll from http://sourceforge.net/projects/log4net/
2. Add a reference to your project [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>In a recent project, I needed to implement logging and decided to use the log4net.dll which I have seen referenced in a number of different open source projects. Here are the steps I had to taken in order to use log4net in my project:</p>
<p>&#160;</p>
<p>1. Download the log4net.dll from <a href="http://sourceforge.net/projects/log4net/">http://sourceforge.net/projects/log4net/</a></p>
<p>2. Add a reference to your project that includes the downloaded log4net.dll </p>
<p>3. Add a log4net section to your web.config/app.config file:</p>
<p>&lt;configuration&gt;   <br />&#160;&#160;&#160; &lt;configSections&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;section name=&quot;log4net&quot; type=&quot;System.Configuration.IgnoreSectionHandler&quot; /&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sectionGroup&gt;    <br />&#160;&#160;&#160; &lt;/configSections&gt;    <br />&lt;/configuration&gt;    </p>
<p>4. Add a log4net.config file to your project with the following configuration:</p>
<p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;   <br />&lt;log4net debug=&quot;true&quot;&gt;    <br />&#160; &lt;appender name=&quot;LogFileAppender&quot; type=&quot;log4net.Appender.FileAppender&quot;&gt;    <br />&#160;&#160;&#160; &lt;param name=&quot;File&quot; value=&quot;log4netoutput.log&quot; /&gt;    <br />&#160;&#160;&#160; &lt;param name=&quot;AppendToFile&quot; value=&quot;true&quot; /&gt;    <br />&#160;&#160;&#160; &lt;layout type=&quot;log4net.Layout.PatternLayout&quot;&gt;    <br />&#160;&#160;&#160;&#160;&#160; &lt;param name=&quot;ConversionPattern&quot; value=&quot;%d [%t] %-5p [%c] %m%n&quot; /&gt;    <br />&#160;&#160;&#160; &lt;/layout&gt;    <br />&#160; &lt;/appender&gt;    <br />&#160; &lt;root&gt;    <br />&#160;&#160;&#160; &lt;level value=&quot;DEBUG&quot; /&gt;    <br />&#160;&#160;&#160; &lt;appender-ref ref=&quot;LogFileAppender&quot; /&gt;    <br />&#160; &lt;/root&gt;    <br />&lt;/log4net&gt;</p>
<p>There are various Appenders you can create but this example uses a text file to log the results into the bin directory of the application. There are also different values that can be used as part of the ConversionPattern to get different output.</p>
<p>5. Be sure to change the properties of the log4net.config file in your project for the Copy to Output Directory attribute to <strong>Copy Always.</strong> I spent hours debugging my code because the config file was not being copied into the bin directory and log4net did not throw any exceptions. Since I had not used log4net before, I was making the assumption the problem was with my code and/or config file settings.</p>
<p>6. Here’s my code from a test method to make sure log4net is working correctly:</p>
<p>[Test]   <br />public void TestLog4NetOnItsOwn()    <br />{    <br />&#160;&#160;&#160; ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);    <br />&#160;&#160;&#160; XmlConfigurator.Configure(new FileInfo(Settings.Default.log4net_config_file));&#160; <br />&#160;&#160;&#160; logger.Debug(&quot;Here is a debug log.&quot;);    <br />}</p>
</p>
<p>To log results to the console, include the following line of code:</p>
<p>BasicConfigurator.Configure();</p>
<p>&#160;</p>
<p>I’ve seen other posts that reference the log4net.config file in the Assembly.cs file rather than in code:</p>
<p>[assembly: log4net.Config.XmlConfigurator(ConfigFile=&quot;log4net.config&quot;, Watch = true)]</p>
<p>&#160;</p>
<p>Other Posts and Resources:</p>
<p><a href="http://it.toolbox.com/blogs/daniel-at-work/using-log4net-in-cnet-26794">http://it.toolbox.com/blogs/daniel-at-work/using-log4net-in-cnet-26794</a></p>
<p><a href="http://geekswithblogs.net/bsherwin/archive/2008/02/15/119657.aspx">http://geekswithblogs.net/bsherwin/archive/2008/02/15/119657.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://associationthoughts.com/blog/archives/92/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Open an MVC project in Visual Studio 2010</title>
		<link>http://associationthoughts.com/blog/archives/91</link>
		<comments>http://associationthoughts.com/blog/archives/91#comments</comments>
		<pubDate>Tue, 09 Jun 2009 18:25:11 +0000</pubDate>
		<dc:creator>grantmcinnes</dc:creator>
				<category><![CDATA[.NET Programming]]></category>

		<guid isPermaLink="false">http://associationthoughts.com/blog/archives/91</guid>
		<description><![CDATA[&#160;
http://weblogs.asp.net/leftslipper/archive/2009/01/20/opening-an-asp-net-mvc-project-without-having-asp-net-mvc-installed-the-project-type-is-not-supported-by-this-installation.aspx
]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p><a href="http://weblogs.asp.net/leftslipper/archive/2009/01/20/opening-an-asp-net-mvc-project-without-having-asp-net-mvc-installed-the-project-type-is-not-supported-by-this-installation.aspx">http://weblogs.asp.net/leftslipper/archive/2009/01/20/opening-an-asp-net-mvc-project-without-having-asp-net-mvc-installed-the-project-type-is-not-supported-by-this-installation.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://associationthoughts.com/blog/archives/91/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regular Expressions Cheat Sheet (V2)</title>
		<link>http://associationthoughts.com/blog/archives/87</link>
		<comments>http://associationthoughts.com/blog/archives/87#comments</comments>
		<pubDate>Wed, 20 May 2009 22:55:48 +0000</pubDate>
		<dc:creator>grantmcinnes</dc:creator>
				<category><![CDATA[.NET Programming]]></category>

		<guid isPermaLink="false">http://associationthoughts.com/blog/archives/87</guid>
		<description><![CDATA[&#160;
Pingback to http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/
]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Pingback to <a title="http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/" href="http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/">http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://associationthoughts.com/blog/archives/87/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eric Hexter&#8217;s Current .NET Application and Tooling Stack</title>
		<link>http://associationthoughts.com/blog/archives/83</link>
		<comments>http://associationthoughts.com/blog/archives/83#comments</comments>
		<pubDate>Wed, 20 May 2009 22:01:21 +0000</pubDate>
		<dc:creator>grantmcinnes</dc:creator>
				<category><![CDATA[.NET Programming]]></category>

		<guid isPermaLink="false">http://associationthoughts.com/blog/?p=83</guid>
		<description><![CDATA[Current .Net Application and Tools Stack
http://www.lostechies.com/blogs/hex/archive/2009/01/29/my-current-net-application-and-tools-stack.aspx
Along with Rhino Mocks
]]></description>
			<content:encoded><![CDATA[<p><strong>Current .Net Application and Tools Stack</strong></p>
<p><a href="http://www.lostechies.com/blogs/hex/archive/2009/01/29/my-current-net-application-and-tools-stack.aspx">http://www.lostechies.com/blogs/hex/archive/2009/01/29/my-current-net-application-and-tools-stack.aspx</a></p>
<p>Along with Rhino Mocks</p>
]]></content:encoded>
			<wfw:commentRss>http://associationthoughts.com/blog/archives/83/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WCF Service Project configuration for https</title>
		<link>http://associationthoughts.com/blog/archives/73</link>
		<comments>http://associationthoughts.com/blog/archives/73#comments</comments>
		<pubDate>Fri, 24 Apr 2009 20:57:20 +0000</pubDate>
		<dc:creator>grantmcinnes</dc:creator>
				<category><![CDATA[.NET Programming]]></category>

		<guid isPermaLink="false">http://associationthoughts.com/blog/archives/73</guid>
		<description><![CDATA[Rowan has spent alot of time on WCF and has a good understanding of WCF services. In this example, I wanted to host a WCF service on a website and use it with https. Below is the configuration necessary to do that. 
In web.config file create the serviceBehaviors, bindings, and services section:
&#160;
&#60;system.serviceModel&#62; 
&#60;behaviors&#62; 
&#60;serviceBehaviors&#62; 
&#60;behavior [...]]]></description>
			<content:encoded><![CDATA[<p>Rowan has spent alot of time on WCF and has a good understanding of WCF services. In this example, I wanted to host a WCF service on a website and use it with https. Below is the configuration necessary to do that. </p>
<p>In web.config file create the serviceBehaviors, bindings, and services section:</p>
<p>&#160;</p>
<p>&lt;system.serviceModel&gt; </p>
<p>&lt;behaviors&gt; </p>
<p>&lt;serviceBehaviors&gt; </p>
<p>&lt;behavior name=&quot;MembershipProviderHelperBehavior&quot;&gt; </p>
<p>&lt;serviceMetadata httpsGetEnabled=&quot;true&quot; httpsGetUrl=&quot;&quot; /&gt; </p>
<p>&lt;serviceDebug includeExceptionDetailInFaults=&quot;false&quot; /&gt; </p>
<p>&lt;/behavior&gt; </p>
<p>&lt;/serviceBehaviors&gt; </p>
<p>&lt;/behaviors&gt; </p>
<p>&lt;bindings&gt; </p>
<p>&lt;basicHttpBinding&gt; </p>
<p>&lt;binding name=&quot;TheConfig&quot;&gt; </p>
<p>&lt;security mode=&quot;Transport&quot;/&gt; </p>
<p>&lt;/binding&gt; </p>
<p>&lt;/basicHttpBinding&gt; </p>
<p>&lt;/bindings&gt; </p>
<p>&lt;services&gt; </p>
<p>&lt;service behaviorConfiguration=&quot;CustomClassHelperBehavior&quot; name=&quot;CustomClassHelper&quot;&gt; </p>
<p>&lt;host&gt; </p>
<p>&lt;baseAddresses&gt; </p>
<p>&lt;add baseAddress=&quot;https://ssl.texmed.org/Services/CustomClassHelper&quot; /&gt; </p>
<p>&lt;/baseAddresses&gt; </p>
<p>&lt;/host&gt; </p>
<p>&lt;endpoint address=&quot;&quot; binding=&quot;basicHttpBinding&quot; contract=&quot;ICustomClassHelper&quot; bindingConfiguration=&quot;TheConfig&quot;&gt; </p>
<p>&lt;/endpoint&gt; </p>
<p>&lt;endpoint address=&quot;mex&quot; binding=&quot;mexHttpsBinding&quot; contract=&quot;IMetadataExchange&quot; /&gt; </p>
<p>&lt;/service&gt; </p>
<p>&lt;/services&gt; </p>
<p>&lt;/system.serviceModel&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://associationthoughts.com/blog/archives/73/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove and Add handler programmatically in C#</title>
		<link>http://associationthoughts.com/blog/archives/24</link>
		<comments>http://associationthoughts.com/blog/archives/24#comments</comments>
		<pubDate>Wed, 08 Apr 2009 16:42:24 +0000</pubDate>
		<dc:creator>grantmcinnes</dc:creator>
				<category><![CDATA[.NET Programming]]></category>

		<guid isPermaLink="false">http://associationthoughts.com/blog/archives/24</guid>
		<description><![CDATA[&#160;
this.ControlName.PropertyChanged -= new PropertyChangedEventHandler(ControlName_PropertyChanged); 
this.ControlName.PropertyChanged += new PropertyChangedEventHandler(ControlName_PropertyChanged); 
]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>this.ControlName.PropertyChanged -= new PropertyChangedEventHandler(ControlName_PropertyChanged); </p>
<p>this.ControlName.PropertyChanged += new PropertyChangedEventHandler(ControlName_PropertyChanged); </p>
]]></content:encoded>
			<wfw:commentRss>http://associationthoughts.com/blog/archives/24/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Silverlight Tools Installed on VS2008</title>
		<link>http://associationthoughts.com/blog/archives/20</link>
		<comments>http://associationthoughts.com/blog/archives/20#comments</comments>
		<pubDate>Mon, 16 Mar 2009 17:55:11 +0000</pubDate>
		<dc:creator>grantmcinnes</dc:creator>
				<category><![CDATA[.NET Programming]]></category>

		<guid isPermaLink="false">http://associationthoughts.com/blog/archives/20</guid>
		<description><![CDATA[&#160;
Uninstall Silverlight and any other Silverlight references. It seems like there is an entry added into Add/Remove Programs even if the installer fails.
I then used this article to get Silverlight installed:
http://timheuer.com/blog/archive/2008/09/29/install-silverlight-2-rc0-offline.aspx
]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Uninstall Silverlight and any other Silverlight references. It seems like there is an entry added into Add/Remove Programs even if the installer fails.</p>
<p>I then used this article to get Silverlight installed:</p>
<p><a title="http://timheuer.com/blog/archive/2008/09/29/install-silverlight-2-rc0-offline.aspx" href="http://timheuer.com/blog/archive/2008/09/29/install-silverlight-2-rc0-offline.aspx">http://timheuer.com/blog/archive/2008/09/29/install-silverlight-2-rc0-offline.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://associationthoughts.com/blog/archives/20/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Vault to run on a 64bit machine with VS2003</title>
		<link>http://associationthoughts.com/blog/archives/17</link>
		<comments>http://associationthoughts.com/blog/archives/17#comments</comments>
		<pubDate>Wed, 11 Mar 2009 20:04:35 +0000</pubDate>
		<dc:creator>grantmcinnes</dc:creator>
				<category><![CDATA[.NET Programming]]></category>

		<guid isPermaLink="false">http://associationthoughts.com/blog/archives/17</guid>
		<description><![CDATA[&#160;
1. Add the following keys: 
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider]   &#34;ProviderRegKey&#34;=&#34;SOFTWARE\\SourceGear\\Vault Client&#34; 
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider\InstalledSCCProviders]   &#34;SourceGear Vault VS2003 Compatible Client&#34;=&#34;SOFTWARE\\SourceGear\\Vault Client&#34; 
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceGear] 
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceGear\SourceGear Vault Client]   &#34;InstallDir&#34;=&#34;C:\\Program Files (x86)\\SourceGear\\Vault Client\\&#34; 
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceGear\Vault Client]   &#34;InstallDir&#34;=&#34;C:\\Program Files (x86)\\SourceGear\\Vault Client\\&#34;    &#34;SCCServerName&#34;=&#34;SourceGear Vault Classic Client&#34;    &#34;SCCServerPath&#34;=&#34;C:\\Program Files (x86)\\SourceGear\\Vault Client\\VS2003_Client\\VaultIDE.dll&#34; 
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SourceCodeControlProvider]   &#34;ProviderRegKey&#34;=&#34;SOFTWARE\\SourceGear\\Vault [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>1. Add the following keys: </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider]   <br />&quot;ProviderRegKey&quot;=&quot;SOFTWARE\\SourceGear\\Vault Client&quot; </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider\InstalledSCCProviders]   <br />&quot;SourceGear Vault VS2003 Compatible Client&quot;=&quot;SOFTWARE\\SourceGear\\Vault Client&quot; </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\SourceGear] </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\SourceGear\SourceGear Vault Client]   <br />&quot;InstallDir&quot;=&quot;C:\\Program Files (x86)\\SourceGear\\Vault Client\\&quot; </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\SourceGear\Vault Client]   <br />&quot;InstallDir&quot;=&quot;C:\\Program Files (x86)\\SourceGear\\Vault Client\\&quot;    <br />&quot;SCCServerName&quot;=&quot;SourceGear Vault Classic Client&quot;    <br />&quot;SCCServerPath&quot;=&quot;C:\\Program Files (x86)\\SourceGear\\Vault Client\\VS2003_Client\\VaultIDE.dll&quot; </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SourceCodeControlProvider]   <br />&quot;ProviderRegKey&quot;=&quot;SOFTWARE\\SourceGear\\Vault Client&quot; </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SourceCodeControlProvider\InstalledSCCProviders]   <br />&quot;SourceGear Vault VS2003 Compatible Client&quot;=&quot;SOFTWARE\\SourceGear\\Vault Client&quot; </p>
<p>2. Restart Visual Studio and check the Source Control item Under Tools\Options </p>
]]></content:encoded>
			<wfw:commentRss>http://associationthoughts.com/blog/archives/17/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
