This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
When working on new code or testing new concepts I sometimes got this annoying exception. I usally use the source code to find the error, but that take some time. Could it be better if "rethrow the exception" with a better message or with a "lightspeed exception" ?
System.InvalidCastException was unhandled by user code |
|
|
The only thing I can see in the code that might cause this issue is if you have a LockVersion field (optimistic concurrency checking) but it's not of type int. Is that the case? If so, we can certainly add a check for that. If not, can you provide us with a repro for this issue? Thanks! |
|
|
It was a long, fix it after using the source code and debug mode. Have done this a year ago I think. It could be nice if have another "exception" with this problem, but now I know why (again) :-) |
|
|
Future nightly builds will detect this issue and raise a meaningful error during initialisation. Thanks for drawing our attention to this! |
|