Compiler Error Message:

  • Thread starter Thread starter Jon Paal
  • Start date Start date
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 ??
 
"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 ??
 
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 ??
 
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 ??
 
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 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 ??
 
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 ?




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 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 ??
 
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





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 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 ?


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 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 ??
 
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





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 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 ?


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/
===================================
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 ??
 
Back
Top