Today I was about to deploy an app to the server when I realized I had been building against .NET 4.5 while the server only had .NET 4.0 on it. After changing the Framework version, I started getting errors.


'System.Net.Http.HttpContent' does not contain a definition for 'ReadAsAsync' ...


Read more to see how I finally fixed it after wasting almost 3 hours.

[More]
Categories: Code | Development | Professional | Technology | Tools

You may or may not know that I am currently writing a book.  If you didn't, now you do.  That's a picture of the cover.

[More]
Categories: Books | Code | Development | Professional | Software Projects | Technology | Windows 8 | Windows Store apps
I'm rebuilding my computer after a hard drive failure, and I keep running into issues where things I've taken for granted are missing – things such as the "VS Command Prompt Here" Windows Explorer context menu items. Years ago, Scott Hanselman posted INF files to add VS 2005 to the context menu. Using that as inspiration, I've created a version of the file for VS 2008 and another for VS 2010. For what it's worth, I tweaked his VS 2005 file because my copy of VS is installed in "P... [More]
Categories: Development | Work | Technology | Software Projects | Code | Professional
I've been writing code with curly braces for a dozen years or so, starting with C++ in college, then JavaScript for many, many years, and for the last few years, C#.  In all that time, I have been a fan of putting the opening curly brace on the same line as the declaration or control statement.  For example: private void DoSomething() { // ... if (somecondition) { myval = true; } // ... } At work, though, I have been working on someone else's code, and... [More]
Categories: Development | Work | Technology | Software Projects | Code | Professional

Jul 200816

Testing PreCode

I'm using this post to test PreCode -- a code snippet formatting plugin for Windows Live Writer.  It uses SyntaxHighlighter on the client side and this plugin just sends the needed code to my blog engine. As a test I thought I'd just add a couple short snippets, using some of the different available options. //C#, using PRE bool b = true; ' VB, using TEXTAREA, "Showing Columns" Dim b as Boolean = True ' VB, using PRE, Starting at line #20 Dim i as Int32 i = 1 i += 3 M... [More]
Categories: Technology | Blogosphere | Tools | Code