Circular reference error calling DSA in interface project

Topics: CAB & Smart Client Software Factory
Dec 2, 2011 at 1:21 AM

Hi

I'm completely fustrated with the DSA examples provide for this factory. The Smart Client Factory document tells you to create a disconnected agent in the Module project and then tells you to reference the Module project from the interface project.

  • Add references to your project for the project that contains the disconnected service agent (if the project that contains the disconnected service agent is located in a different project).

     You cannot do this because you end up with a circular reference error. Has any one been able to call a disconnected agent from the Interface module?  I have the module project which contains the DSA and I have the interface project containing the user interface where I'm trying to call the DSA. The steps in the help document don't seems to cater for the fact that the smart client factory generates these two projects and the interface project cannot reference the business module project. I'm tearing my hair out trying to get the interface button to call the disconnected agent.

    Any help would be appreciated. I'm completely coded a large amount of the factory according to the Labs that are provided with the guidance but for the life of me just can't seem to find a way to call the DSA.

    Thanks in advance for any help.

    Cheers

    Rich

  • Dec 2, 2011 at 1:35 AM

    Ok I gave up trying to connect the interface project to the business module project and moved the DSA into the interface project so it's now accessible. This breaks the patterns logic of seperating business functions from the interface but I could not find another way of doing this but by breaking the pattern.