<?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>Ignore the man behind the curtain</title>
	<atom:link href="http://brianseekford.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://brianseekford.com</link>
	<description>Software engineering in a .NET world</description>
	<lastBuildDate>Fri, 02 Dec 2011 19:16:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to ignore whitespace formatting in merge conflicts in TFS in Visual Studio 2010.</title>
		<link>http://brianseekford.com/index.php/2011/12/02/how-to-ignore-whitespace-formatting-in-merge-conflicts-in-tfs-in-visual-studio-2010/</link>
		<comments>http://brianseekford.com/index.php/2011/12/02/how-to-ignore-whitespace-formatting-in-merge-conflicts-in-tfs-in-visual-studio-2010/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 19:16:42 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[Ignore]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[Whitespace]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/12/02/how-to-ignore-whitespace-formatting-in-merge-conflicts-in-tfs-in-visual-studio-2010/</guid>
		<description><![CDATA[Hate when you see all Blue because someone reformatted the code? Fix it. In Visual Studio, select Tools / Options / Source Control / Visual Studio Team Foundation System and click the Configure User Tools button. In the dialog, Add an item with the following settings. Extension : .* Operation : Compare Command : C:\Program [...]]]></description>
			<content:encoded><![CDATA[<p>Hate when you see all Blue because someone reformatted the code?</p>
<p>Fix it.</p>
<p>In Visual Studio, select Tools / Options / Source Control / Visual Studio Team Foundation System and click the Configure User Tools button.</p>
<p>In the dialog, Add an item with the following settings.</p>
<ul>
<li>Extension : .* </li>
<li>Operation : Compare </li>
<li>Command : C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\diffmerge.exe </li>
<li>Arguments : %1 %2 %6 %7 %5 /ignorespace </li>
</ul>
<p>If you are 64 bit,</p>
<p>C:\Program Files <strong>(x86)</strong>\Microsoft Visual Studio 10.0\Common7\IDE\diffmerge.exe </p>
<p><a href="http://brianseekford.com/wp-content/uploads/2011/12/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 4px 10px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://brianseekford.com/wp-content/uploads/2011/12/image_thumb.png" width="427" height="213" /></a></p>
<p>&#160;</p>
<p><a href="http://brianseekford.com/wp-content/uploads/2011/12/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 4px 10px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://brianseekford.com/wp-content/uploads/2011/12/image_thumb1.png" width="327" height="179" /></a></p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/12/02/how-to-ignore-whitespace-formatting-in-merge-conflicts-in-tfs-in-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I cancel a databinding property set in WPF?</title>
		<link>http://brianseekford.com/index.php/2011/11/30/how-do-i-cancel-a-databinding-property-set-in-wpf/</link>
		<comments>http://brianseekford.com/index.php/2011/11/30/how-do-i-cancel-a-databinding-property-set-in-wpf/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 14:39:38 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[cancel]]></category>
		<category><![CDATA[ComboBox]]></category>
		<category><![CDATA[DataBinding]]></category>
		<category><![CDATA[property]]></category>
		<category><![CDATA[PropertyChanged]]></category>
		<category><![CDATA[Set]]></category>
		<category><![CDATA[ViewModel]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/11/30/how-do-i-cancel-a-databinding-property-set-in-wpf/</guid>
		<description><![CDATA[I have a combobox in WPF that I am using the SelectedItem property with a DataBinding and sometimes certain items shouldn’t be selected based on certain criteria. Mine was that two comboboxes couldn’t have the same value. Yes, there are other ways, such as removing invalid values from other boxes, but here was my solution [...]]]></description>
			<content:encoded><![CDATA[<p>I have a combobox in WPF that I am using the SelectedItem property with a DataBinding and sometimes certain items shouldn’t be selected based on certain criteria. Mine was that two comboboxes couldn’t have the same value.</p>
<p>Yes, there are other ways, such as removing invalid values from other boxes, but here was my solution for preventing the invalid property set by cancelling the selection/property set.</p>
<p>WPF sucks in this manner as there isn’t an easy way to update it. You can’t raise the property updated event since the binding ignores those when setting, to avoid recursion issue I suppose. (Yes, developers could defend by not raising the events if the property doesn’t change)</p>
<p>Anyway, the solution is simply to raise the property changed after the operation, by simply posting it to the work queue on the UI thread right afterward.</p>
<p>&#160;</p>
<p>Code: in C#</p>
<p>public MyHeaderType SelectedHeader   <br />&#160;&#160;&#160;&#160;&#160; {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; get { return this.selectedHeader; }    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; set    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bool resetMe= validateValue(value);    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var origVal = selectedHeader;//store for reset</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; selectedHeader = value;   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; RaisePropertyChanged(() =&gt; SelectedHeader);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (resetMe)//Why do I need to set the value above? No idea. Doesn&#8217;t work unless I do it that way. Yes. I tried.   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Application.Current.Dispatcher.BeginInvoke( //force a reenter to put it back&#8230;&#8230;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; new Action(() =&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SelectedHeader = origVal;//put me back to the correct value.    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }),    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DispatcherPriority.ContextIdle,    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; null    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }    <br />&#160;&#160;&#160;&#160;&#160; }    </p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/11/30/how-do-i-cancel-a-databinding-property-set-in-wpf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free RedBox DVD rental coupon. Enjoy</title>
		<link>http://brianseekford.com/index.php/2011/11/04/free-redbox-dvd-rental-coupon-enjoy/</link>
		<comments>http://brianseekford.com/index.php/2011/11/04/free-redbox-dvd-rental-coupon-enjoy/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 18:30:18 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[redbox]]></category>
		<category><![CDATA[rental]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/11/04/free-redbox-dvd-rental-coupon-enjoy/</guid>
		<description><![CDATA[Here is a free RedBox DVD rental coupon for you to use by ordering one online. Makes it easy to order it and pick up. Click here for it. Regards, Brian]]></description>
			<content:encoded><![CDATA[<p>Here is a free RedBox DVD rental coupon for you to use by ordering one online. Makes it easy to order it and pick up.</p>
<p><a href="http://redbox.tellapal.com/a/clk/VCk9" target="_blank">Click here for it.</a></p>
<p>Regards,</p>
<p>Brian</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/11/04/free-redbox-dvd-rental-coupon-enjoy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set the BackgroundColor on a GridViewColumn in WPF!</title>
		<link>http://brianseekford.com/index.php/2011/10/17/how-to-set-the-backgroundcolor-on-a-gridviewcolumn-in-wpf/</link>
		<comments>http://brianseekford.com/index.php/2011/10/17/how-to-set-the-backgroundcolor-on-a-gridviewcolumn-in-wpf/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 19:50:38 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[gridviewcolumn]]></category>
		<category><![CDATA[ListView]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/10/17/how-to-set-the-backgroundcolor-on-a-gridviewcolumn-in-wpf/</guid>
		<description><![CDATA[So, you figured you would set the Grid or Border background color and it would work out? Then you ran your program and only the text was being filled in with your color right? Well, the issue is two fold. First, you need to set the cell contents to stretch. Then you need to get [...]]]></description>
			<content:encoded><![CDATA[<p>So, you figured you would set the Grid or Border background color and it would work out? Then you ran your program and only the text was being filled in with your color right?</p>
<p>Well, the issue is two fold. First, you need to set the cell contents to stretch. Then you need to get past the fact the column pads the cell by 6 pixels left and right.</p>
<p>Handling the padding is here:</p>
<pre>

 &lt;Style TargetType=&quot;Border&quot; x:Key=&quot;columnBorder&quot;&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Setter Property=&quot;Margin&quot; Value=&quot;-6,-2,-6,-6&quot;/&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Setter Property=&quot;Padding&quot; Value=&quot;6,2,6,6&quot;/&gt;

&lt;/Style&gt;

&#160;
</pre>
<p>&#160;</p>
<p>Set the <code>Horizontal</code><code>Content</code><code>Alignment on the ListView or GridView.</code></p>
<p><code>Hope this helps.</code></p>
<p><code>I googled around for other entries and found this one with more detail than I wanted to write.</code></p>
<p><a title="http://www.interact-sw.co.uk/iangblog/2007/05/30/wpf-listview-column-margins" href="http://www.interact-sw.co.uk/iangblog/2007/05/30/wpf-listview-column-margins">http://www.interact-sw.co.uk/iangblog/2007/05/30/wpf-listview-column-margins</a></p>
<p><font face="Courier New">Happy coding!</font></p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/10/17/how-to-set-the-backgroundcolor-on-a-gridviewcolumn-in-wpf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Unable to load one or more of the requested types.&#8221; when using EntityDataSource with Entity Framework in ASP.NET</title>
		<link>http://brianseekford.com/index.php/2011/08/01/unable-to-load-one-or-more-of-the-requested-types-when-using-entitydatasource-with-entity-framework-in-asp-net/</link>
		<comments>http://brianseekford.com/index.php/2011/08/01/unable-to-load-one-or-more-of-the-requested-types-when-using-entitydatasource-with-entity-framework-in-asp-net/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 15:40:13 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[.NET Development]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[ef]]></category>
		<category><![CDATA[entity framework]]></category>
		<category><![CDATA[entitydatasource]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/08/01/unable-to-load-one-or-more-of-the-requested-types-when-using-entitydatasource-with-entity-framework-in-asp-net/</guid>
		<description><![CDATA[I always love pushing something out that fails miserably and randomly. Especially when using straight Microsoft technologies. It seems these folks don’t eat their own dog food, or we wouldn’t encounter this crap. Anyway, it took quite a while to figure out the resolution to this issue, but it all lies in the fact that [...]]]></description>
			<content:encoded><![CDATA[<p>I always love pushing something out that fails miserably and randomly. Especially when using straight Microsoft technologies. It seems these folks don’t eat their own dog food, or we wouldn’t encounter this crap.</p>
<p>Anyway, it took quite a while to figure out the resolution to this issue, but it all lies in the fact that their control is “trying” to be intelligent, and really only needed a little direction.</p>
<p>Let me explain, when the EntityDataSource loads, it looks for the Context. Where may you ask? Well, it actually uses reflection and attempts to load all types from the assembly to resolve the entities. If there is any error in this at all, it blows up. There are a number of reasons this can fail. Dependency mismatches, bad references, and other things that may not break your application but break this feature.</p>
<p>How can I fix this? I am sure you are asking this right now. “Damn it Brian, Get to the freaking point and the fix!” Fine.</p>
<p>It’s pretty simple.</p>
<p>Set this property on the EntityDataSource in your .aspx file. <strong>ContextTypeName</strong> .</p>
<p>The value? Well, the full namespace and class of your context. Example. <strong>Seekford.Data.MyEntityContext</strong></p>
<p>More detailed example:</p>
<p>&lt;asp:EntityDataSource … ContextTypeName=&quot;<strong>Seekford.Data.MyEntityContext</strong>&quot; /&gt;    </p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/08/01/unable-to-load-one-or-more-of-the-requested-types-when-using-entitydatasource-with-entity-framework-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new guard page for the stack cannot be created</title>
		<link>http://brianseekford.com/index.php/2011/07/27/a-new-guard-page-for-the-stack-cannot-be-created/</link>
		<comments>http://brianseekford.com/index.php/2011/07/27/a-new-guard-page-for-the-stack-cannot-be-created/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 18:42:56 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[.NET Development]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[cassini]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/07/27/a-new-guard-page-for-the-stack-cannot-be-created/</guid>
		<description><![CDATA[&#160; You get a nice error that says, “A new guard page for the stack cannot be created”, well easy fix. I could be long winded, but the issue is simply this, you caused a stack overflow. How you say? Well, check to see if you are using a Server.Transfer that transfers you to a [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>You get a nice error that says, “<em>A new guard page for the stack cannot be created”,</em> well easy fix. I could be long winded, but the issue is simply this, you caused a stack overflow.</p>
<p>How you say? Well, check to see if you are using a Server.Transfer that transfers you to a page that then Transfers you back and forth, or even to yourself.</p>
<p>Have login code that checks to see if you are logged in? If not, then it bounces you to a login page. Maybe you put it in a master page. Well, if the login page uses the master page, it will just keep transferring itself to itself and you blow the stack.</p>
<p>Response.Redirect will give you a different error as the browser only jumps a low number of redirects before giving up. Server.Transfer uses the internal stack, so it blows up on the server itself.</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/07/27/a-new-guard-page-for-the-stack-cannot-be-created/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated my WCF Data Contract but client doesn&#8217;t receive the property values&#8230;.</title>
		<link>http://brianseekford.com/index.php/2011/07/15/updated-my-wcf-data-contract-but-client-doesnt-receive-the-property-values/</link>
		<comments>http://brianseekford.com/index.php/2011/07/15/updated-my-wcf-data-contract-but-client-doesnt-receive-the-property-values/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 12:06:00 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[.NET Development]]></category>
		<category><![CDATA[datacontract]]></category>
		<category><![CDATA[datamember]]></category>
		<category><![CDATA[missing]]></category>
		<category><![CDATA[property]]></category>
		<category><![CDATA[wcf]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/07/15/updated-my-wcf-data-contract-but-client-doesnt-receive-the-property-values/</guid>
		<description><![CDATA[I spent about ten minutes wondering why I wasn’t getting the data I expected from my WCF service. I had just changed my data contract to have one more property/field and the data wasn’t being received by my client application. The client is in javascript, so it’s happy with whatever it receives. So no errors [...]]]></description>
			<content:encoded><![CDATA[<p>I spent about ten minutes wondering why I wasn’t getting the data I expected from my WCF service. I had just changed my data contract to have one more property/field and the data wasn’t being received by my client application. The client is in javascript, so it’s happy with whatever it receives. So no errors there, just an undefined property.</p>
<p>I looked at fiddler and noticed it didn’t come through there either. Now I chalked it up to a stale build and rebuilt again. Hmm…. Still undefined…wtf?</p>
<p>Well, simple issue with a simple fix. It turns out I , DUH, forget to tag the property as a DataMember. So the serializer ignored it thinking it was just an internal variable. No need to serialize or expose. Geez.</p>
<p>My fault but it was pretty funny when I started going back through my entities and contracts and started comparing them.</p>
<p>So, in short, if your client for your WCF service is not receiving the property you expect on the data contract, make sure you marked them properly. Easy to overlook when you are updating the DAL DTO’s, Business Entities, and then your Contract Entity.</p>
<p>Example:</p>
<p>/// &lt;summary&gt;<br />
/// Gets or sets the reference.<br />
/// &lt;/summary&gt;<br />
/// &lt;value&gt;<br />
/// The reference.<br />
/// &lt;/value&gt;<br />
[DataMember(Name= "Reference")]<br />
public string Reference { get; set; }</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/07/15/updated-my-wcf-data-contract-but-client-doesnt-receive-the-property-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HRESULT: 0&#215;80131515 when running installutil to install a .NET Service</title>
		<link>http://brianseekford.com/index.php/2011/07/13/hresult-0x80131515-when-running-installutil-to-install-a-net-service/</link>
		<comments>http://brianseekford.com/index.php/2011/07/13/hresult-0x80131515-when-running-installutil-to-install-a-net-service/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 19:23:09 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[.NET Development]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[80131515]]></category>
		<category><![CDATA[FileLoadException]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[InstallUtil]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[unblock]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/07/13/hresult-0x80131515-when-running-installutil-to-install-a-net-service/</guid>
		<description><![CDATA[So you write your nice and fancy service and are all excited to distribute it to your client. You don’t feel like creating an installer for it, that seems like overkill. You just send a zip file with a batch file that calls installutil to register the service. Easy right? Well, your client calls and [...]]]></description>
			<content:encoded><![CDATA[<p>So you write your nice and fancy service and are all excited to distribute it to your client. You don’t feel like creating an installer for it, that seems like overkill. You just send a zip file with a batch file that calls installutil to register the service. Easy right?</p>
<p>Well, your client calls and complains that get the following error when running installutil aka your batch file:</p>
<p>Exception occurred while initializing the installation:</p>
<p>System.IO.FileLoadException: Could not load file or assembly ‘file:///D:\services\myservicehost.exe’ or one of its dependencies. Operation is not support. (Exception from HRESULT: 0&#215;80131515).</p>
<p>I am sure you will start scratching your head and immediately blame them missing a dll or maybe the client ran it wrong. Maybe they have it in the wrong directory? Seems feasible, right? Wrong.</p>
<p>It turns out that Windows was protecting them. Windows doesn’t like files from other computers very much, especially not executables. They get a special stay away from me flag. </p>
<p>So, how do I fix this? Easy. Just open the properties dialog on the exe/service you extracted and hit the UNBLOCK button. Now installutil will work great!</p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/07/13/hresult-0x80131515-when-running-installutil-to-install-a-net-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Fix:Error    39    The type or namespace name &#8216;Contracts&#8217; does not exist in the namespace &#8216;XXX&#8217; (are you missing an assembly reference?)</title>
		<link>http://brianseekford.com/index.php/2011/06/06/how-to-fixerror-39-the-type-or-namespace-name-contracts-does-not-exist-in-the-namespace-xxx-are-you-missing-an-assembly-reference/</link>
		<comments>http://brianseekford.com/index.php/2011/06/06/how-to-fixerror-39-the-type-or-namespace-name-contracts-does-not-exist-in-the-namespace-xxx-are-you-missing-an-assembly-reference/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 14:15:07 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[.NET Development]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[error 39]]></category>
		<category><![CDATA[missing assembly]]></category>
		<category><![CDATA[namespace]]></category>
		<category><![CDATA[type]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/06/06/how-to-fixerror-39-the-type-or-namespace-name-contracts-does-not-exist-in-the-namespace-xxx-are-you-missing-an-assembly-reference/</guid>
		<description><![CDATA[So….Just got done mentally disintegrating my computer and various items around it. This lovely error kept appearing to tell me ABSOLUTELY NOTHING. I checked my references, of course they were included. It’s how I had intellisense, and every other feature that leads me to believe everything is A OK. That is, until you actually compile. [...]]]></description>
			<content:encoded><![CDATA[<p>So….Just got done mentally disintegrating my computer and various items around it. This lovely error kept appearing to tell me ABSOLUTELY NOTHING.</p>
<p>I checked my references, of course they were included. It’s how I had intellisense, and every other feature that leads me to believe everything is A OK. That is, until you actually compile. You then get the awesomely descriptive error above.</p>
<p>Oh, It appears descriptive right? You say, oh, I must have done something wrong and somehow removed the assembly reference. Let me check it? Nope, it’s there.</p>
<p>Well, it turns out the answer is simple and the stupid compiler could have added one more suggestion. Here is how I would write it.</p>
<p>The type or namespace name &#8216;Contracts&#8217; does not exist in the namespace &#8216;XXX&#8217; (are you missing an assembly reference? Are the assemblies built using the same .NET Runtime Profile?) </p>
<p>Yup! One assembly was using the .NET 4.0 CLIENT profile and the other the .NET 4 Full profile. Awesome huh!!!</p>
<p>So, if you come across this with one eye bleeding because you stabbed yourself and missing hair, now you know the simple resolution. </p>
<p><a href="http://brianseekford.com/wp-content/uploads/2011/06/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://brianseekford.com/wp-content/uploads/2011/06/image_thumb.png" width="244" height="46" /></a></p>
<p>&#160;</p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/06/06/how-to-fixerror-39-the-type-or-namespace-name-contracts-does-not-exist-in-the-namespace-xxx-are-you-missing-an-assembly-reference/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to fix SqlError: FILESTREAM feature is disabled.</title>
		<link>http://brianseekford.com/index.php/2011/05/17/how-to-fix-sqlerror-filestream-feature-is-disabled/</link>
		<comments>http://brianseekford.com/index.php/2011/05/17/how-to-fix-sqlerror-filestream-feature-is-disabled/#comments</comments>
		<pubDate>Tue, 17 May 2011 18:33:55 +0000</pubDate>
		<dc:creator>Brian Seekford</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[disabled]]></category>
		<category><![CDATA[filestream]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://brianseekford.com/index.php/2011/05/17/how-to-fix-sqlerror-filestream-feature-is-disabled/</guid>
		<description><![CDATA[I was trying to restore a database and got the error “System.Data.SqlClient.SqlError: FILESTREAM feature is disabled. (Microsoft.SqlServer.Smo) from the Restore Wizard. This baffled me a bit as I know I went into the DB Server setting in Sql Manager and specifically set that value to Allow it. Well, after smacking the computer around a bit, [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to restore a database and got the error “System.Data.SqlClient.SqlError: FILESTREAM feature is disabled. (Microsoft.SqlServer.Smo) from the Restore Wizard. </p>
<p>This baffled me a bit as I know I went into the DB Server setting in Sql Manager and specifically set that value to Allow it. Well, after smacking the computer around a bit, she finally confessed that there is another place you have to enable that setting. Go figure. </p>
<p>You need to go to the Sql Configuration Manager (Not SQL Server Management Studio) and also enable the settings.</p>
<p>&#160;</p>
<p>Here is the original error:</p>
<p><a href="http://brianseekford.com/wp-content/uploads/2011/05/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 4px 10px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://brianseekford.com/wp-content/uploads/2011/05/image_thumb.png" width="586" height="166" /></a></p>
<p>Here is me checking the settings on the DB:</p>
<p>Look, I think it’s set:</p>
<p><a href="http://brianseekford.com/wp-content/uploads/2011/05/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 4px 10px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://brianseekford.com/wp-content/uploads/2011/05/image_thumb1.png" width="486" height="448" /></a></p>
<p>&#160;</p>
<p>But really, no. Check the Running Values to see it laugh at you.</p>
<p><a href="http://brianseekford.com/wp-content/uploads/2011/05/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 4px 10px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://brianseekford.com/wp-content/uploads/2011/05/image_thumb2.png" width="446" height="411" /></a></p>
<p>&#160;</p>
<p>So, resolution? Go to Sql Configuration Manager. Open the properties window of your Server.</p>
<p><a href="http://brianseekford.com/wp-content/uploads/2011/05/image3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 4px 10px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://brianseekford.com/wp-content/uploads/2011/05/image_thumb3.png" width="358" height="400" /></a></p>
<p>Check the boxes. Hit OK. Now right click your server instance and hit Restart. Watch the progress bar and ponder great thoughts.</p>
<p>Now, go to SQL Management Studio.</p>
<p>Connect to your server and run this simple command.</p>
<blockquote><p>EXEC sp_configure filestream_access_level, 2</p>
<p>RECONFIGURE</p>
</blockquote>
<p>&#160;</p>
<p>Now restart your Sql instance once more. You are done. Repeat whatever miserable operation you were doing before you got this error and repeat to yourself. “When I design software, I will never make someone set an option in two programs ever….ever….never ever…”</p>
<p>&#160;</p>
<p>Happy Coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://brianseekford.com/index.php/2011/05/17/how-to-fix-sqlerror-filestream-feature-is-disabled/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

