Browse by Tags

All Tags » .NET (RSS)

MVC's Html.DropDownList and "There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key '...'

ASP.NET MVC's HtmlHelper extension methods take out a lot of the HTML-by-hand drudgery to which MVC re-introduced us former WebForms programmers. Another thing to which MVC re-introduced us is poor documentation, after the excellent documentation for...
Posted by pjohnson | with no comments
Filed under: , ,

How to create a new WCF/MVC/jQuery application from scratch

As a corporate developer by trade, I don't get much opportunity to create from-the-ground-up web sites; usually it's tweaks, fixes, and new functionality to existing sites. And with hobby sites, I often don't find the challenges I run into with enterprise...

Oracle 64-bit assembly throws BadImageFormatException when running unit tests

We recently upgraded to the 64-bit Oracle client. Since then, Visual Studio 2010 unit tests that hit the database (I know, unit tests shouldn't hit the database--they're not perfect) all fail with this error message: Test method MyProject.Test.SomeTest...

Unity throws SynchronizationLockException while debugging

I've found Unity to be a great resource for writing unit-testable code, and tests targeting it. Sadly, not all those unit tests work perfectly the first time (TDD notwithstanding), and sometimes it's not even immediately apparent why they're failing....
Posted by pjohnson

Windows Workflow Foundation (WF) and things I wish were more intuitive

I've started using Windows Workflow Foundation, and so far ran into a few things that aren't incredibly obvious. Microsoft did a good job of providing a ton of samples, which is handy because you need them to get anywhere with WF. The docs are thin, so...
Posted by pjohnson | 4 comment(s)
Filed under: , , ,

Migrating from VS 2005 to VS 2008

I recently helped migrate a ton of code from Visual Studio 2005 to 2008, and .NET 2.0 to 3.5. Most of it went very smoothly; it touches every .sln, .csproj, and .Designer.cs file, and puts a bunch of junk in Web.Configs, but rarely encountered errors...

VS 2008 and .NET 3.5 Beta 2 released, with Go Live

It's official! In one of the first of a few dozen posts you'll read about it, Scott Guthrie announces Visual Studio 2008 and the .NET Framework 3.5 Beta 2 have been released .
Posted by pjohnson | 4 comment(s)
Filed under: ,

Microsoft Sandcastle

In working with my company's offshore developers, I was tasked with providing them documentation on a set of class libraries we use in our applications. In the .NET 1.0/1.1 time frame, we used NDoc , which, sadly, passed away last year , to turn the XML...

ASPInsiders Summit 2006 - C# 3.0 and LINQ

C# 3.0 (not to be confused with the confusingly-named .NET Framework 3.0 , which includes C# 2.0, not C# 3.0) was the most exciting thing discussed at the ASPInsiders Summit. When I first learned a bit about LINQ at the 2005 summit, I didn't really...
Posted by pjohnson | with no comments

Windows service setup projects - Unable to build custom action error

I ran into another under-documented snag upgrading my solution to Visual Studio 2005. It has a Windows service used for behind-the-scenes maintenance sorts of tasks that run on a regular basis, and a corresponding setup project. Now, it's also got...
More Posts