<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>ALNERNETIVE</title>
        <link>http://blog.alner.net/Default.aspx</link>
        <description>public blog Me : ISuppose</description>
        <language>en-US</language>
        <copyright>Nathan Allen-Wagner</copyright>
        <managingEditor>nathan@alner.net</managingEditor>
        <generator>Subtext Version 2.0.0.43</generator>
        <image>
            <title>ALNERNETIVE</title>
            <url>http://blog.alner.net/images/RSS2Image.gif</url>
            <link>http://blog.alner.net/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Standing to Code</title>
            <category>Software Development</category>
            <category>Standing</category>
            <link>http://blog.alner.net/archive/2012/03/20/standing-to-code.aspx</link>
            <description>&lt;p&gt;Today I tried a Standing Desk for the day. I've heard about this a number of times, mostly on Twitter. The idea's not new, but it is gaining attention due to the health concerns around so much sitting.&lt;/p&gt;  &lt;p&gt;I started standing at 7am. It's currently 3pm, and I'm still standing here. So far so good. My muscles are a little tired, but my mind feels more awake than most other days!&lt;/p&gt;  &lt;p&gt;Another thing I'm noticing is that it's a lot easier to switch gears. If I need to step over for a cup of coffee, I'm already standing. No big deal. And getting back to coding is just as easy. Just walk up and get to it. No need to try and find that comfortable position in the chair, scoot it up to the desk, etc.&lt;/p&gt;  &lt;p&gt;As for my desk… Well, it's the same desk I usually use… plus some boxes and a board to elevate my laptop to standing height. &lt;/p&gt;  &lt;p&gt;Cost = $0. Adding years to my life and energy to my day… priceless.&lt;/p&gt;  &lt;p&gt;(I'll report back soon to let you know how things are going after a week of standing)&lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/191.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2012/03/20/standing-to-code.aspx</guid>
            <pubDate>Tue, 20 Mar 2012 19:12:00 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/191.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2012/03/20/standing-to-code.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/191.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/191.aspx</trackback:ping>
        </item>
        <item>
            <title>SqlTransaction Ain't Always Transactional</title>
            <category>Software Development</category>
            <category>Microsoft</category>
            <link>http://blog.alner.net/archive/2012/03/03/sqltransaction_aint_always_transactional.aspx</link>
            <description>&lt;p&gt;Q: "SQL run using a &lt;font face="Courier New"&gt;SqlTransaction&lt;/font&gt; is part of a SQL Server Transaction and can be rolled back."&lt;/p&gt;  &lt;p&gt;A) True    &lt;br /&gt;B) False&lt;/p&gt;  &lt;p&gt;The answer is of course "A", right? That's what I thought too.&lt;/p&gt;  &lt;h4&gt;Basic SqlTransaction Usage&lt;/h4&gt;  &lt;p&gt;Most of us assume that we can write this:&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;using (var con = new SqlConnection(".."))      &lt;br /&gt;{       &lt;br /&gt;  con.Open();       &lt;br /&gt;  &lt;br /&gt;  using (var tran = con.BeginTransaction())       &lt;br /&gt;  {       &lt;br /&gt;    var cmd = con.CreateCommand();       &lt;br /&gt;    cmd.CommandText = "Update dbo.Customer ...";       &lt;br /&gt;    cmd.Transaction = tran;       &lt;br /&gt;      &lt;br /&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;    try      &lt;br /&gt;    {       &lt;br /&gt;      cmd.ExecuteNonQuery();       &lt;br /&gt;      tran.Commit();       &lt;br /&gt;    }  &lt;br /&gt;    &lt;/font&gt;&lt;font face="Courier New"&gt;catch      &lt;br /&gt;    &lt;/font&gt;&lt;font face="Courier New"&gt;{      &lt;br /&gt;      tran.Rollback();       &lt;br /&gt;    }&lt;/font&gt;&lt;font face="Courier New"&gt;     &lt;br /&gt;  }       &lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Arial"&gt;This is plain and simple SqlTransaction based logic. Exec the command. If it completes without error, call Commit(). If it has an issue, then call Rollback();&lt;/font&gt;&lt;/p&gt;  &lt;h4&gt;But ... What Does This Do?&lt;/h4&gt;  &lt;p&gt;&lt;font face="Arial"&gt;I challenge you to predict the behavior of the following "Retry" scenario. &lt;/font&gt;&lt;font face="Arial"&gt;The code may seem a bit odd… Why would you execute more SQL after an exception? But it shows what one might do if the code implemented Retry semantics inside a transaction. &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Arial"&gt;For retries, one might want to open a transaction, run a set of statements, and then retry any statements that had failed. The SQL transaction should remain in force in spite of any errors thrown by SQL server. For example, a foreign key violation does not automatically abort the transaction. Rather, the code would catch the FK violation and queue it for subsequent execution after completing the 1st pass. &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Arial"&gt;This does in fact work… &lt;u&gt;most of the time&lt;/u&gt;. I say most of the time, because &lt;u&gt;deadlock errors&lt;/u&gt; in SQL Server cause some interesting behavior.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Arial"&gt;Here's a snippet that should easily run in LinqPad without too much work. The only pre-requisite is to create a DB in SqlExpress named "Scratch". &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Arial"&gt;&lt;em&gt;Pay close attention to lines 144-145. How will they behave after the deadlock? What is their impact on the database?&lt;/em&gt;&lt;/font&gt;&lt;/p&gt; &lt;style type="text/css" media="screen"&gt;&lt;!-- 
