Category Archives: C#

MVC 2 – Model binding happens automatically for properties not fields

For some reason, when developing MVC 2 (C#) projects, post data are not automatically bound to class members defined as Fields, but they will be bound to Properties. So this won’t work: but something like this WILL work: Hope this … Read more

Posted in C# | Leave a comment

Google API nightmare: How I fixed the “Could not load file or assembly ‘System.Net.Http.Primitives, Version=1.5.0.0 …” exception

PS: This solution may or may not apply to your situation; my environment consisted of VS 2012, .NET 4.0, C#, Non-MVC web application, EPi Server CMS. Well aren’t the Google API a joy uh? Spent way too much time figuring … Read more

Posted in C#, Google, Visual Studio | 9 Comments