Application server not working under Wcf

Application server not working under Wcf

Old forum URL: forums.lhotka.net/forums/t/4247.aspx


shaih posted on Monday, January 28, 2008

Hi,

I am running into an issue with the WcfHost (Wcf data portal channel) - I have both a Wcf service and WcfHost under IIS 6 (2003 Server). both are configured as instructed in the CSLA 3.0 ebook. Each one is defined under a V.Dir and is using a different application.

In my Wcf service I am calling a BO that is loading a tree of other BOs from a database, then it tries to load another BO object from the database (another tree of objects). At this point I get an HTTP failure in the client. When putting the RunLocal attribute on the root BO that is generating the error - everything works well.

I do not see any difference between the 2 load BOs except for the root of the tree BO is not participating in the first call (but it is not written in any special way)

Any idea/direction????

Thanks

RockfordLhotka replied on Monday, January 28, 2008

Your architecture is:

client--XML-->wcfservice--dataportal-->appserver

?

I do this quite frequently, though if you can avoid having a separate app server you'll get a lot better performance and simpler deployment, so that is really the better approach. But people do this harder architecture for security reasons, and I assume that's your motivation as well.

Debugging objects behind a WCF service can be a pain. It is far easier to debug behind a simpler client than WCF - like a console app or something. My recommendation would be to create a simple console app that references your same business assembly. Then set up your app.config to talk to that same app server. Then you can run the client in the debugger and step through to see the real exception that's causing you trouble.

Copyright (c) Marimer LLC