473,382 Members | 1,238 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Compiler Error Message:

Compiler Error Message: BC30002: Type 'System.Management.ManagementObjectCollection' is not defined.

Source Error:

Expand|Select|Wrap|Line Numbers
  1. Imports System.Management
  2.  
  3. ....
  4. Line 40:         Dim moColl As System.Management.ManagementObjectCollection
  5.  
  6.  

any help on why the error msg ??
Mar 23 '06 #1
8 4053
You need to add a reference to System.Management to your project.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Compiler Error Message: BC30002: Type
'System.Management.ManagementObjectCollection' is not defined.

Source Error:

Expand|Select|Wrap|Line Numbers
  1.       Imports System.Management
  2.       ....
  3.  Line 40: Dim moColl As System.Management.ManagementObjectCollection
  4.  


any help on why the error msg ??

Mar 23 '06 #2
"Imports System.Management"

has already been included....
where else do I need to add it ?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:ee**************@TK2MSFTNGP12.phx.gbl...
You need to add a reference to System.Management to your project.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:%2******************@TK2MSFTNGP11.phx.gbl...
Compiler Error Message: BC30002: Type 'System.Management.ManagementObjectCollection' is not defined.

Source Error:

Expand|Select|Wrap|Line Numbers
  1.       Imports System.Management
  2.       ....
  3.  Line 40: Dim moColl As System.Management.ManagementObjectCollection
  4.  


any help on why the error msg ??


Mar 23 '06 #3
Solution Explorer - right click the project - select Add Reference - on the
..Net tab find System.Management, select and press OK.

Imports statements are not references. They just allow you omitting the
namespace names.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:OW****************@TK2MSFTNGP14.phx.gbl...
"Imports System.Management"

has already been included....
where else do I need to add it ?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
You need to add a reference to System.Management to your project.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Compiler Error Message: BC30002: Type
'System.Management.ManagementObjectCollection' is not defined.

Source Error:

Expand|Select|Wrap|Line Numbers
  1.       Imports System.Management
  2.       ....
  3.  Line 40: Dim moColl As System.Management.ManagementObjectCollection
  4.  


any help on why the error msg ??



Mar 26 '06 #4
I use visual web developer...

I have one file open "/app_code/volume.vb"

The solution explorer window is empty.
There's nothing to "right click" on for adding a reference.
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:uL**************@TK2MSFTNGP14.phx.gbl...
Solution Explorer - right click the project - select Add Reference - on the .Net tab find System.Management, select and press OK.

Imports statements are not references. They just allow you omitting the namespace names.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:OW****************@TK2MSFTNGP14.phx.gbl...
"Imports System.Management"

has already been included....
where else do I need to add it ?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:ee**************@TK2MSFTNGP12.phx.gbl...
You need to add a reference to System.Management to your project.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:%2******************@TK2MSFTNGP11.phx.gbl...
Compiler Error Message: BC30002: Type 'System.Management.ManagementObjectCollection' is not defined.

Source Error:

Expand|Select|Wrap|Line Numbers
  1.       Imports System.Management
  2.       ....
  3.  Line 40: Dim moColl As System.Management.ManagementObjectCollection
  4.  


any help on why the error msg ??



Mar 26 '06 #5
What are you waiting for, to create a file which will have an UI
which your users will be able to interface with, which *will*
have the capacity for a reference to be added to it ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:en*************@TK2MSFTNGP10.phx.gbl...
I use visual web developer...

I have one file open "/app_code/volume.vb"

The solution explorer window is empty.
There's nothing to "right click" on for adding a reference.
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:uL**************@TK2MSFTNGP14.phx.gbl...
Solution Explorer - right click the project - select Add Reference - on the .Net tab find
System.Management, select and press OK.

Imports statements are not references. They just allow you omitting the namespace names.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:OW****************@TK2MSFTNGP14.phx.gbl...
"Imports System.Management"

