Hello. This should be challenging for someone. I have acquired a legacy .Net application running DataObjects v2.5.0.1 (I know, it's old). I am getting a "Domain Construction" error when the Domain.Build(domainUpdateMode) line is executed. However, if I hold the "Ctrl-Shift" keys and select to rebuild with the perform method, the error is bypassed and I go into the app without issue. But I have to do this EVERY time. Additional info: Domain construction error. Unknown error during extraction of Domain Database Model. Inner exception System.ArgumentNullException: Value cannot be null. Parameter name: value I cannot go into the code beyond the line of the error (even with F11) so I cannot follow what is happening. Any help or ideas will be greatly appreciated. Thanks! |
Few more comments:
Likely, it's possible to locate the source of ~ 6.5 years old version. The main problem is to locate the right repository copy - that version could be stored even in VSS; we switched to SVN when we started to develop v3.X; v4.X repository is stored in Hg. So it won't be a peace of cake anyway. But the main issue is building that version. v3.X and v4.X are build @ build server, that is configured for this. But v2.X definitely requires different versions of build tools, so actually setting up its build environment could require a day or so.
I absolutely agree with this recommendation. If you don't want to do this by your own, we could help you with this. |
Hello,
Obviously the error relates to some bug in database extractor part. It must be easy to fix, but unfortunatelly I even don't know if we have sources of such an old DataObjects version. Personally I've never seen it, so most probably we don't.
As an alternative it is always possible to decompile DataObjects assembly with Reflector, fix it and compile back, but it is hacking way and as the result you will stay with unsupportable persistence layer.
Do you plan to some way support, modify or develop this legacy application? If yes I'd recomment you to make a try to switch to DataObjects 3.8.x version. Assuming that API has not dramatically changed it seems quite easy (Of course this assumption must be checked at first).
DataObjects 3.8.x is stable. We have its sources and it is possible to build assemblies for .NET 1.1
May be it is an option for you.