Debugging a WMI provider in VS.NET



I'm new to WMI, so I appreciate any help you can give me. I need a custom WMI
provider that could expose writeable properties and methods, so I created a
WMI instance provider via the ATL class wizard. I currently have just one
method in there that takes one input parameter. I can see this method when I
access the class using CIM Studio. I'm having problems calling the method
within CIM studio. I receive a dialog saying "WMI: Provider load failure,
Could not execute the method." I attempted to follow the directions in MSDN
on debugging providers and am not having any luck. I've tried setting my
executeable to debug on to wmiprvse.exe. I can attach to the process but I
can't seem to step through my provider code. I've also tried setting the
Image File Execution Options in the registry to use devenv.exe to debug.
After this, when I tried debugging my provider (using wmiprvse as the command
to run), nothing appears to happen. I can't step through any code.

Is there a step I'm missing? Thanks in advance!

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question