<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>code &#38; chips</title>
	<atom:link href="http://code-and-chips.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://code-and-chips.co.uk</link>
	<description>general programming stuff...</description>
	<lastBuildDate>Fri, 25 May 2012 08:41:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='code-and-chips.co.uk' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/266b28f33b9db0717c360c043353422d?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>code &#38; chips</title>
		<link>http://code-and-chips.co.uk</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://code-and-chips.co.uk/osd.xml" title="code &#38; chips" />
	<atom:link rel='hub' href='http://code-and-chips.co.uk/?pushpress=hub'/>
		<item>
		<title>Git with no deep sh*t</title>
		<link>http://code-and-chips.co.uk/2012/01/09/git-with-no-deep-sht/</link>
		<comments>http://code-and-chips.co.uk/2012/01/09/git-with-no-deep-sht/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 14:23:31 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=95</guid>
		<description><![CDATA[I am trying to learn git, a distributed code version system, but it is proving to be difficult as it seems every resource aiming at helping understand it does nothing but confuse matters. (Personally, I have no idea why it is so complex other than geeky vanity the users must have) Anyway, Roger Dudler has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=95&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am trying to learn git, a distributed code version system, but it is proving to be difficult as it seems every resource aiming at helping understand it does nothing but confuse matters.</p>
<p>(Personally, I have no idea why it is so complex other than geeky vanity the users must have)</p>
<p>Anyway, Roger Dudler has created a great &#8220;Git Guide&#8221; that he describes as, :just a simple guide for getting started with git. no deep shit <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> &#8220;, and that is precisely what I was looking for.  The basics.</p>
<p><a href="http://rogerdudler.github.com/git-guide/">Roger Dudler &#8211; Git Guide</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=95&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2012/01/09/git-with-no-deep-sht/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
		<item>
		<title>InSync &#8211; DropBox for Google</title>
		<link>http://code-and-chips.co.uk/2011/12/30/insync-dropbox-for-google/</link>
		<comments>http://code-and-chips.co.uk/2011/12/30/insync-dropbox-for-google/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 17:15:26 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dropbox]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=92</guid>
		<description><![CDATA[I&#8217;ve been looking for something like this for a while now. It&#8217;s like DropBox but connects to your Google account and uses your Google space. The files show up in your Google Documents. InSync<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=92&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking for something like this for a while now.</p>
<p>It&#8217;s like DropBox but connects to your Google account and uses your Google space.</p>
<p>The files show up in your Google Documents.</p>
<p><a href="https://www.insynchq.com">InSync</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=92&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2011/12/30/insync-dropbox-for-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
		<item>
		<title>Tip-Top Online CSS, HTML, JS &amp; DOM Reference</title>
		<link>http://code-and-chips.co.uk/2011/12/07/tip-top-online-css-html-js-dom-reference/</link>
		<comments>http://code-and-chips.co.uk/2011/12/07/tip-top-online-css-html-js-dom-reference/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 20:53:31 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Reference]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=86</guid>
		<description><![CDATA[docHub<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=86&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dochub.io/">docHub</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=86&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2011/12/07/tip-top-online-css-html-js-dom-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
		<item>
		<title>DOS WCF host and client</title>
		<link>http://code-and-chips.co.uk/2011/09/29/dos-wcf-host-and-client/</link>
		<comments>http://code-and-chips.co.uk/2011/09/29/dos-wcf-host-and-client/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 21:29:58 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=84</guid>
		<description><![CDATA[It&#8217;s no secret that I have no love for the WCF declarative configuration and I find testing through an IIS host a whole faff.  This is why I use a DOS host and client to easily test the transportation of data as my first port of call in testing. WCF DOS Host private static void [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=84&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s no secret that I have no love for the WCF declarative configuration and I find testing through an IIS host a whole faff.  This is why I use a DOS host and client to easily test the transportation of data as my first port of call in testing.</p>
<h2>WCF DOS Host</h2>
<blockquote>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;">private</span> <span style="color:#512191;">static</span> <span style="color:#512191;">void</span> RunHost()</p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> host <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">new</span> <span style="color:#4077c1;">ServiceHost</span>(<span style="color:#512191;">typeof</span>(<span style="color:#4077c1;">TestWcfService</span>));</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> httpBinding <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">new</span> <span style="color:#4077c1;">BasicHttpBinding</span></p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;">MaxBufferPoolSize <span style="color:#3e6fd7;">=</span> <span style="color:#359f55;">0</span>,</p>
<p style="font:12px Helvetica;margin:0;">MaxReceivedMessageSize <span style="color:#3e6fd7;">=</span> <span style="color:#4077c1;">Int32</span><span style="color:#3e6fd7;">.</span>MaxValue,</p>
<p style="font:12px Helvetica;margin:0;">MaxBufferSize <span style="color:#3e6fd7;">=</span> <span style="color:#4077c1;">Int32</span><span style="color:#3e6fd7;">.</span>MaxValue,</p>
<p style="font:12px Helvetica;margin:0;">TransferMode <span style="color:#3e6fd7;">=</span> <span style="color:#3ca2bc;">TransferMode</span><span style="color:#3e6fd7;">.</span>Streamed</p>
<p style="font:12px Helvetica;margin:0;">};</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> wsHttpBinding <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">new</span> <span style="color:#4077c1;">WSHttpBinding</span></p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;">MaxBufferPoolSize <span style="color:#3e6fd7;">=</span> <span style="color:#359f55;">0</span>,</p>
<p style="font:12px Helvetica;margin:0;">MaxReceivedMessageSize <span style="color:#3e6fd7;">=</span> <span style="color:#4077c1;">Int32</span><span style="color:#3e6fd7;">.</span>MaxValue,</p>
<p style="font:12px Helvetica;margin:0;">ReliableSession <span style="color:#3e6fd7;">=</span> {Enabled <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">true</span>, Ordered <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">true</span>}</p>
<p style="font:12px Helvetica;margin:0;">};</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> netTcpBinding <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">new</span> <span style="color:#4077c1;">NetTcpBinding</span></p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;">MaxBufferPoolSize <span style="color:#3e6fd7;">=</span> <span style="color:#359f55;">0</span>,</p>
<p style="font:12px Helvetica;margin:0;">MaxReceivedMessageSize <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">int</span><span style="color:#3e6fd7;">.</span>MaxValue,</p>
<p style="font:12px Helvetica;margin:0;">MaxBufferSize <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">int</span><span style="color:#3e6fd7;">.</span>MaxValue,</p>
<p style="font:12px Helvetica;margin:0;">ReliableSession <span style="color:#3e6fd7;">=</span> {Enabled <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">true</span>, Ordered <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">true</span>}</p>
<p style="font:12px Helvetica;margin:0;">};</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> netNamedPipe <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">new</span> <span style="color:#4077c1;">NetNamedPipeBinding</span></p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;">MaxBufferPoolSize <span style="color:#3e6fd7;">=</span> <span style="color:#359f55;">0</span>,</p>
<p style="font:12px Helvetica;margin:0;">MaxReceivedMessageSize <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">int</span><span style="color:#3e6fd7;">.</span>MaxValue,</p>
<p style="font:12px Helvetica;margin:0;">MaxBufferSize <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">int</span><span style="color:#3e6fd7;">.</span>MaxValue</p>
<p style="font:12px Helvetica;margin:0;">};</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;">host<span style="color:#3e6fd7;">.</span>AddServiceEndpoint(<span style="color:#512191;">typeof</span>(<span style="color:#4077c1;">ITestService</span>), httpBinding, <span style="color:#359f55;">&#8220;http://localhost/basic&#8221;</span>);</p>
<p style="font:12px Helvetica;margin:0;">host<span style="color:#3e6fd7;">.</span>AddServiceEndpoint(<span style="color:#512191;">typeof</span>(<span style="color:#4077c1;">ITestService</span>), wsHttpBinding, <span style="color:#359f55;">&#8220;http://localhost/ws&#8221;</span>);</p>
<p style="font:12px Helvetica;margin:0;">host<span style="color:#3e6fd7;">.</span>AddServiceEndpoint(<span style="color:#512191;">typeof</span>(<span style="color:#4077c1;">ITestService</span>), netTcpBinding, <span style="color:#359f55;">&#8220;net.tcp://localhost/tcp&#8221;</span>);</p>
<p style="font:12px Helvetica;margin:0;">host<span style="color:#3e6fd7;">.</span>AddServiceEndpoint(<span style="color:#512191;">typeof</span> (<span style="color:#4077c1;">ITestService</span>), netNamedPipe, <span style="color:#359f55;">&#8220;net.pipe://localhost/pipe&#8221;</span>);</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> operation <span style="color:#3e6fd7;">=</span> host<span style="color:#3e6fd7;">.</span>Description<span style="color:#3e6fd7;">.</span>Endpoints[<span style="color:#359f55;">0</span>]<span style="color:#3e6fd7;">.</span>Contract<span style="color:#3e6fd7;">.</span>Operations<span style="color:#3e6fd7;">.</span>Find(<span style="color:#359f55;">&#8220;TestCollectionParameter&#8221;</span>);</p>
<p style="font:12px Helvetica;margin:0;">operation<span style="color:#3e6fd7;">.</span>Behaviors<span style="color:#3e6fd7;">.</span>Find<span style="color:#3e6fd7;">&lt;</span><span style="color:#4077c1;">DataContractSerializerOperationBehavior</span><span style="color:#3e6fd7;">&gt;</span>()<span style="color:#3e6fd7;">.</span>MaxItemsInObjectGraph <span style="color:#3e6fd7;">=</span> <span style="color:#4077c1;">Int32</span><span style="color:#3e6fd7;">.</span>MaxValue;</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> try</span></p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;">host<span style="color:#3e6fd7;">.</span>Open();</p>
<p style="font:12px Helvetica;margin:0;">PrintConnectionInformation(host);</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#4077c1;"> Console</span><span style="color:#3e6fd7;">.</span>WriteLine(<span style="color:#359f55;">&#8220;Listening&#8230;.&#8221;</span>);</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#4077c1;"> Console</span><span style="color:#3e6fd7;">.</span>ReadLine();</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#4077c1;"> Console</span><span style="color:#3e6fd7;">.</span>WriteLine(<span style="color:#359f55;">&#8220;Closing channels&#8230;&#8221;</span>);</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;">host<span style="color:#3e6fd7;">.</span>Close();</p>
<p style="font:12px Helvetica;margin:0;">}</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> catch</span> (<span style="color:#4077c1;">Exception</span> ex)</p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#4077c1;"> Console</span><span style="color:#3e6fd7;">.</span>WriteLine(ex<span style="color:#3e6fd7;">.</span>Message);</p>
<p style="font:12px Helvetica;margin:0;">host<span style="color:#3e6fd7;">.</span>Abort();</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> throw</span>;</p>
<p style="font:12px Helvetica;margin:0;">}</p>
<p style="font:12px Helvetica;margin:0;">}</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;">private</span> <span style="color:#512191;">static</span> <span style="color:#512191;">void</span> PrintConnectionInformation(<span style="color:#4077c1;">ServiceHostBase</span> host)</p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;">host<span style="color:#3e6fd7;">.</span>Description<span style="color:#3e6fd7;">.</span>Endpoints<span style="color:#3e6fd7;">.</span>ToList()<span style="color:#3e6fd7;">.</span>ForEach(ep <span style="color:#3e6fd7;">=&gt;</span> <span style="color:#4077c1;">Console</span><span style="color:#3e6fd7;">.</span>WriteLine(<span style="color:#4077c1;">String</span><span style="color:#3e6fd7;">.</span>Format(<span style="color:#359f55;">&#8220;{0} running at {1}&#8221;</span>, ep<span style="color:#3e6fd7;">.</span>Name, ep<span style="color:#3e6fd7;">.</span>ListenUri)));</p>
<p style="font:12px Helvetica;margin:0;">}</p>
</blockquote>
<p> </p>
<h2>WCF DOS Client</h2>
<p style="font:12px Helvetica;margin:0;"> </p>
<blockquote>
<p style="font:12px Helvetica;color:#4077c1;margin:0;"><span style="color:#000000;"> </span><span style="color:#512191;">public</span><span style="color:#000000;"> </span><span style="color:#512191;">class</span><span style="color:#000000;"> </span>CustomChannelFactory<span style="color:#3e6fd7;">&lt;</span><span style="color:#000000;">T</span><span style="color:#3e6fd7;">&gt;</span><span style="color:#000000;"> : </span>ChannelFactory<span style="color:#3e6fd7;">&lt;</span><span style="color:#000000;">T</span><span style="color:#3e6fd7;">&gt;</span></p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> public</span> CustomChannelFactory(<span style="color:#4077c1;">Binding</span> binding) : <span style="color:#512191;">base</span>(binding) { }</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> public</span> CustomChannelFactory(<span style="color:#4077c1;">ServiceEndpoint</span> endpoint) : <span style="color:#512191;">base</span>(endpoint) { }</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> public</span> CustomChannelFactory(<span style="color:#512191;">string</span> endpointConfigurationName) : <span style="color:#512191;">base</span>(endpointConfigurationName) { }</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> public</span> CustomChannelFactory(<span style="color:#4077c1;">Binding</span> binding, <span style="color:#4077c1;">EndpointAddress</span> remoteAddress) : <span style="color:#512191;">base</span>(binding, remoteAddress) { }</p>
<p style="font:12px Helvetica;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> public</span> CustomChannelFactory(<span style="color:#4077c1;">Binding</span> binding, <span style="color:#512191;">string</span> remoteAddress) : <span style="color:#512191;">base</span>(binding, remoteAddress) { }</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> public</span> CustomChannelFactory(<span style="color:#512191;">string</span> endpointConfigurationName, <span style="color:#4077c1;">EndpointAddress</span> remoteAddress) : <span style="color:#512191;">base</span>(endpointConfigurationName, remoteAddress) { }</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> protected</span> <span style="color:#512191;">override</span> <span style="color:#512191;">void</span> OnOpening()</p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> foreach</span> (<span style="color:#512191;">var</span> behavior <span style="color:#512191;">in</span></p>
<p style="font:12px Helvetica;margin:0;">Endpoint<span style="color:#3e6fd7;">.</span>Contract<span style="color:#3e6fd7;">.</span>Operations<span style="color:#3e6fd7;">.</span>Select(operation <span style="color:#3e6fd7;">=&gt;</span> operation<span style="color:#3e6fd7;">.</span>Behaviors<span style="color:#3e6fd7;">.</span>Find<span style="color:#3e6fd7;">&lt;</span><span style="color:#4077c1;">DataContractSerializerOperationBehavior</span><span style="color:#3e6fd7;">&gt;</span>())<span style="color:#3e6fd7;">.</span>Where(behavior <span style="color:#3e6fd7;">=&gt;</span> behavior <span style="color:#3e6fd7;">!=</span> <span style="color:#512191;">null</span>))</p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;">behavior<span style="color:#3e6fd7;">.</span>MaxItemsInObjectGraph <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">int</span><span style="color:#3e6fd7;">.</span>MaxValue;</p>
<p style="font:12px Helvetica;margin:0;">}</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> base</span><span style="color:#3e6fd7;">.</span>OnOpening();</p>
<p style="font:12px Helvetica;margin:0;">}</p>
<p style="font:12px Helvetica;margin:0;">}</p>
<p style="font:12px Helvetica;margin:0;"> </p>
<p style="font:12px Helvetica;color:#4077c1;margin:0;"><span style="color:#000000;"> [</span>ServiceContract<span style="color:#000000;">]</span></p>
<p style="font:12px Helvetica;color:#512191;margin:0;"><span style="color:#000000;"> </span>public<span style="color:#000000;"> </span>interface<span style="color:#000000;"> </span><span style="color:#4077c1;">ITestService</span></p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;color:#4077c1;margin:0;"><span style="color:#000000;"> [</span>OperationContract<span style="color:#000000;">]</span></p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> string</span> TestStringReturn();</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;color:#4077c1;margin:0;"><span style="color:#000000;"> [</span>OperationContract<span style="color:#000000;">]</span></p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> string</span> TestCollectionParameter(<span style="color:#4077c1;">List</span><span style="color:#3e6fd7;">&lt;</span><span style="color:#512191;">string</span><span style="color:#3e6fd7;">&gt;</span> data);</p>
<p style="font:12px Helvetica;margin:0;">}</p>
<p style="font:12px Helvetica;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;">private</span> <span style="color:#512191;">static</span> <span style="color:#512191;">void</span> TestConnectBasicHttpBinding()</p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> binding <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">new</span> <span style="color:#4077c1;">BasicHttpBinding</span></p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;">MaxBufferSize <span style="color:#3e6fd7;">=</span> <span style="color:#4077c1;">Int32</span><span style="color:#3e6fd7;">.</span>MaxValue,</p>
<p style="font:12px Helvetica;margin:0;">MaxReceivedMessageSize <span style="color:#3e6fd7;">=</span> <span style="color:#4077c1;">Int32</span><span style="color:#3e6fd7;">.</span>MaxValue,</p>
<p style="font:12px Helvetica;margin:0;">MaxBufferPoolSize <span style="color:#3e6fd7;">=</span> <span style="color:#4077c1;">Int32</span><span style="color:#3e6fd7;">.</span>MaxValue,</p>
<p style="font:12px Helvetica;margin:0;">TransferMode <span style="color:#3e6fd7;">=</span> <span style="color:#3ca2bc;">TransferMode</span><span style="color:#3e6fd7;">.</span>Streamed,</p>
<p style="font:12px Helvetica;margin:0;">SendTimeout <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">new</span> <span style="color:#4077c1;">TimeSpan</span>(<span style="color:#359f55;">0</span>, <span style="color:#359f55;">0</span>, <span style="color:#359f55;">10</span>, <span style="color:#359f55;">0</span>),</p>
<p style="font:12px Helvetica;margin:0;">ReceiveTimeout <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">new</span> <span style="color:#4077c1;">TimeSpan</span>(<span style="color:#359f55;">0</span>, <span style="color:#359f55;">0</span>, <span style="color:#359f55;">10</span>, <span style="color:#359f55;">0</span>)</p>
<p style="font:12px Helvetica;margin:0;">};</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;color:#359f55;margin:0;"><span style="color:#000000;"> </span><span style="color:#4077c1;"> Console</span><span style="color:#3e6fd7;">.</span><span style="color:#000000;">WriteLine(</span>&#8220;Connecting through basic HTTP channel.&#8221;<span style="color:#000000;">);</span></p>
<p style="font:12px Helvetica;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> factory <span style="color:#3e6fd7;">=</span> <span style="color:#512191;">new</span> <span style="color:#4077c1;">CustomChannelFactory</span><span style="color:#3e6fd7;">&lt;</span><span style="color:#4077c1;">ITestService</span><span style="color:#3e6fd7;">&gt;</span>(binding, <span style="color:#359f55;">&#8220;http://localhost/basic&#8221;</span>);</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> channel <span style="color:#3e6fd7;">=</span> factory<span style="color:#3e6fd7;">.</span>CreateChannel();</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> try</span></p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> var</span> x <span style="color:#3e6fd7;">=</span> channel<span style="color:#3e6fd7;">.</span>TestStringReturn();</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#4077c1;"> Console</span><span style="color:#3e6fd7;">.</span>WriteLine(<span style="color:#359f55;">&#8220;Returned Value: {0}&#8221;</span>, x);</p>
<p style="font:12px Helvetica;margin:0;">}</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> catch</span> (<span style="color:#4077c1;">Exception</span> ex)</p>
<p style="font:12px Helvetica;margin:0;">{</p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#512191;"> if</span> (channel <span style="color:#3e6fd7;">!=</span> <span style="color:#512191;">null</span>)</p>
<p style="font:12px Helvetica;margin:0;">((<span style="color:#4077c1;">IClientChannel</span>)channel)<span style="color:#3e6fd7;">.</span>Abort();</p>
<p style="font:12px Helvetica;min-height:14px;margin:0;"> </p>
<p style="font:12px Helvetica;margin:0;"><span style="color:#4077c1;"> Console</span><span style="color:#3e6fd7;">.</span>WriteLine(ex<span style="color:#3e6fd7;">.</span>Message);</p>
<p style="font:12px Helvetica;margin:0;">}</p>
<p style="font:12px Helvetica;margin:0;">}</p>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=84&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2011/09/29/dos-wcf-host-and-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
		<item>
		<title>WCF Setup Problems</title>
		<link>http://code-and-chips.co.uk/2011/08/19/wcf-setup-problems/</link>
		<comments>http://code-and-chips.co.uk/2011/08/19/wcf-setup-problems/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 00:43:02 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=80</guid>
		<description><![CDATA[WCF has to be one of the most frustrating technologies I have ever used.  The problems I encountered tonight were in the setup.  Like most things development, the trick is in the setup.  Unfortunately, I spend a lot of time tweaking the settings on my new development machine install, but I never remember or even [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=80&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>WCF has to be one of the most frustrating technologies I have ever used.  The problems I encountered tonight were in the setup.  Like most things development, the trick is in the setup.  Unfortunately, I spend a lot of time tweaking the settings on my new development machine install, but I never remember or even note down the tweaks I made to get things to work.  So when I rebuild my machine, I am back to square one.</p>
<p>The WCF configuration has too many things that not only look the same, but the declarative nature &#8211; while flexible &#8211; in most cases is just a pain in the ass and I found it easier to simply hard code the values as in my experience, they rarely change.</p>
<p>Anyway, setting up my WCF IIS host on a new development machine proved to be more involved than I initially credited it would be.</p>
<p>When setting up the IIS host for a WCF library you will need to create an SVC file.  But, this file extension may not be recognised by IIS &#8211; making things &#8216;tricky&#8217;. So here are some things to look out for in order:</p>
<ul>
<li>Try installing the ASP components from the Windows Components in Programs &amp; Services.</li>
<li>Try ServiceModelReg -ia to install all the WCF components onto your machine.</li>
<li>Try asp net-regiis -i to install the handler configurations to IIS.</li>
<li>Sometimes you get a problem where you do not have permissions to run the web application from the current &#8211; normally &#8211; default application pool.  So try setting the user account to LocalSystem in IIS for the corresponding application pool.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=80&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2011/08/19/wcf-setup-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
		<item>
		<title>Delay/Test Signing Assemblies and Testing</title>
		<link>http://code-and-chips.co.uk/2011/07/31/delaytest-signing-assemblies-and-testing/</link>
		<comments>http://code-and-chips.co.uk/2011/07/31/delaytest-signing-assemblies-and-testing/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 00:34:34 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Tests]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=78</guid>
		<description><![CDATA[Note to self: When delay/test signing your assemblies remember to run the follwing command before running unit tests: sn -Vr myAssembly.dll All my unit tests were failing because the .NET framework &#8211; and so the test runner &#8211; would not allow me to load an assembly that it considered to be tampered.  Delay/Test is essentially [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=78&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Note to self:</p>
<p>When delay/test signing your assemblies remember to run the follwing command before running unit tests:</p>
<p>sn -Vr myAssembly.dll</p>
<p>All my unit tests were failing because the .NET framework &#8211; and so the test runner &#8211; would not allow me to load an assembly that it considered to be tampered.  Delay/Test is essentially tampering, by signing the public key and allocating space for the private key.</p>
<p>So make sure to run the above command to configure the .NET framework to skip strong name verification for the delay/test signed assembly or application.<span style="white-space:pre;"> </span></p>
<p><span style="white-space:pre;">T</span>hat was 2 hours wasted&#8230;..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=78&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2011/07/31/delaytest-signing-assemblies-and-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft SqlServer SMO Assembly Location</title>
		<link>http://code-and-chips.co.uk/2011/07/06/microsoft-sqlserver-smo-assembly-location/</link>
		<comments>http://code-and-chips.co.uk/2011/07/06/microsoft-sqlserver-smo-assembly-location/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 16:37:31 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=76</guid>
		<description><![CDATA[I have just spent the last hour trying to locate &#8211; by hook, crook and Google &#8211; the location of the SMO assemblies I need to develop a sql management application in C#. I found it and need to log it: {Program Files}\Microsoft SQL Server\100\SDK\Assemblies  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=76&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have just spent the last hour trying to locate &#8211; by hook, crook and Google &#8211; the location of the SMO assemblies I need to develop a sql management application in C#.</p>
<p>I found it and need to log it:</p>
<blockquote>
<p><strong>{Program Files}\Microsoft SQL Server\100\SDK\Assemblies</strong></p>
</blockquote>
<p> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=76&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2011/07/06/microsoft-sqlserver-smo-assembly-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
		<item>
		<title>Invalid TraceListenerData type in configuration &#8211; Enterprise Library Logging Application Block</title>
		<link>http://code-and-chips.co.uk/2011/03/08/invalid-tracelistenerdata-type-in-configuration-enterprise-library-logging-application-block/</link>
		<comments>http://code-and-chips.co.uk/2011/03/08/invalid-tracelistenerdata-type-in-configuration-enterprise-library-logging-application-block/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 00:33:12 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Enterprise Library]]></category>
		<category><![CDATA[Logging]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=72</guid>
		<description><![CDATA[&#8220;Invalid TraceListenerData type in configuration &#8216;listenerDataType=\&#8221;Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\&#8221;&#8216; The reason I got this error was for two reasons: 1) Add the Enterprise Library Logging Application Block Data Provider assembly from the GAC 2) For some reason all new projects default to the .NET 4 Client Profile.  Change the project to be a full [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=72&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote>
<p>&#8220;<em>Invalid TraceListenerData type in configuration &#8216;listenerDataType=\&#8221;Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\&#8221;&#8216;</em></p>
</blockquote>
<p><em><br /></em></p>
<p>The reason I got this error was for two reasons:</p>
<p>1) Add the Enterprise Library Logging Application Block Data Provider assembly from the GAC</p>
<p>2) For some reason all new projects default to the .NET 4 Client Profile.  Change the project to be a full .NET 4 build via the project properties.  The client profile is preventing the application from picking up assemblies it requires.</p>
<p>How&#8217;s that for painful ball achingly annoying problems?  All because the Microsoft documentation &#8211; as always &#8211; is wholly inadequate&#8230;..</p>
<p> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=72&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2011/03/08/invalid-tracelistenerdata-type-in-configuration-enterprise-library-logging-application-block/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
		<item>
		<title>Tortoise SVN &#8220;File or Directory is Corrupted and Unreadable&#8221; on Windows 64 bit</title>
		<link>http://code-and-chips.co.uk/2011/02/21/tortoise-svn-file-or-directory-is-corrupted-and-unreadable-on-windows-64-bit/</link>
		<comments>http://code-and-chips.co.uk/2011/02/21/tortoise-svn-file-or-directory-is-corrupted-and-unreadable-on-windows-64-bit/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 18:20:19 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=70</guid>
		<description><![CDATA[The error I am talking about is this one: Error: Can't move Error: '[...]\\.svn\tmp\entries' Error: to Error: '[...]\\.svn\entries': Error: The file or directory is corrupted and unreadable.   While there are other articles that tell you that this is a bug in Windows 7 and that a hotfix will solve it, I found that my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=70&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The error I am talking about is this one:</p>
<pre style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:#eeeeee;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;width:auto;max-height:600px;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0 0 10px;padding:5px;"><code style="font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:#eeeeee;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;background-position:initial initial;background-repeat:initial initial;border:0 initial initial;margin:0;padding:0;">Error: Can't move 
Error: '[...]\\.svn\tmp\entries' 
Error: to 
Error: '[...]\\.svn\entries': 
Error: The file or directory is corrupted and unreadable.</code></pre>
<p> </p>
<p>While there are other articles that tell you that this is a bug in Windows 7 and that a hotfix will solve it, I found that my anti virus/spyware was to blame.</p>
<p>TortoiseSVN  + Windows 7 + 64 Bit + Microsoft Security Essentials = &lt;error&gt;</p>
<p> </p>
<p>If you switch off your antivirus/spyware, you may find this error disappears..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=70&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2011/02/21/tortoise-svn-file-or-directory-is-corrupted-and-unreadable-on-windows-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
		<item>
		<title>Reactivating Windows 7 after a Hardware Change</title>
		<link>http://code-and-chips.co.uk/2011/02/06/reactivating-windows-7-after-a-hardware-change/</link>
		<comments>http://code-and-chips.co.uk/2011/02/06/reactivating-windows-7-after-a-hardware-change/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 22:35:12 +0000</pubDate>
		<dc:creator>Kam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">https://codeandchips.wordpress.com/?p=68</guid>
		<description><![CDATA[Start =&#62; Run =&#62; slui.exe 4 Follow instructions!!!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=68&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Start =&gt; Run =&gt; slui.exe 4</p>
<p>Follow instructions!!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeandchips.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeandchips.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeandchips.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeandchips.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeandchips.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeandchips.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeandchips.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeandchips.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeandchips.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeandchips.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeandchips.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeandchips.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeandchips.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeandchips.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code-and-chips.co.uk&#038;blog=17490371&#038;post=68&#038;subd=codeandchips&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code-and-chips.co.uk/2011/02/06/reactivating-windows-7-after-a-hardware-change/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2aa6be803dab7522ca0076b89e46765f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Kam</media:title>
		</media:content>
	</item>
	</channel>
</rss>
