For me, this error was caused by MvcContrib and Castle binaries being out of sync. So the fix is to make sure you have corresponding versions.