For two days now I have a really pesky problem with VS 2010 (SP 1). My solution consists of 1 Azure project with 4 roles with each 1 instance. Each one of them executes a configuration change at one of the first lines to set the date format for the ServiceStack.Text JSON Serializer.
JsConfig.DateHandler = JsonDateHandler.ISO8601;
One would think there isn't much that can go wrong here, but somehow my VS thinks otherwise..
If I execute a Clean+Rebuild, the solution works just fine. If I stop the debugging (or some other exception ends the debug run), every further debug run will stop at this line and throw a MissingMethodException .
If I do a Clean+Rebuild again, it works for exactly 1 run and then the exception gets thrown again. Obviously the method can't just vanish, but I am out of ideas about what could be the source of this problem and it just destroys my efficiency to Clean+Rebuild after E V E R Y single change.
The previous ServiceStack.Text version did indeed not have this method (and yes, I used the previous version as of a few days ago), but I removed every single bit of it. I even looked at typeof(JsConfig).Assembly via QuickWatch to confirm that it loaded the latest version, which it did, so I can't imagine how the previous version could be responsible.
Actions which I already tried but didn't change anything:
Btw. I don't think this problem is really related to the ServiceStack.Text Library, but obviously I can't know that for sure.
I had the same problems (see my comment), but after a upgrade to the latest version of Servicesstack.Text, and the problem has gone.
Larsi