المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : security init failure error in win32 dll's method when calling from C# (windows and web) application.



C# Programming
01-22-2010, 01:51 PM
Hi..
I have encountered a error while calling a method of a Win32 Dll in C# application(both windows and web),

Error : 'Failed to initialize Security' (at CoInitializeSecurity method of Win32 dll - C code)
Error Code: 183 (returned by Marshal.GetLastWin32Error())

This Win32 dll communicates with disk drive using WMI classes. Also doing read/Write and partition on the disk.

We are using .Net Framework 2.0, Windows XP SP2.

Any suggestions or advice most welcomed

Thanks in advance
SunAgen