NServiceBus error : Value cannot be null, Parameter name: meth

Created 26 February 2010 08:29
It's been a while since I used NServiceBus and I got this annoyingly cryptic error message this morning:

Value cannot be null.
Parameter name: meth


I finally found this post about it and it's actually a fairly obvious mistake - I had added property without a setter on one of the objects that needed to be serialized as part of my message. The error message was unfortunately cryptic enough for me to take a while to find it. I thought I'd post this on here for my own future reference.
Gary Brunton on 16 November 2012 at 20:54
This just saved me a lot of time. I'm not using NServiceBus but I came across this same error message and realized that I had a private access setup on one of my property setters. It would have taking me a long time to find that if I hadn't came across this. So, thanks!