Howto implement security COM+ when client call by .Remoting !

Hi , I'm buiding a application Client / Server by .Net 2003 as the follwing :

+ Server :
- A class is written by COM+ which contains tow methods Add , Sub two number integer and then set security for COM+ contains two user
- User A : only call to method Add
- User B : allow call to both method Add and Sub.
Then I hosted COM+ application by the other application .Net Remoting .

+ Client
- I used .Net Remoting to call to the method in COM+ .

* Problems are :
- Server machine side, I created two user A and B , user is logoning is user C and I added users into Marshall role .
- Client machine side , I login by user A and call to the method Add , access denied . then I login by user B to call to methods , access denied too.

Please help me howto repair . Thanks




Answer this question

Howto implement security COM+ when client call by .Remoting !

  • Denise

    First, how is the .Net Remoting client calling the COM+ component

    1. The COM+ component is in a library application and this library is then exposed by a Remoting server

    2. The COM+ application that houses the component is exposed via the "Web service" feature

    3. Something else

    Regardless, I think that you should think about just using COM+/Enterprise Services for both the client and server -- as the above two mechanism aren't recommended.

    If you want to stick with Remoting, then you should consider using a Remoting server and then use PrincipalPermission to control access


  • Howto implement security COM+ when client call by .Remoting !