Comments
1 comment
-
Hi All,
The functionality provided by the
System.Management
namespace is dependent upon the WMI (Windows Management Instrumentation) service.The Invalid namespace error suggests that there is an issue with the WMI service. For troubleshooting purposes, you can verify that using the Administrative Tools → Services utility.
You can wrap the code in a
try
-catch
block and use theServiceController
class to start and stop the appropriate service.
Add comment
Please sign in to leave a comment.
I did add that user to the people who could use that image. Not sure how to address the problem.
Any help would be appreciated.