Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7704855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:46:29+00:00 2026-05-31T23:46:29+00:00

I am testing an existing application in the Windows 8 consumer preview and it

  • 0

I am testing an existing application in the Windows 8 consumer preview and it crashes upon launching. The log files indicate it is in the method where I do some validation on the CPU ID and Network card details.

To do this, I am calling

        ManagementClass mc = new ManagementClass("Win32_Processor");
        ManagementObjectCollection moc = mc.GetInstances();
        foreach (ManagementObject mo in moc)
        {
            if (cpuInfo.Length == 0)
            {
                // only return cpuInfo from first CPU
                cpuInfo = mo.Properties["ProcessorId"].Value.ToString();
            }
        }

(Note that this application works fine on Windows 7 and earlier).

I then use the same syntax for hooking into Win32_NetworkAdapterConfiguration and getting the IPEnabled, IPAddress[], and MACAddress properties.

But somewhere in here it is crashing.

I have tried to research this already, and found the following Windows 8 server list of WMI classes and methods and the ones I am using are not on it. However, the same site has a list of Windows 7 WMI classes and methods too, and these aren’t in that either! (Even though it works on Windows 7 no problem).

So from the look of that, it is not supported.

The MSDN for the ManagementClass indicates that the method is still present in .NET 4.5. Additionally, this Microsoft resource does explicitly list Win32_Processor and Win32_NetworkAdapterConfiguration, with the methods I need.

So, from the links, you can see I have tried to research this, so this is my last stop in trying to solve this mystery.

My app is originally a .NET 2.0 solution created in Visual Studio 2005. I have installed Visual Studio 2011 Beta into my Windows 8 Consumer Preview VM, along with the latest SQL 2012 Express. I have tried importing my project into this Visual Studio but it doesn’t load it, telling me that it only supports Metro development. Therefore I cannot debug this issue on the machine itself.

So my question is specifically do these classes exist in Windows 8? If they do, then what am I doing wrong? If they don’t, then I need to find out a way to still get this information – but I guess that’s a separate question 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:46:30+00:00Added an answer on May 31, 2026 at 11:46 pm

    This has been answered but unfortunately only in comments on my original post, by Alex K. Using http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8572 I was able to identify these methods do exist, so I figure it’s a coding issue as my code is slightly different to what is generated by that utility.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing database that has some testing data into and I'm interested
I have an existing asp.net webforms application that I would like to add some
I am doing smoke testing in my existing asp.net web application, I have developed
For testing an existing application I wrote a dll that can be loaded into
I have an existing application that has some parts of formatted text-blocks (standard formats
I have been trying to learn how to add testing to existing code --
We have started using the boost unit testing library for a large existing code
I'm looking for the cross-platform way to test some features in my application which
I'm working on my first WPF application and I'm testing out a custom control
I'm developing a mobile application for WP7 based on an existing Silverlight desktop application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.