c# - Remote WMI not working when hosted as Windows Service -


I am working on remote WMII have all the DCOM settings, CIMV2 and WMI settings for special users. When I run the application as a console app, it works fine and brings me data. But when I host the same as Windows service, this is throwing exceptions

  Message: Error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Internal Exception Message: Stack Trace: On System. Runtime. Enterprises Martial Throw ExceptionsAncient (Int 32 error code in the system, Interpet errorInfo). Management. Management. Skype Initially on system (object o) system Management Remote WMIRule.BackupServerRule..ctor ()  

Start () in the DCOM configuration by adding network and network services but still the issue persists in Windows Server 2008 R2 OS to do anything specific to the OS ??? ???


Comments