Armin,
>The error occurs in this line of the code snippet you've posted:
Since you're building your own data environments without using the Framework's builder, it would be best if you send me a class library (via private e-mail) containing one of these classes so I can best determine how to approach the problem.
Thanks,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com