Hi Simone and Charlie,
Thanks for the reply.
I have confirmed that this is not issue with NUnit. I have tried the same method invoke from a Windows Form Project and same error occurs with the CoinitializeSecurity call.
I am using the below call to CoInitializeSecurity:
CoInitializeSecurity(
                              IntPtr.Zero,
                              -1,
                              IntPtr.Zero,
                              IntPtr.Zero,
                              SecurityHelper.RpcAuthnLevel.PktPrivacy,
                              SecurityHelper.RpcImpLevel.Delegate,
                              IntPtr.Zero,
                              SecurityHelper.EoAuthnCap.SecureRefs | SecurityHelper.EoAuthnCap.DynamicCloaking,
                              IntPtr.Zero);
The method is same from my Standalone Console project and NUnit.
Regards,
Seena