CSCOMService
(1)
CoInitializeSecurity
(1)
LocalSystem
(1)
HelloHow
(1)
Com
(1)
Consumes
(1)
Exposes
(1)
Msdnmg
(1)

Com DCOM in service application

Asked By Yannick Fortin
25-Jan-10 03:26 PM
I have an issue with credentials with services application.



I have 2 services that interact with each other.

Server application exposes a DCOM object

Client application consumes the DCOM object.



Everything worked fine as long as both services are logged on as



Now I am trying to make them work both as a local administrator. But I cannot
seem to find a good formula to have this fixed.

I have played with CoInitializeSecurity on both services.



So I have 3 questions

1-Is this possible to have 2 services applications that interact with each
other in local administrator.

2-If it is possible, Will it be fixed by the right combination of
CoInitializeSecurity. I have read thoroughly all the msdn information on this,
I have tried a lot of possibility and I have never hit the nail.

3-If it is possible, is there a code sample of this somewhere?

Hello1-Is this possible to have 2 services applications that interact with

jialg replied to Yannick Fortin
27-Jan-10 04:05 AM
Hello

1-Is this possible to have 2 services applications that interact with each
other in local administrator.

Yes, it is possible to do so.

2-If it is possible, Will it be fixed by the right combination of
CoInitializeSecurity. I have read thoroughly all the msdn information on
this,
I have tried a lot of possibility and I have never hit the nail.

CoInitializeSecurity is used to register security and set the default
security values for the your DCOM component. It should be helpful in this
case as long as it is called rightly.

3-If it is possible, is there a code sample of this somewhere?

I have a DCOM service sample written in C#. It explicitly calls
CoInitializeSecurity to set the security. You can download CSCOMService
from All-In-One Code Framework (http://cfx.codeplex.com)

Regards,
Jialiang Ge
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================

HelloHow are you?

jialg replied to jialg
31-Jan-10 08:28 PM
Hello

How are you? May I know whether the information in my last reply helps you
or not?

Regards,
Jialiang Ge
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
Post Question To EggHeadCafe