Compiler Error Message:

J

Jon Paal

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

Source Error:

Code:
Imports System.Management

....
Line 40: 		Dim moColl As System.Management.ManagementObjectCollection


any help on why the error msg ??
 
J

Jon Paal

"Imports System.Management"

has already been included....
where else do I need to add it ?


Eliyahu Goldin said:
You need to add a reference to System.Management to your project.

Eliyahu

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

Source Error:

Code:
Imports System.Management

....
Line 40: Dim moColl As System.Management.ManagementObjectCollection


any help on why the error msg ??
 
E

Eliyahu Goldin

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 said:
"Imports System.Management"

has already been included....
where else do I need to add it ?


Eliyahu Goldin said:
You need to add a reference to System.Management to your project.

Eliyahu

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

Source Error:

Code:
Imports System.Management

....
Line 40: Dim moColl As System.Management.ManagementObjectCollection


any help on why the error msg ??
 
J

Jon Paal

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 said:
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 said:
"Imports System.Management"

has already been included....
where else do I need to add it ?


Eliyahu Goldin said:
You need to add a reference to System.Management to your project.

Eliyahu

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

Source Error:

Code:
Imports System.Management

....
Line 40: Dim moColl As System.Management.ManagementObjectCollection


any help on why the error msg ??
 
J

Juan T. Llibre

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 ?





Jon Paal said:
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 said:
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 said:
"Imports System.Management"

has already been included....
where else do I need to add it ?


You need to add a reference to System.Management to your project.

Eliyahu

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

Source Error:

Code:
Imports System.Management

....
Line 40: Dim moColl As System.Management.ManagementObjectCollection


any help on why the error msg ??
 
J

Jon Paal

umm no..

i 'm trying to resolve a compiler error.


Juan T. Llibre said:
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 ?





Jon Paal said:
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 said:
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

"Imports System.Management"

has already been included....
where else do I need to add it ?


You need to add a reference to System.Management to your project.

Eliyahu

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

Source Error:

Code:
Imports System.Management

....
Line 40: Dim moColl As System.Management.ManagementObjectCollection


any help on why the error msg ??
 
J

Juan T. Llibre

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/images/express/features/vwd_ide.gif






Jon Paal said:
umm no..

i 'm trying to resolve a compiler error.

Juan T. Llibre said:
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 ?



Jon Paal said:
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.

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

"Imports System.Management"

has already been included....
where else do I need to add it ?


You need to add a reference to System.Management to your project.

Eliyahu

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

Source Error:

Code:
Imports System.Management

....
Line 40: Dim moColl As System.Management.ManagementObjectCollection


any help on why the error msg ??
 
J

Jon Paal

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 said:
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/images/express/features/vwd_ide.gif






Jon Paal said:
umm no..

i 'm trying to resolve a compiler error.

Juan T. Llibre said:
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 ?



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.


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

"Imports System.Management"

has already been included....
where else do I need to add it ?


You need to add a reference to System.Management to your project.

Eliyahu

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

Source Error:

Code:
Imports System.Management

....
Line 40: Dim moColl As System.Management.ManagementObjectCollection


any help on why the error msg ??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top