Re: WMI in a webservice

Tech-Archive recommends: Fix windows errors by optimizing your registry



"J" <A@xxx> wrote in news:ewuCDAIaFHA.1448@xxxxxxxxxxxxxxxxxxxx:
> But when I'm trying to create the webservice in .NET and I add the
> following line
>
> using System.Management
>
> I get the error "The type or namespace name does not exist in the class
> or namespace 'System'.
>
> Why am I getting this error? Am I not allowed to use a WMI in a
> webservice?

You have to add the assembly to your references also.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
.



Relevant Pages

  • Re: perl use syntax help
    ... the constant OK would have been imported into the namespace ... second manner as they may conflict with constants imported from other ... Prev by Date: ...
    (comp.lang.perl.misc)
  • Re: Adding a new class to a dll
    ... compared the namespace names of two "siblings" but afaiks it's all ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Application.StartupPath
    ... > Make sure the project contains a reference to "System.Windows.Forms.dll" and ... > the namespace 'System.Windows.Forms' is imported. ... > M S Herfried K. Wagner ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Help with error: "MessageBoxA : is not a class or namespace name"
    ... > Well, it worked before, and I cannot seem to undo whatever I did to cause ... I didn't touch any of the 'using namespace' directives, ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Is there any classes can handle and process e-mail?
    ... > Is there any classes can handle and process e-mail? ... just use System.Web.Mail namespace where you will ... Florida Department Of Transportation ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)