has already been included....
where else do I need to add it ?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
You need to add a reference to System.Management to your project.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
> Compiler Error Message: BC30002: Type 'System.Management.ManagementObjectCollection' is not
> defined.
>
> Source Error:
>
>
Expand|Select|Wrap|Line Numbers
  1. >      Imports System.Management
  2. >
  3. >      ....
  4. > Line 40: Dim moColl As System.Management.ManagementObjectCollection
  5. >
>
>
> any help on why the error msg ??
>



Mar 26 '06 #6
umm no..

i 'm trying to resolve a compiler error.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:OP**************@TK2MSFTNGP09.phx.gbl...
What are you waiting for, to create a file which will have an UI
which your users will be able to interface with, which *will*
have the capacity for a reference to be added to it ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:en*************@TK2MSFTNGP10.phx.gbl...
I use visual web developer...

I have one file open "/app_code/volume.vb"

The solution explorer window is empty.
There's nothing to "right click" on for adding a reference.


"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:uL**************@TK2MSFTNGP14.phx.gbl...
Solution Explorer - right click the project - select Add Reference - on the .Net tab find System.Management, select and press
OK.

Imports statements are not references. They just allow you omitting the namespace names.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:OW****************@TK2MSFTNGP14.phx.gbl...
"Imports System.Management"

has already been included....
where else do I need to add it ?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:ee**************@TK2MSFTNGP12.phx.gbl...
> You need to add a reference to System.Management to your project.
>
> Eliyahu
>
> "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:%2******************@TK2MSFTNGP11.phx.gbl...
>> Compiler Error Message: BC30002: Type 'System.Management.ManagementObjectCollection' is not defined.
>>
>> Source Error:
>>
>>
Expand|Select|Wrap|Line Numbers
  1. >>      Imports System.Management
  2. >>
  3. >>      ....
  4. >> Line 40: Dim moColl As System.Management.ManagementObjectCollection
  5. >>
  6. >> 
>>
>>
>> any help on why the error msg ??
>>
>
>



Mar 27 '06 #7
re:
I use visual web developer...
I have one file open "/app_code/volume.vb"
The solution explorer window is empty.
There's nothing to "right click" on for adding a reference.
What do you see when you open the "Class View" ?

See this image to get a clear picture of the VWD ide showing the class view
and the "References" folder, with a file open in the app_code directory :

http://msdn.microsoft.com/vstudio/im...es/vwd_ide.gif

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:uh**************@tk2msftngp13.phx.gbl... umm no..

i 'm trying to resolve a compiler error.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OP**************@TK2MSFTNGP09.phx.gbl...
What are you waiting for, to create a file which will have an UI
which your users will be able to interface with, which *will*
have the capacity for a reference to be added to it ?
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:en*************@TK2MSFTNGP10.phx.gbl...
I use visual web developer...

I have one file open "/app_code/volume.vb"

The solution explorer window is empty.
There's nothing to "right click" on for adding a reference.


"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:uL**************@TK2MSFTNGP14.phx.gbl...
Solution Explorer - right click the project - select Add Reference - on the .Net tab find
System.Management, select and press OK.

Imports statements are not references. They just allow you omitting the namespace names.

Eliyahu

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:OW****************@TK2MSFTNGP14.phx.gbl...
> "Imports System.Management"
>
> has already been included....
> where else do I need to add it ?
>
>
> "Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
> news:ee**************@TK2MSFTNGP12.phx.gbl...
>> You need to add a reference to System.Management to your project.
>>
>> Eliyahu
>>
>> "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
>> news:%2******************@TK2MSFTNGP11.phx.gbl...
>>> Compiler Error Message: BC30002: Type 'System.Management.ManagementObjectCollection' is not
>>> defined.
>>>
>>> Source Error:
>>>
>>>
Expand|Select|Wrap|Line Numbers
  1. >>>      Imports System.Management
  2. >>>
  3. >>>      ....
  4. >>> Line 40: Dim moColl As System.Management.ManagementObjectCollection
  5. >>>
  6. >>> 
