c# - decoupled WMI Provider for Windows Service -


i had wmi provider , because of design constraints, add decoupled provider windows service (ws). following simple steps like:

  1. in windows service solution in vs, have added wmi provider project.
  2. set hosting model hostingmodel = managementhostingmodel.decoupled
  3. change setup project ws such output dll of provider copied c:\prog...\xyz folder during installation

i want decoupled provider work before (all class instances same before - no behavior change). both provider , ws written in c#. have not done registration of provider in ws - need (if yes, how?)?

however, when try enumerate class through powershell following error: fullyqualifiederrorid : hresult 0x80041016,microsoft.management.infrastructure.cimcmdlets.getciminstancecommand

also, when viewing through process explorer, can see provider dll shown in process ws.

why getting error?


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -