i am using this for StdRegProv
oreg.CreateKey(HKEY_LOCAL_MACHINE, strKeyPath)
it says that 'Value of type 'Integer' cannot be converted to
'System.UInt32'.
An unhandled exception of type 'Sytem.managment.managementException' occured
in system.management.dll
Additional information: not found
the code hangs at inParams = classObj.GetMethodParameters("CreateKey")
You need to dig into what went wrong, something like this (untested):
Try
inParams = classObj.GetMethodParameters("CreateKey")
Catch e As system.management.ManagementException
' here, examine such things as e.ErrorCode, e.Message, e.Source, etc,
' my guess is you have bumped into a security issue
End Try
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.