I use NHibernate (2.0.1GA) with my project. At runtime I get the
Invalid Cast (check your mapping for property type mismatches);
[...]
So it only says its unable to cast something. Thats a bit unprecise imho.
My mapping file is pretty big (master table with about 50 colums plus 11 subsets). How do I find the invalid cast without checking every line in it against the corresponding classes & tables?!
Get a hold of the pdbs (or just get the source), and figure out where the exception is first being thrown, and then backtrack in the stacktrace until you see what it is trying to cast.