Problem with assembly references and remote host vs. local host for Data Portal

Problem with assembly references and remote host vs. local host for Data Portal

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


boo posted on Thursday, March 06, 2008

Basically:

Project contains reference two 2 assemblies:

  1. Assembly 1 must use remote host.
  2. Assembly 2 must us local host.

In config file I make settings to use remote host because of calls to assembly 1, but of coarse when making calls to assembly 2, I get errors because assembly 2 is not remote hosted.

How can I tell CSLA to use remote host for calls to assembly 1, but to use local host from assembly 2?

steve981 replied on Friday, March 07, 2008

How about using the RunLocal attribute in the classes of Assembly 2? This will force them to run in the localhost.

Copyright (c) Marimer LLC