I am often coming to the point that I need to create lookup fields pointing on lists which are also created in the solution.
There are many ways to do it either by using feature receiver or by using the declarative way with xml. Even in the last mentioned way I am often coming to the situation in which it does not work as expected.
Therefore my question what you see what might be the best practices to achieve it. I want to do it the declarative way due to the better maintainability of the solutions.
Some of the mentioned issues are for example that these created site fields are somehow loosing their list references, so that they are not useable in other lists.
Exception message: <nativehr>0x80070057</nativehr><nativestack></nativestack>)