RK
2004-11-10 08:22:52 UTC
I get the following exception when I fire a management event. The code works
fine if I run as an ADMIN but the moment I switch to a local user, I get
this exception. Does anybody know how to fix this problem.
Thanks
Exception: System.Runtime.InteropServices.COMException
Message: Exception from HRESULT: 0x80041003.
Source: mscorlib
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32
errorCode, IntPtr errorInfo)
at System.Management.Instrumentation.EventSource..ctor(String
namespaceName, String appName, InstrumentedAssembly instrumentedAssembly)
at
System.Management.Instrumentation.InstrumentedAssembly.InitEventSource(Object
param)
at System.Management.Instrumentation.InstrumentedAssembly..ctor(Assembly
assembly, SchemaNaming naming)
at System.Management.Instrumentation.Instrumentation.Initialize(Assembly
assembly)
at
System.Management.Instrumentation.Instrumentation.GetInstrumentedAssembly(Assembly
assembly)
at System.Management.Instrumentation.Instrumentation.Fire(Object
eventData)
fine if I run as an ADMIN but the moment I switch to a local user, I get
this exception. Does anybody know how to fix this problem.
Thanks
Exception: System.Runtime.InteropServices.COMException
Message: Exception from HRESULT: 0x80041003.
Source: mscorlib
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32
errorCode, IntPtr errorInfo)
at System.Management.Instrumentation.EventSource..ctor(String
namespaceName, String appName, InstrumentedAssembly instrumentedAssembly)
at
System.Management.Instrumentation.InstrumentedAssembly.InitEventSource(Object
param)
at System.Management.Instrumentation.InstrumentedAssembly..ctor(Assembly
assembly, SchemaNaming naming)
at System.Management.Instrumentation.Instrumentation.Initialize(Assembly
assembly)
at
System.Management.Instrumentation.Instrumentation.GetInstrumentedAssembly(Assembly
assembly)
at System.Management.Instrumentation.Instrumentation.Fire(Object
eventData)