WMI Exception - Provider Load Failure - Enumerating Network Interf


G

Guest

I am using an XPe image with all WMI components installed (icnluding the
macro component Windows Management Instrumentation Technologies). We have
written an application that is calling WMI to enumerate the network
interfaces in the machine.

When we run the application we receive the following exception:

5/3/2005 5:43:50 PM:
**** Console Provider load failure , received at 5/3/2005 5:43:50 PM,
Exception at 5/3/2005 5:43:50 PM ****
Provider load failure
at
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
errorCode)
at System.Management.ManagementObjectEnumerator.MoveNext()

Has anyone tried to do anything similar or seen similar errors?

Thank you,
-Jason
 
Ad

Advertisements

S

Slobodan Brcin \(eMVP\)

Jason,

Few questions.
1. Does this application work on XPP?
2. What Service Pack do you use?
3. Do you have .Net Framework included and what version?
4. What version of .net is required by your application?

Try making smaller code that repro same error and post it here.

Regards,
Slobodan
 
G

Guest

Slobodan,

1. The app does work on XP Pro.
2. Our image is XPe SP2
3. We are using .Net 1.1 (the component included with SP2) We are running
with minlogon and therefore had to modify one of the dependencies of the .Net
component.
4. I believe our application requires .Net 1.1

We have narrowed down the code which is causes us problems right now to the
following:

public static ArrayList InstalledNetworkCardNames()
{
ArrayList nicNames = new ArrayList();

ManagementClass mc = new
ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();

foreach(ManagementObject mo in moc)
{
if((bool)mo["ipEnabled"])
{
nicNames.Add( mo["Caption"] );
}
}
return nicNames;
}

Thanks for your help,
-Jason
 
K

KM

Jason,

Do you have the following components in your configuration:
- WMI Win32 Provider
- Network Diagnostics
- Terminal Services WMI Provider (may appear to be optional)

--
Regards,
KM, BSquare Corp.

Slobodan,

1. The app does work on XP Pro.
2. Our image is XPe SP2
3. We are using .Net 1.1 (the component included with SP2) We are running
with minlogon and therefore had to modify one of the dependencies of the .Net
component.
4. I believe our application requires .Net 1.1

We have narrowed down the code which is causes us problems right now to the
following:

public static ArrayList InstalledNetworkCardNames()
{
ArrayList nicNames = new ArrayList();

ManagementClass mc = new
ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();

foreach(ManagementObject mo in moc)
{
if((bool)mo["ipEnabled"])
{
nicNames.Add( mo["Caption"] );
}
}
return nicNames;
}

Thanks for your help,
-Jason

Slobodan Brcin (eMVP) said:
Jason,

Few questions.
1. Does this application work on XPP?
2. What Service Pack do you use?
3. Do you have .Net Framework included and what version?
4. What version of .net is required by your application?

Try making smaller code that repro same error and post it here.

Regards,
Slobodan
 
G

Guest

We do have all of those components installed and still no luck.

KM said:
Jason,

Do you have the following components in your configuration:
- WMI Win32 Provider
- Network Diagnostics
- Terminal Services WMI Provider (may appear to be optional)

--
Regards,
KM, BSquare Corp.

Slobodan,

1. The app does work on XP Pro.
2. Our image is XPe SP2
3. We are using .Net 1.1 (the component included with SP2) We are running
with minlogon and therefore had to modify one of the dependencies of the .Net
component.
4. I believe our application requires .Net 1.1

We have narrowed down the code which is causes us problems right now to the
following:

public static ArrayList InstalledNetworkCardNames()
{
ArrayList nicNames = new ArrayList();

ManagementClass mc = new
ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();

foreach(ManagementObject mo in moc)
{
if((bool)mo["ipEnabled"])
{
nicNames.Add( mo["Caption"] );
}
}
return nicNames;
}

Thanks for your help,
-Jason

Slobodan Brcin (eMVP) said:
Jason,

Few questions.
1. Does this application work on XPP?
2. What Service Pack do you use?
3. Do you have .Net Framework included and what version?
4. What version of .net is required by your application?

Try making smaller code that repro same error and post it here.

Regards,
Slobodan


I am using an XPe image with all WMI components installed (icnluding the
macro component Windows Management Instrumentation Technologies). We have
written an application that is calling WMI to enumerate the network
interfaces in the machine.

When we run the application we receive the following exception:

5/3/2005 5:43:50 PM:
**** Console Provider load failure , received at 5/3/2005 5:43:50 PM,
Exception at 5/3/2005 5:43:50 PM ****
Provider load failure
at
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
errorCode)
at System.Management.ManagementObjectEnumerator.MoveNext()

Has anyone tried to do anything similar or seen similar errors?

Thank you,
-Jason
 
K

KM

Jason,

Any chance for you to profile/monitor the application launch or the place when it gets to the exception with tools like
Regmon/FileMon to see what's missing?

--
Regards,
KM, BSquare Corp.

