<?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>Ian Mercer &#187; fail</title>
	<atom:link href="http://blog.abodit.com/tag/fail/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.abodit.com</link>
	<description>Living in the World&#039;s Smartest House</description>
	<lastBuildDate>Sat, 07 Jan 2012 19:50:56 +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>WMPnetwk.exe started using 50% of my CPU</title>
		<link>http://blog.abodit.com/2009/09/wmpnetwk-exe-started-using-50-of-my-cpu/</link>
		<comments>http://blog.abodit.com/2009/09/wmpnetwk-exe-started-using-50-of-my-cpu/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 18:07:00 +0000</pubDate>
		<dc:creator>Ian Mercer</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[wmp]]></category>

		<guid isPermaLink="false">http://blog.abodit.com/?p=39</guid>
		<description><![CDATA[I&#8217;m not even using Windows Media Player on Windows 7 and I certainly haven&#8217;t turned on any network sharing features so why is this service using up so much CPU? Now disabled thanks to advice on the CNet forums here. Some witty comments there too like &#8220;3. Uninstall Windows Media Player 11&#8230;I mean if after <a href="http://blog.abodit.com/2009/09/wmpnetwk-exe-started-using-50-of-my-cpu/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not even using Windows Media Player on Windows 7 and I certainly haven&#8217;t turned on any network sharing features so why is this service using up so much CPU?</p>
<p>Now disabled thanks to advice on the <a href="http://forums.cnet.com/5208-6142_102-0.html?threadID=226185">CNet forums here</a>.</p>
<p>Some witty comments there too like <span style="font-style: italic;">&#8220;3. Uninstall Windows Media Player 11&#8230;I mean if after 11 versions it still doesn&#8217;t work right then its probably not gonna is it!&#8221;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.abodit.com/2009/09/wmpnetwk-exe-started-using-50-of-my-cpu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System.Data.EntitySqlException</title>
		<link>http://blog.abodit.com/2009/05/system-data-entitysqlexception/</link>
		<comments>http://blog.abodit.com/2009/05/system-data-entitysqlexception/#comments</comments>
		<pubDate>Fri, 15 May 2009 03:04:00 +0000</pubDate>
		<dc:creator>Ian Mercer</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Exception]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.abodit.com/?p=29</guid>
		<description><![CDATA[System.Data.EntitySqlException: &#8216;ExceptionRecord&#8217; could not be resolved in the current scope or context. This seemingly small Exception took a while to figure out.  I was calling the ObjectContext constructor without specifying the default container name.  Adding that solved the problem and now the Entity Framework is happily talking to SQL Server Compact again. For anyone else <a href="http://blog.abodit.com/2009/05/system-data-entitysqlexception/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<div><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="font-family: 'trebuchet ms';"><span class="Apple-style-span" style="font-size: large;">System.Data.</span></span></span><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="font-family: 'trebuchet ms';"><span class="Apple-style-span" style="font-size: large;">EntitySqlException: &#8216;ExceptionRecord&#8217; could not be resolved in the current scope or context.</span></span></span></span><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="font-family: 'trebuchet ms';"><span class="Apple-style-span" style="font-size: large;"><br />
</span></span></span></div>
<div>This seemingly small Exception took a while to figure out.  I was calling the ObjectContext constructor without specifying the default container name.  Adding that solved the problem and now the Entity Framework is happily talking to SQL Server Compact again.</div>
<div>For anyone else looking for a solution to this, here&#8217;s the stack trace you might see:</div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px;"></p>
<div>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: georgia;"><span class="Apple-style-span" style="font-size: x-small;"> </span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">System.Data.</span></span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">EntitySqlException: &#8216;ExceptionRecord&#8217; could not be resolved in the current scope or context. Make sure that all referenced variables are in scope, that required schemas are loaded, and that namespaces are referenced correctly., near escaped identifier.</span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Common.EntitySql.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">CqlErrorHelper.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">ReportIdentifierError(Expr expr, SemanticResolver sr)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Common.EntitySql.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">SemanticAnalyzer.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">ConvertIdentifier(Expr expr, SemanticResolver sr)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Common.EntitySql.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">SemanticAnalyzer.Convert(Expr astExpr, SemanticResolver sr)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Common.EntitySql.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">SemanticAnalyzer.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">ConvertRootExpression(Expr astExpr, SemanticResolver sr)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Common.EntitySql.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">SemanticAnalyzer.Analyze(Expr astExpr, DbCommandTree commandTree)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Common.EntitySql.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">CqlQuery.AnalyzeSemantics(</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">DbCommandTree builderTree, Expr astExpr, Perspective perspective, ParserOptions parserOptions, Dictionary`2 parameters, Dictionary`2 variables)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Common.EntitySql.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">CqlQuery.Compile(DbCommandTree builderTree, String queryText, Perspective perspective, ParserOptions parserOptions, Dictionary`2 parameters, Dictionary`2 variables)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Objects.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">EntitySqlQueryState.Parse(</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">DbCommandTree parseTree)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Objects.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">EntitySqlQueryState.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">GetExecutionPlan(Nullable`1 forMergeOption)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Objects.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">ObjectQuery`1.GetResults(</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">Nullable`1 forMergeOption)</span></span></span></div>
<p><span class="Apple-style-span" style="font-family: 'courier new';"> </span></p>
<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial;"><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;"> at System.Data.Objects.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">ObjectQuery`1.System.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">Collections.Generic.</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">IEnumerable</span></span><span class="Apple-style-span" style="font-family: 'courier new';"><span class="Apple-style-span" style="font-size: 10px;">.GetEnumerator()</span></span></span></div>
<ul>
<li></li>
</ul>
</div>
<p></span></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.abodit.com/2009/05/system-data-entitysqlexception/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AntiVirus Software is the Worst Software!</title>
		<link>http://blog.abodit.com/2009/04/why-i-hate-anti-virus-software/</link>
		<comments>http://blog.abodit.com/2009/04/why-i-hate-anti-virus-software/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 20:11:00 +0000</pubDate>
		<dc:creator>Ian Mercer</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[virus]]></category>

		<guid isPermaLink="false">http://blog.abodit.com/?p=23</guid>
		<description><![CDATA[Whilst checking some log files today I came across some errors where a non-logged in user was accessing pages that only a logged in user would ever see. Googlebot, MSNbot and others never try to index these pages because they can&#8217;t reach them so how was this bot getting there and why wasn&#8217;t it reporting <a href="http://blog.abodit.com/2009/04/why-i-hate-anti-virus-software/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Whilst checking some log files today I came across some errors where a non-logged in user was accessing pages that only a logged in user would ever see.  Googlebot, MSNbot and others never try to index these pages because they can&#8217;t reach them so how was this bot getting there and why wasn&#8217;t it reporting itself as a bot?</p>
<p>Here&#8217;s the details on what I was seeing:</p>
<p>&gt; UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)<br />
&gt; Referrer =<br />
&gt; User Host = 150.70.84.28</p>
<p>A quick search revealed that this address belongs to Trend Micro in Japan.  One of our customers had their anti-virus software running and after each request they made we got another one from this IP address.  Apparently it takes each request you make, sends it off to Japan and then they reissue the request from there pretending to be a normal user!</p>
<p>Presumably they are looking for viruses on your pages but what a dumb approach!</p>
<p>For starters, if I were a virus author it would be utterly trivial to spoof them with a &#8216;happy&#8217; page, for another it&#8217;s a pretty abusive approach to &#8216;security&#8217;, and lastly do you really want all your browsing history to be in the hands of Trend Micro in Japan?!?!?!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.abodit.com/2009/04/why-i-hate-anti-virus-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Custom Validation</title>
		<link>http://blog.abodit.com/2009/04/custom-validation/</link>
		<comments>http://blog.abodit.com/2009/04/custom-validation/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 17:43:00 +0000</pubDate>
		<dc:creator>Ian Mercer</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[fail]]></category>

		<guid isPermaLink="false">http://blog.abodit.com/?p=22</guid>
		<description><![CDATA[http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator.aspx How annoying, &#8220;If the input control is empty, no validation functions are called and validation succeeds. Use a RequiredFieldValidator control to require the user to enter data in the input control. &#8221; The missing parameter you need to set is ValidateEmptyText=&#8221;true&#8221;. Wasted a good half hour finding that little oddity.]]></description>
			<content:encoded><![CDATA[<p>http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator.aspx</p>
<p>How annoying, &#8220;If the input control is empty, no validation functions are called and validation succeeds. Use a                   <span><a id="ctl00_rs1_mainContentContainer_ctl125" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe29327_c|ctl00_rs1_mainContentContainer_ctl125',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.requiredfieldvalidator.aspx">RequiredFieldValidator</a></span> control to require the user to enter data in the input control.        &#8221;</p>
<p>The missing parameter you need to set is  ValidateEmptyText=&#8221;true&#8221;.</p>
<p>Wasted a good half hour finding that little oddity.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.abodit.com/2009/04/custom-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Take out the trash!</title>
		<link>http://blog.abodit.com/2006/06/recycle-bin-slows-window/</link>
		<comments>http://blog.abodit.com/2006/06/recycle-bin-slows-window/#comments</comments>
		<pubDate>Sat, 24 Jun 2006 02:34:00 +0000</pubDate>
		<dc:creator>Ian Mercer</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.abodit.com/?p=9</guid>
		<description><![CDATA[When I shut my laptop down it takes forever to get from selecting Shutdown on the menu to it actually asking what kind of shutdown I wanted. A quick look at filemon revealed the problem &#8211; on shutdown Windows is scanning every file in the recycle bin. And having just deleted a very large source <a href="http://blog.abodit.com/2006/06/recycle-bin-slows-window/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>When I shut my laptop down it takes forever to get from selecting Shutdown on the menu to it actually asking what kind of shutdown I wanted.  A quick look at filemon revealed the problem &#8211; on shutdown Windows is scanning every file in the recycle bin.  And having just deleted a very large source tree with thousands of files that scan was taking forever.</p>
<p>After taking out the trash my laptop now shuts down at a more normal rate.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.abodit.com/2006/06/recycle-bin-slows-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Giving up on Internet Explorer</title>
		<link>http://blog.abodit.com/2006/06/internet-explorer-rip/</link>
		<comments>http://blog.abodit.com/2006/06/internet-explorer-rip/#comments</comments>
		<pubDate>Fri, 16 Jun 2006 20:11:00 +0000</pubDate>
		<dc:creator>Ian Mercer</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://blog.abodit.com/?p=8</guid>
		<description><![CDATA[Today marks the day I finally gave up on Internet Explorer. I tried IE7, I wanted to like it, but it was bloated and slow, gobbling up 300MB of RAM. I&#8217;ve been using Firefox on and off for months but today I&#8217;m switching to it as my primary browser on all my PCs. It&#8217;s simply <a href="http://blog.abodit.com/2006/06/internet-explorer-rip/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Today marks the day I finally gave up on Internet Explorer.  I tried IE7, I wanted to like it, but it was bloated and slow, gobbling up 300MB of RAM.  I&#8217;ve been using Firefox on and off for months but today I&#8217;m switching to it as my primary browser on all my PCs.  It&#8217;s simply a better user experience, has more add-ins that I want, and it&#8217;s svelte compared to the monster IE has become.</p>
<p>Yeah, I know the rest of the world switched years ago, why did it take me so long?  Guess it was just the result of 10 years at MSFT.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.abodit.com/2006/06/internet-explorer-rip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

