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
|
Hi, We have some code that works without issue under the 1.1 version We just attempted to move to 1.2
Once this was done I attempted to run the project and we now get an "object reference not set to an instance of an object" exception, which appears to be coming form the light speed innards. The LOC that the error is reported to occur on is: [Transient] I would like to re-emphasize that this was, and indeed still does when the dll is switched back, working in 1.1. All classes have the correct attributes and are unchanged from the previous compile. Ideally, rather than dealing with this specific error, I would like to know what changes have occurred between 1.1 and 1.2 that could cause this issue. Hope you can help here, we are eager to upgrade.
|
|
|
I would like to post a follow up to this. John-Daniel contacted me via email shortly after posting the above, as this was the easier way of debugging our issues- and was extreemely helpful- Thanks again! In the interest of helping other people with this problem i'd like to post what was found. The issue was being caused by using the Find() Method on the Repository within the constructor of an class inheriting from Entity, while this works ok under 1.1 it does not appear to work under 1.2. As was pointed out to me by John-Daniel there is now a hook that you can override- The AfterLoad method and here it is safe to run queries against your repository. i.e. base.AfterLoad();
|
|