Mike Nichols - Son of Nun Technology

Monorail Quick Tip - Inexplicable ARDataBind Errors

This took  me quite a while...I had a form that was successfully binding using the SmartDispatchController's DataBind attribute to my 'User' object. But when I tried to use the ARDataBind attribute, none of my form data was hydrating my object. There wasn't an exception thrown or anything so I couldn't figure out where the heck the problem lay.

Finally, I saw in the docs...

ErrorList errors = GetDataBindErrors(myObject);

 

as a way of accessing any errors that were caused during databinding.

So I stuck this bit of code in the relevant Controller method and finally saw what the issue was.

As usual, it was due to assembly clashes since I am using Oren's Rhino Commons and the most recent build from the Castle build server. I love working with all this but sometimes the assembly clashes get annoying...but these are minor considering how much easier it is work with this framework.

It turns out I have an assembly that is looking for Nhibernate 1.2.0 and I have NHib 2.0 ... seems to be a recurring theme today...