public class QualifierBL : MarshalByRefObject
 {

  public CategoryBL CategoryBL = new CategoryBL();
  public QualifierBL()
  {
  }
 }


public class CategoryBL  : MarshalByRefObject
{

public int Update(int UserId,int CategoryId,string CategoryName)
{
return 100;
}
}


In the Remote Client, I am accessing the CategoryBL as

QualifierBL objQBL = new QualifierBL();
int i = objBL.CategoryBL.Update();

This throws RemotingException

In Web.Config, I have made entries for both the classes

 <wellknown mode="Singleton" type="CCMS.BusinessLogic.QualifierBL,
CCMS.BusinessLogic" objectUri="QualifierBL.rem" />
        <wellknown mode="Singleton" type="CCMS.BusinessLogic.CategoryBL,
CCMS.BusinessLogic" objectUri="CategoryBL.rem" />

Also, In the remote client, I had referred as:

<wellknown type="CCMS.BusinessLogic.QualifierBL, CCMS.BusinessLogic"
url="HTTP://192.168.1.32:80/QualifierBL.rem"/>
  <wellknown type="CCMS.BusinessLogic.CategoryBL,
CCMS.BusinessLogic" url="HTTP://192.168.1.32:80/CategoryBL.rem"/>


Remoting works for other classes, where the instance of another class is
not created.
Any pointer in this regard would be helpful.

Thanks
Krishna Roopa

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to