Hi all!
I've been working on a WPF Project since few days. I am now facing a problem since I started to try to databind WPF Controls to NetTiers DataRepository in DesignMode. Attached, you will find a screenshot of the error.
Even thought the application runs perfectly when I compile and execute it; in design mode, the IDE tries to read the NetTiers config and doesn't succeed. Why? Is there a way to bypass this problem?
I am quite sure that some of you will tell me to change my add in my AddressTypes class constructor a kind of “if (!IsDesingMode) { then read DB }” but I don’t want to see such condition in a business logic object? Is it possible to add this condition somewhere in the generated code? Finally, I’d like to get rid of the error. I don’t really want to see my data in the IDE…
Any ideas? I’d really appreciate any help.
Thanks !
Martin