<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Exception when reading BIOS information' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Exception when reading BIOS information' posted on the 'Windows XP' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 17:42:09 -0700</pubDate>
    <lastBuildDate>Tue, 18 Jun 2013 17:42:09 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Exception when reading BIOS information</title>
      <link>http://www.programmersheaven.com/mb/winxp/383417/383417/exception-when-reading-bios-information/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
i got an Exception when i try to read some BIOS informaiton with WMI using C#. &lt;br /&gt;
&lt;br /&gt;
I have the following code:&lt;br /&gt;
&lt;br /&gt;
public static string GetBIOSBuildName()&lt;br /&gt;
        {&lt;br /&gt;
            string name = "";&lt;br /&gt;
            try&lt;br /&gt;
            {&lt;br /&gt;
               &lt;br /&gt;
                ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT * FROM Win32_bios");&lt;br /&gt;
                ManagementObjectCollection qCollection = query.Get();&lt;br /&gt;
                foreach (ManagementObject mo in qCollection)&lt;br /&gt;
                {&lt;br /&gt;
                    if (name == null)&lt;br /&gt;
                    {&lt;br /&gt;
                        name = mo["BuildName"].ToString();&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            catch (Exception e)&lt;br /&gt;
            {&lt;br /&gt;
                return "error";&lt;br /&gt;
            }&lt;br /&gt;
            return name; &lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
It looks like i cannot read the BuildNumber and some other information but i can read BuildVersion, Caption and Language. &lt;br /&gt;
&lt;br /&gt;
Do i need some other code for reading BuildNumber etc?&lt;br /&gt;
&lt;br /&gt;
Thank you.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/winxp/383417/383417/exception-when-reading-bios-information/</guid>
      <pubDate>Mon, 22 Dec 2008 03:31:23 -0700</pubDate>
      <category>Windows XP</category>
    </item>
  </channel>
</rss>