>>>
>>>
>>> any help on why the error msg ??
>>>
>>
>>
>
>



Mar 27 '06 #8
it's empty also.

You can probably recreate my problem.

just create a .vb file and save it to a temp folder somewhere.
open it in vwd and voila... the problem exists.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:OO**************@tk2msftngp13.phx.gbl...
re:
I use visual web developer...
I have one file open "/app_code/volume.vb"
The solution explorer window is empty.
There's nothing to "right click" on for adding a reference.


What do you see when you open the "Class View" ?

See this image to get a clear picture of the VWD ide showing the class view
and the "References" folder, with a file open in the app_code directory :

http://msdn.microsoft.com/vstudio/im...es/vwd_ide.gif

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:uh**************@tk2msftngp13.phx.gbl...
umm no..

i 'm trying to resolve a compiler error.


"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:OP**************@TK2MSFTNGP09.phx.gbl...
What are you waiting for, to create a file which will have an UI
which your users will be able to interface with, which *will*
have the capacity for a reference to be added to it ?
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:en*************@TK2MSFTNGP10.phx.gbl...
I use visual web developer...

I have one file open "/app_code/volume.vb"

The solution explorer window is empty.
There's nothing to "right click" on for adding a reference.
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:uL**************@TK2MSFTNGP14.phx.gbl...
> Solution Explorer - right click the project - select Add Reference - on the .Net tab find System.Management, select and press
> OK.
>
> Imports statements are not references. They just allow you omitting the namespace names.
>
> Eliyahu
>
> "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:OW****************@TK2MSFTNGP14.phx.gbl...
>> "Imports System.Management"
>>
>> has already been included....
>> where else do I need to add it ?
>>
>>
>> "Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:ee**************@TK2MSFTNGP12.phx.gbl...
>>> You need to add a reference to System.Management to your project.
>>>
>>> Eliyahu
>>>
>>> "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message news:%2******************@TK2MSFTNGP11.phx.gbl...
>>>> Compiler Error Message: BC30002: Type 'System.Management.ManagementObjectCollection' is not defined.
>>>>
>>>> Source Error:
>>>>
>>>>
Expand|Select|Wrap|Line Numbers
  1. >>>>      Imports System.Management
  2. >>>>
  3. >>>>      ....
  4. >>>> Line 40: Dim moColl As System.Management.ManagementObjectCollection
  5. >>>>
  6. >>>> 
>>>>
>>>>
>>>> any help on why the error msg ??
>>>>
>>>
>>>
>>
>>
>
>



Mar 28 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: jon morgan | last post by:
OK, I'm going to be brave. There is a bug in VS.Net 1.1 that causes random compiler errors. I have raised this issue in posts at least three time in the past couple of months without attracting...
30
by: Neil Zanella | last post by:
Hello, Allow me to share my frustrations with GNU g++. This is the second time something similar happens to me: I can't find anything wrong with my C++ program and yet I get segfaults, and...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
16
by: pj | last post by:
(Was originally, probably wrongly, posted to the vc subgroup.) (This doesn't appear to be a c# problem, but a problem with a bug in the Visual Studio c# compiler, but, any help will be welcome...)...
0
by: rollasoc | last post by:
Hi, I seem to be getting a compiler error Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around...
1
by: Ayende Rahien | last post by:
reparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 53168B12): likely culprit is 'BIND'. An internal...
3
by: Mark Rockman | last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error...
4
by: David Sworder | last post by:
Consider the following line of code (it's not important what it does): resp.DocItem=Relations.SelectDocItems_BySearchString(req.SearchPhrase); It turns out that this line is in error. The...
3
by: Robert | last post by:
Every time I navigate to any .aspx file on my computer, I get the error below. According to MSDN this indicates that my CLR is corrupt, but I've re-installed the .NET framework with no help. Also...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.