Re: CS0246: The type or namespace name 'ManagementObjectSearcher' could not be found
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Fri, 20 Mar 2009 10:36:59 -0700
On Fri, 20 Mar 2009 01:01:31 -0700, CKKwan <ckkwan@xxxxxxxxxxx> wrote:
I have added System.Management as reference, and using
System.Management; in my code.
Everything compile fine (wihtout a single error / warning).
But this error occur during runtime. (Press F5 and run in debug mode).
Any idea what might have gone wrong?
That's a compiler error, not a run-time error. So the only way it could happen "during runtime" is if you are trying to compile something at run-time, but not providing the necessary reference for the compilation _at run-time_.
What that could be, is impossible to say. You haven't provided any code, never mind a concise-but-complete code sample that reliably demonstrates the problem.
Pete
.
- References:
- Prev by Date: Unable to run windows form application without local admin right
- Next by Date: Re: Making copies inside static methods..please help!!
- Previous by thread: CS0246: The type or namespace name 'ManagementObjectSearcher' could not be found
- Next by thread: Re: CS0246: The type or namespace name 'ManagementObjectSearcher' could not be found
- Index(es):
Relevant Pages
|