We do have all of those components installed and still no luck.

KM said:
Jason,

Do you have the following components in your configuration:
- WMI Win32 Provider
- Network Diagnostics
- Terminal Services WMI Provider (may appear to be optional)

--
Regards,
KM, BSquare Corp.

Slobodan,

1. The app does work on XP Pro.
2. Our image is XPe SP2
3. We are using .Net 1.1 (the component included with SP2) We are running
with minlogon and therefore had to modify one of the dependencies of the .Net
component.
4. I believe our application requires .Net 1.1

We have narrowed down the code which is causes us problems right now to the
following:

public static ArrayList InstalledNetworkCardNames()
{
ArrayList nicNames = new ArrayList();

ManagementClass mc = new
ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();

foreach(ManagementObject mo in moc)
{
if((bool)mo["ipEnabled"])
{
nicNames.Add( mo["Caption"] );
}
}
return nicNames;
}

Thanks for your help,
-Jason

:

Jason,

Few questions.
1. Does this application work on XPP?
2. What Service Pack do you use?
3. Do you have .Net Framework included and what version?
4. What version of .net is required by your application?

Try making smaller code that repro same error and post it here.

Regards,
Slobodan


I am using an XPe image with all WMI components installed (icnluding the
macro component Windows Management Instrumentation Technologies). We have
written an application that is calling WMI to enumerate the network
interfaces in the machine.

When we run the application we receive the following exception:

5/3/2005 5:43:50 PM:
**** Console Provider load failure , received at 5/3/2005 5:43:50 PM,
Exception at 5/3/2005 5:43:50 PM ****
Provider load failure
at
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
errorCode)
at System.Management.ManagementObjectEnumerator.MoveNext()

Has anyone tried to do anything similar or seen similar errors?

Thank you,
-Jason
 
Ad

Advertisements

G

Guest

We have run a profiler on the app in XP Pro and confirmed the existence of
all DLLs in our XPe image. However, some of the code is managed and therefore
difficult to nail down dependencies. We have written a small test app that
can be run on any machine with .Net. I'm curious to see if it is successful
on any XPe image.

Would you be willing to run the test app on one of your images?

Thanks,
-Jason

KM said:
Jason,

Any chance for you to profile/monitor the application launch or the place when it gets to the exception with tools like
Regmon/FileMon to see what's missing?

--
Regards,
KM, BSquare Corp.

We do have all of those components installed and still no luck.

KM said:
Jason,

Do you have the following components in your configuration:
- WMI Win32 Provider
- Network Diagnostics
- Terminal Services WMI Provider (may appear to be optional)

--
Regards,
KM, BSquare Corp.


Slobodan,

1. The app does work on XP Pro.
2. Our image is XPe SP2
3. We are using .Net 1.1 (the component included with SP2) We are running
with minlogon and therefore had to modify one of the dependencies of the .Net
component.
4. I believe our application requires .Net 1.1

We have narrowed down the code which is causes us problems right now to the
following:

public static ArrayList InstalledNetworkCardNames()
{
ArrayList nicNames = new ArrayList();

ManagementClass mc = new
ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();

foreach(ManagementObject mo in moc)
{
if((bool)mo["ipEnabled"])
{
nicNames.Add( mo["Caption"] );
}
}
return nicNames;
}

Thanks for your help,
-Jason

:

Jason,

Few questions.
1. Does this application work on XPP?
2. What Service Pack do you use?
3. Do you have .Net Framework included and what version?
4. What version of .net is required by your application?

Try making smaller code that repro same error and post it here.

Regards,
Slobodan


I am using an XPe image with all WMI components installed (icnluding the
macro component Windows Management Instrumentation Technologies). We have
written an application that is calling WMI to enumerate the network
interfaces in the machine.

When we run the application we receive the following exception:

5/3/2005 5:43:50 PM:
**** Console Provider load failure , received at 5/3/2005 5:43:50 PM,
Exception at 5/3/2005 5:43:50 PM ****
Provider load failure
at
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
errorCode)
at System.Management.ManagementObjectEnumerator.MoveNext()

Has anyone tried to do anything similar or seen similar errors?

Thank you,
-Jason
 
K

KM

Jason,
We have run a profiler on the app in XP Pro and confirmed the existence of
all DLLs in our XPe image. However, some of the code is managed and therefore
difficult to nail down dependencies. We have written a small test app that
can be run on any machine with .Net. I'm curious to see if it is successful
on any XPe image.

Would you be willing to run the test app on one of your images?
Sure thing. Send it along at "konstmor At hotmail Dot com".

--
Regards,
KM, BSquare Corp.

KM said:
Jason,

Any chance for you to profile/monitor the application launch or the place when it gets to the exception with tools like
Regmon/FileMon to see what's missing?

--
Regards,
KM, BSquare Corp.

We do have all of those components installed and still no luck.

:

Jason,