div.embedPastebin { height: 500px; } 
--&gt;&lt;/style&gt;&lt;script src="http://pastebin.com/embed_js.php?i=ZHPpcKXe"&gt;&lt;/script&gt;  &lt;p&gt;&lt;font face="Arial" /&gt;&lt;/p&gt;  &lt;h4&gt;Shocked, Stupefied, and Generally Stumped&lt;/h4&gt;  &lt;p&gt;If you run the above code and look at the data that ends up in &lt;font face="Courier New"&gt;[dbo].[customer2]&lt;/font&gt;, you'll notice a very strange thing:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;The transactions were rolled back, but one of the "C" statement was still applied! &lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;WHY???&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Arial"&gt;Short Answer…&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Arial"&gt;The Deadlock aborts the underlying transaction on SQL Server, but SqlTransaction and SqlCommand happily continue to execute more commands &lt;strong&gt;&lt;u&gt;outside of any transaction&lt;/u&gt;&lt;/strong&gt;. &lt;/font&gt;&lt;/p&gt;  &lt;h4&gt;Hindsight is 20/20&lt;/h4&gt;  &lt;p&gt;After diagnosing and fixing this issue, it almost makes sense, but it's &lt;u&gt;not at all intuitive&lt;/u&gt; up front. I asked a couple colleagues to guess the outcome of the code, and both guessed wrong. I suspect that most of you will also be surprised by the results. Hindsight is 20/20, but up front, this one is nonsense.&lt;/p&gt;  &lt;p&gt;Deadlocks in SQL server mean that SQL will kill one of the transactions and roll it back. This frees the locks and allows the other transaction to proceed. In the scenario above, we force a deadlock, meaning that one of the transactions is ROLLED BACK on the server. &lt;u&gt;It's not just "zombied"&lt;/u&gt;, which would cause "SELECT XACT_STATE()" to return "-1". No, in this case, the transaction is done. &lt;u&gt;There is no more transaction&lt;/u&gt;.&lt;/p&gt;  &lt;p&gt;So, how does one of those "C" statements get applied? Basically, &lt;u&gt;SqlCommand doesn't know that there is a problem with the transaction on the server&lt;/u&gt;, nor does it ask the SqlTransaction object to check. Instead, it just sends the statement to the server, assuming that the server still has a transaction open on the current connection. But there is no transaction. As a result, those &lt;u&gt;statements are executed with no transaction at all&lt;/u&gt;. The subsequent Rollback() has no means to undo their work.&lt;/p&gt;  &lt;h4&gt;Is This a Bug?&lt;/h4&gt;  &lt;p&gt;Calling something a bug is rather severe. In this case, I suspect that the framework can do better. &lt;/p&gt;  &lt;p&gt;The system does some checks to ensure proper &amp;amp; safe usage of the SqlTransaction, but not enough. After a deadlock, the client still has a reference to a SqlTransaction object. This object still thinks that it has a transaction on the server. It will even allow you to call Rollback() on this transaction object after the deadlock. But it won't let you call Commit(). It seems that SqlTransaction knows that the transaction can't commit, and throws an error back at you. Additionally, if you use a SqlConnection with a SqlCommand, but don't pass the associated SqlTransaction, then it will throw an error. &lt;/p&gt;  &lt;p&gt;So the system does some internal checks, but it doesn't check for the deadlock scenario. &lt;em&gt;Well, I think it should do better.&lt;/em&gt; Before executing a command, it should check whether the associated transaction is gone. If the server transaction is gone, it shouldn't even run the command. It should just error. Otherwise, SqlCommand will continue to run the statements outside of any transaction.&lt;/p&gt;  &lt;p&gt;I don't know if this is possible, or if it has some sever side-effects, but the current behavior of SqlTransaction is a very dangerous and sharp edge on the API surface of the .NET framework. A transaction that doesn't actually roll back the associated commands is not good.&lt;/p&gt;  &lt;h4&gt;Solution: Catch Deadlock Errors and Halt&lt;/h4&gt;  &lt;p&gt;The solution seems to require catching the SqlException, inspecting the Number to see if it's a deadlock, and then taking an alternate course of action. In the case of retry logic, the processing should immediately stop and rollback to prevent any subsequent commands from executing outside a transaction.&lt;/p&gt;  &lt;p&gt;To catch a deadlock, look for SqlException.Number == 1205. This indicates a deadlock occurred.&lt;/p&gt;  &lt;p&gt;Happy (Transaction) Coding!&lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/190.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2012/03/03/sqltransaction_aint_always_transactional.aspx</guid>
            <pubDate>Sun, 04 Mar 2012 03:03:00 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/190.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2012/03/03/sqltransaction_aint_always_transactional.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/190.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/190.aspx</trackback:ping>
        </item>
        <item>
            <title>Updated version of Monitored Undo Framework released</title>
            <category>Software Development</category>
            <category>muf</category>
            <link>http://blog.alner.net/archive/2012/01/31/updated-version-of-monitored-undo-framework-released.aspx</link>
            <description>&lt;p&gt;Today I released an updated version of the &lt;a href="http://muf.codeplex.com"&gt;Monitored Undo Framework&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;Changes include:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;A new parameter on the DefaultChangeFactory's methods for specifying the "description of the change". This can be helpful in cases where the UI shows a list of the undo / redo changes.&lt;/li&gt;    &lt;li&gt;A new WPF sample that shows, in a simpler codebase, how to use the framework.&lt;/li&gt;    &lt;li&gt;Updated build script that compiles all solutions, run the tests, and package the NuGet package.&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;These changes are also available via NuGet.&lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/189.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2012/01/31/updated-version-of-monitored-undo-framework-released.aspx</guid>
            <pubDate>Tue, 31 Jan 2012 15:24:00 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/189.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2012/01/31/updated-version-of-monitored-undo-framework-released.aspx#feedback</comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/189.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/189.aspx</trackback:ping>
        </item>
        <item>
            <title>&amp;quot;tfpt unshelve /migrate&amp;quot; Doesn't Account for Renames</title>
            <category>Software Development</category>
            <category>Microsoft</category>
            <category>TFS</category>
            <link>http://blog.alner.net/archive/2012/01/26/tfpt_unshelve_migrate_missed_changes_due_to_file_renames.aspx</link>
            <description>&lt;p&gt;A quick note about Team Foundation Power Tools (TFPT)'s "Unshelve" command…&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;tfpt unshelve&lt;/font&gt; has a &lt;font face="Courier New"&gt;/MIGRATE&lt;/font&gt; switch that will allow unshelving changes into a different branch / location than the one where they were originally shelved. I won't re-iterate the many articles describing how to use this command.&lt;/p&gt;  &lt;p&gt;One issue that I ran into is unshelving a set of changes into a branch where some of the shelved files had been renamed / moved. It seems that the /migrate switch doesn't go back into TFS version history to locate the renames. Instead, it simply pulls out the changes and re-applies them to the new location. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;For Example:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Let's say that I start with &lt;font face="Courier New"&gt;Branch A&lt;/font&gt;. One user (John Doe) get's latest and starts making changes.&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;Branch A     &lt;br /&gt;    Src      &lt;br /&gt;        File1.txt&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Then… a different user (Jane Smith) renames &lt;font face="Courier New"&gt;File1.txt&lt;/font&gt;&lt;font face="Arial"&gt; and checks that in.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;Branch A     &lt;br /&gt;    Src      &lt;br /&gt;        File1_RENAMED.txt&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Arial"&gt;Then… (for some reason), they need to move John's changes from &lt;font face="Courier New"&gt;Branch A&lt;/font&gt; to another branch. (Let's pretend that Branch A is the main branch, but the changes are too large for this iteration, so they want to move them to a separate branch for a future release.) So they create &lt;font face="Courier New"&gt;Branch B&lt;/font&gt;, which looks like this:&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;Branch B     &lt;br /&gt;    Src      &lt;br /&gt;        File1_RENAMED.txt&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Then… John shelves his changes and they attempt to use &lt;font face="Courier New"&gt;tfpt unshelve /migrate&lt;/font&gt; to move the changes to &lt;font face="Courier New"&gt;Branch B&lt;/font&gt;. &lt;/p&gt;  &lt;p&gt;But a strange thing happens. They end up with this:&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;Branch B     &lt;br /&gt;    Src      &lt;br /&gt;        File1.txt      &lt;br /&gt;        File1_RENAMED.txt&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Huh? How'd that happen? &lt;/p&gt;  &lt;p&gt;Someone who knows version control well could probably explain why, and suggest that this is obvious. But it wasn't to me, and as a result, some of the changes in the shelveset did not make it into the target solution.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;How I should have done it…&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;If I was going to do this again, I think I'd:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Get the source and the target branches to the same version. (Merge changes as needed between the branches.)&lt;/li&gt;    &lt;li&gt;In the source branch, get latest version so that the local workspace has the latest version.&lt;/li&gt;    &lt;ol&gt;     &lt;li&gt;This should propagate any pending renames / moves that were made in that source branch, or it's parent branches.&lt;/li&gt;   &lt;/ol&gt;    &lt;li&gt;Shelve the changes that should be moved.&lt;/li&gt;    &lt;li&gt;In the target branch, get latest version.&lt;/li&gt;    &lt;li&gt;Run &lt;font face="Courier New"&gt;tfpt unshelve /migrate …&lt;/font&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/188.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2012/01/26/tfpt_unshelve_migrate_missed_changes_due_to_file_renames.aspx</guid>
            <pubDate>Thu, 26 Jan 2012 21:14:00 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/188.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2012/01/26/tfpt_unshelve_migrate_missed_changes_due_to_file_renames.aspx#feedback</comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/188.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/188.aspx</trackback:ping>
        </item>
        <item>
            <title>A Visual Studio Extesion to make Scrolling Better!</title>
            <category>Software Development</category>
            <category>Microsoft</category>
            <link>http://blog.alner.net/archive/2012/01/23/vs_extension_keyboard_scrolling_buffer.aspx</link>
            <description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;A friend of mine (&lt;a href="http://jnastase.alner.net/"&gt;John Nastase&lt;/a&gt;) saw a &lt;a href="http://twitter.com/#!/nathanaw/status/160416144199647232"&gt;tweet&lt;/a&gt; or &lt;a href="http://twitter.com/#!/nathanaw/status/160416480838692864"&gt;two&lt;/a&gt; of mine complaining about scrolling in Visual Studio.&lt;/p&gt;
&lt;p&gt;What did he do? He wrote a VS extension to make it happen!!! &lt;/p&gt;
&lt;p&gt;Here's &lt;a href="http://visualstudiogallery.msdn.microsoft.com/03e6b964-0f7c-4556-8300-8dc857bb9a10"&gt;the extension that he just published in the VS extension gallery.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It basically adds a "cursor buffer" space to the top and bottom of the window so that as arrow down the page, the page starts to scrolling before the cursor hits the VERY BOTTOM OF THE PAGE. Instead, it starts scrolling a little earlier so that you can see what's coming. This saves you from scrolling too far and then having to arrow back up to where you want to be.&lt;/p&gt;
&lt;p&gt;Brilliant!&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/187.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2012/01/23/vs_extension_keyboard_scrolling_buffer.aspx</guid>
            <pubDate>Tue, 24 Jan 2012 03:37:54 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/187.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2012/01/23/vs_extension_keyboard_scrolling_buffer.aspx#feedback</comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/187.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/187.aspx</trackback:ping>
        </item>
        <item>
            <title>EF Inserts Failing Because of Missing Association in SSDL</title>
            <category>Entity Framework</category>
            <category>Software Development</category>
            <link>http://blog.alner.net/archive/2012/01/19/ef-inserts-failing-because-of-missing-association-in-ssdl.aspx</link>
            <description>&lt;p&gt;I just found that Entity Framework (4.0) can stumble on One-To-One relationships if the EDMX's schema storage layer (SSDL) is missing the association that represents the Foreign Key in the database. I suppose this makes sense, but it's only obvious to me in hindsight.&lt;/p&gt;  &lt;p&gt;I don't know how my EDMX ended up missing the SSDL association for the Foreign Key, but it was missing. However the the Conceptual Layer had the relationship, so the diagram made it look like it was associated. And because this is a supported scenario, it didn't complain at me that I was missing anything.&lt;/p&gt;  &lt;p&gt;But…&lt;/p&gt;  &lt;p&gt;When I went to save the records, EF stumbled on the insert. In my case, I had two entities that were related by a "1 to 0..1" relationship. I'm guessing that EF saw this, evaluated the SSDL layer's metadata and decided that order of insert didn't matter. As a result, it inserted them in alphabetical order… &lt;em&gt;and failed&lt;/em&gt;. It failed because in my DB, I did have a foreign key.&lt;/p&gt;  &lt;p&gt;The fix was to manually add the association into the SSDL layer.&lt;/p&gt;  &lt;p&gt;Note: Editing EDMX files by hand SUCKS!&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/185.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2012/01/19/ef-inserts-failing-because-of-missing-association-in-ssdl.aspx</guid>
            <pubDate>Thu, 19 Jan 2012 21:37:00 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/185.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2012/01/19/ef-inserts-failing-because-of-missing-association-in-ssdl.aspx#feedback</comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/185.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/185.aspx</trackback:ping>
        </item>
        <item>
            <title>Microsoft's MVP program and Rob Eisenberg</title>
            <category>WPF</category>
            <category>Software Development</category>
            <category>WP7</category>
            <category>Microsoft</category>
            <link>http://blog.alner.net/archive/2012/01/05/ms_mvp_program_and_eisenberg.aspx</link>
            <description>&lt;p&gt;This is a long read, but it's got some detailed insight on the MVP program at Microsoft. I've heard these sentiments before, and I'm sure that it's not black and white. Regardless, Microsoft's actions in this case are unacceptable.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://devlicio.us/blogs/rob_eisenberg/archive/2012/01/04/how-i-lost-regained-and-then-turned-down-an-mvp-award.aspx" href="http://devlicio.us/blogs/rob_eisenberg/archive/2012/01/04/how-i-lost-regained-and-then-turned-down-an-mvp-award.aspx"&gt;http://devlicio.us/blogs/rob_eisenberg/archive/2012/01/04/how-i-lost-regained-and-then-turned-down-an-mvp-award.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;If you don't know Rob Eisenberg, he's the creator of &lt;a href="http://caliburn.codeplex.com/" target="_blank"&gt;Caliburn&lt;/a&gt; and &lt;a href="http://caliburnmicro.codeplex.com/" target="_blank"&gt;Caliburn Micro&lt;/a&gt; frameworks for XAML based platforms (WPF, Silverlight, WP7). If you want to have your mind blown, take a look at his source code for Caliburn Micro (and even more so for Caliburn). While you're at it, watch his "&lt;a href="http://channel9.msdn.com/events/MIX/MIX10/EX15" target="_blank"&gt;Build your own MVVM framework&lt;/a&gt;" presentation. I reviewed a lot of WPF frameworks, but Caliburn Micro stands alone in it's elegance, simplicity, and amazing use of the C# / .NET platform.&lt;/p&gt;  &lt;p&gt;I seriously hope that MS addresses whatever is behind this story. We need people like Rob! They should be rewarded for their amazing contributions to the community.&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/184.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2012/01/05/ms_mvp_program_and_eisenberg.aspx</guid>
            <pubDate>Thu, 05 Jan 2012 19:34:00 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/184.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2012/01/05/ms_mvp_program_and_eisenberg.aspx#feedback</comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/184.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/184.aspx</trackback:ping>
        </item>
        <item>
            <title>Good Times at the .NET SIG&amp;hellip;</title>
            <category>Software Development</category>
            <link>http://blog.alner.net/archive/2011/12/14/good_times_at_net_sig_craftsmanship.aspx</link>
            <description>&lt;p&gt;Had a great time at the &lt;a href="http://www.bennettadelson.com/AllEvents.aspx?sig=1e77a027-e2c4-df11-a738-001f29c6fb82" target="_blank"&gt;.NET SIG&lt;/a&gt; last night where we talked about Software Craftsmanship and did Katas together. We had a good turn out (~40 attendees), and we spent a majority of the time doing Katas. &lt;/p&gt;  &lt;p&gt;I was quite impressed by the group's willingness to try Pair Programming. Here's pic that Andrew Thorne snapped of one side of the room. You can see people working on a kata, mostly in pairs!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.alner.net/images/blog_alner_net/Windows-Live-Writer/Good-Times-at-the-.NET-SIG_746D/image_2.png" rel="lightbox"&gt;&lt;img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://blog.alner.net/images/blog_alner_net/Windows-Live-Writer/Good-Times-at-the-.NET-SIG_746D/image_thumb.png" width="244" height="139" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="https://twitter.com/#!/Bennett_Adelson/status/146744206772281345/photo/1/large" href="https://twitter.com/#!/Bennett_Adelson/status/146744206772281345/photo/1/large"&gt;https://twitter.com/#!/Bennett_Adelson/status/146744206772281345/photo/1/large&lt;/a&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Thanks to those of you who came out. Hope you enjoyed the time and got something out of it.&lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/183.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2011/12/14/good_times_at_net_sig_craftsmanship.aspx</guid>
            <pubDate>Wed, 14 Dec 2011 13:15:00 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/183.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2011/12/14/good_times_at_net_sig_craftsmanship.aspx#feedback</comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/183.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/183.aspx</trackback:ping>
        </item>
        <item>
            <title>Signing EXEs and MSIs with Signtool via TFS Builds</title>
            <category>Software Development</category>
            <link>http://blog.alner.net/archive/2011/11/18/signing-exes-and-msis-with-signtool-via-tfs-builds.aspx</link>
            <description>&lt;p&gt;I won't repeat the "Signing your code with Signtool" walkthrough that is already detailed in 50,000 other posts. You can Bing that with Google as easily as I did. What I will share is a little issue that tripped me up for a bit. &lt;/p&gt;  &lt;p&gt;I wanted the code signed as part of the TFS automated build. And, while I could run the command line myself, &lt;strong&gt;I could not get it to work under TFS builds&lt;/strong&gt;.&lt;/p&gt;  &lt;h4&gt;The Scenario&lt;/h4&gt;  &lt;ul&gt;   &lt;li&gt;I wanted the keys in the certificate store, rather than on disk. This makes it possible to use the certificate without storing the certificate's private key password on disk.&lt;/li&gt;    &lt;li&gt;The build process is NOT running as local admin.&lt;/li&gt;    &lt;li&gt;The code signing tasks happen as a "Post-Build" event, specified in the project's properties.&lt;/li&gt;    &lt;li&gt;The certificate was installed in the Machine Store, not a specific account's store.&lt;/li&gt; &lt;/ul&gt;  &lt;h4&gt;The Problem&lt;/h4&gt;  &lt;p&gt;I could run the Signtool command under my account and it worked. But if I ran under a limited account, it didn't work.&lt;/p&gt;  &lt;p&gt;I tried copying the cert into the service account's personal store, but that didn't help.&lt;/p&gt;  &lt;h4&gt;The Solution - Permissions, of course!&lt;/h4&gt;  &lt;p&gt;It wasn't immediately obvious because of various error messages such as:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;"No certificates were found that met all the given criteria"&lt;/li&gt;    &lt;li&gt;"No provider was specified for the store or object"&lt;/li&gt;    &lt;li&gt;… and others&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;I figured that I'd check to see what Signtool was looking for to see if I could isolate the issue. &lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb896645" target="_blank"&gt;ProcessMonitor&lt;/a&gt; did the trick in a matter of minutes. Spinning it up, I found that it was getting access denied on the Machine Store's key files. I've seen this before related to IIS / ASP.NET (I think). &lt;/p&gt;  &lt;p&gt;On Windows Server 2003 and earlier, the machine keys are stored under:   &lt;br /&gt;&lt;font size="3" face="Courier New"&gt;C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;On Windows Server 2008, these are now under:   &lt;br /&gt;&lt;font size="3" face="Courier New"&gt;C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys&lt;/font&gt; &lt;/p&gt;  &lt;p&gt;I found the file related to the cert that I just installed and inspected permissions. Just "Administrators" and "System". I granted my build service account read access and, VOILA, the Signtool works!&lt;/p&gt;  &lt;p&gt;If anyone knows how to manage cert permissions without mucking with the file system directly, please do tell! And if you know why this is the way it is, I'd love to hear it.&lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/182.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2011/11/18/signing-exes-and-msis-with-signtool-via-tfs-builds.aspx</guid>
            <pubDate>Fri, 18 Nov 2011 20:23:00 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/182.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2011/11/18/signing-exes-and-msis-with-signtool-via-tfs-builds.aspx#feedback</comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/182.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/182.aspx</trackback:ping>
        </item>
        <item>
            <title>LINQ to Excel = Bliss!</title>
            <category>Linq</category>
            <category>Software Development</category>
            <link>http://blog.alner.net/archive/2011/11/08/linq_to_excel_is_bliss.aspx</link>
            <description>&lt;p&gt;It's fun when an API is so awesome that it just makes you smile uncontrollably. That's how I felt after using Linq To Excel!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://code.google.com/p/linqtoexcel/"&gt;http://code.google.com/p/linqtoexcel/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I dreaded the thought of coding against Excel and decided to search around for the best approach. StackOverflow served up a couple options, including LINQ to Excel. Now I like LINQ, so it naturally attracted my eye. The project is completely awesome! It let me extract data from multiple sheets in an excel workbook with just a few lines of code, and no direct dependency on Excel to be installed on the machine! &lt;/p&gt;  &lt;p&gt;Awesome!&lt;/p&gt;  &lt;p&gt;So, if you need to pull data out of Excel, look no further. You can even pull the package into your project via NuGet! &lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blog.alner.net/aggbug/181.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nathan Allen-Wagner</dc:creator>
            <guid>http://blog.alner.net/archive/2011/11/08/linq_to_excel_is_bliss.aspx</guid>
            <pubDate>Wed, 09 Nov 2011 04:28:00 GMT</pubDate>
            <wfw:comment>http://blog.alner.net/comments/181.aspx</wfw:comment>
            <comments>http://blog.alner.net/archive/2011/11/08/linq_to_excel_is_bliss.aspx#feedback</comments>
            <wfw:commentRss>http://blog.alner.net/comments/commentRss/181.aspx</wfw:commentRss>
            <trackback:ping>http://blog.alner.net/services/trackbacks/181.aspx</trackback:ping>
        </item>
    </channel>
</rss>