Do you have the following components in your configuration:
- WMI Win32 Provider
- Network Diagnostics
- Terminal Services WMI Provider (may appear to be optional)

--
Regards,
KM, BSquare Corp.


Slobodan,

1. The app does work on XP Pro.
2. Our image is XPe SP2
3. We are using .Net 1.1 (the component included with SP2) We are running
with minlogon and therefore had to modify one of the dependencies of the .Net
component.
4. I believe our application requires .Net 1.1

We have narrowed down the code which is causes us problems right now to the
following:

public static ArrayList InstalledNetworkCardNames()
{
ArrayList nicNames = new ArrayList();

ManagementClass mc = new
ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();

foreach(ManagementObject mo in moc)
{
if((bool)mo["ipEnabled"])
{
nicNames.Add( mo["Caption"] );
}
}
return nicNames;
}

Thanks for your help,
-Jason

:

Jason,

Few questions.
1. Does this application work on XPP?
2. What Service Pack do you use?
3. Do you have .Net Framework included and what version?
4. What version of .net is required by your application?

Try making smaller code that repro same error and post it here.

Regards,
Slobodan


I am using an XPe image with all WMI components installed (icnluding the
macro component Windows Management Instrumentation Technologies). We have
written an application that is calling WMI to enumerate the network
interfaces in the machine.

When we run the application we receive the following exception:

5/3/2005 5:43:50 PM:
**** Console Provider load failure , received at 5/3/2005 5:43:50 PM,
Exception at 5/3/2005 5:43:50 PM ****
Provider load failure
at
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
errorCode)
at System.Management.ManagementObjectEnumerator.MoveNext()

Has anyone tried to do anything similar or seen similar errors?

Thank you,
-Jason
 
K

KM

Jason,

You forgot to attach the component when you sent me email :)

But regardless, you mentioned in the email the facts we should have asked you earlier.
You image is Minlogon based and .Net 1.1 Framework apps will unlikely work for you. Basically, there is some security components of
..Net that have a dependency on Winlogon (multiuser environment). And you can see that from FBALog.txt.

Most likely you did not auto-resolve your Configuration dependencies, right? Otherwise you would get Winlogon 1.1 in your image.

So, please move to Winlogon image if you want to use .Net apps on your image.

KM
We have run a profiler on the app in XP Pro and confirmed the existence of
all DLLs in our XPe image. However, some of the code is managed and therefore
difficult to nail down dependencies. We have written a small test app that
can be run on any machine with .Net. I'm curious to see if it is successful
on any XPe image.

Would you be willing to run the test app on one of your images?
Sure thing. Send it along at "konstmor At hotmail Dot com".

--
Regards,
KM, BSquare Corp.

KM said:
Jason,

Any chance for you to profile/monitor the application launch or the place when it gets to the exception with tools like
Regmon/FileMon to see what's missing?

--
Regards,
KM, BSquare Corp.


We do have all of those components installed and still no luck.

:

Jason,

Do you have the following components in your configuration:
- WMI Win32 Provider
- Network Diagnostics
- Terminal Services WMI Provider (may appear to be optional)

--
Regards,
KM, BSquare Corp.


Slobodan,

1. The app does work on XP Pro.
2. Our image is XPe SP2
3. We are using .Net 1.1 (the component included with SP2) We are running
with minlogon and therefore had to modify one of the dependencies of the .Net
component.
4. I believe our application requires .Net 1.1

We have narrowed down the code which is causes us problems right now to the
following:

public static ArrayList InstalledNetworkCardNames()
{
ArrayList nicNames = new ArrayList();

ManagementClass mc = new
ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();

foreach(ManagementObject mo in moc)
{
if((bool)mo["ipEnabled"])
{
nicNames.Add( mo["Caption"] );
}
}
return nicNames;
}

Thanks for your help,
-Jason

:

Jason,

Few questions.
1. Does this application work on XPP?
2. What Service Pack do you use?
3. Do you have .Net Framework included and what version?
4. What version of .net is required by your application?

Try making smaller code that repro same error and post it here.

Regards,
Slobodan


I am using an XPe image with all WMI components installed (icnluding the
macro component Windows Management Instrumentation Technologies). We have
written an application that is calling WMI to enumerate the network
interfaces in the machine.

When we run the application we receive the following exception:

5/3/2005 5:43:50 PM:
**** Console Provider load failure , received at 5/3/2005 5:43:50 PM,
Exception at 5/3/2005 5:43:50 PM ****
Provider load failure
at
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
errorCode)
at System.Management.ManagementObjectEnumerator.MoveNext()

Has anyone tried to do anything similar or seen similar errors?

Thank you,
-Jason
 
Ad

Advertisements

Joined
Dec 12, 2006
Messages
1
Reaction score
0
Terminal Services needed

Just make sure that your "Terminal Services" windows service has started. I had the same problem but once I got that service started I am getting all the information from the Win32_NetworkAdapter and Win32_NetworkAdapterConfiguration classes.

HTH.
 

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

Top