473,807 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Not Supported" error on WMI Query in VB.NET

Hello,
I wanted query my CPU's temperature using this WMI code, but it always
gives error "not suppored" as exception. I can monitor my Intel P4
Socket 478 CPU's temp with the softwares supplied by motherboard
manufacturer or other 3rd party softwares, but cannot using that WMI
code.

What's wrong? And how could i make sure that my system supports low-
level hardware WMI queries?

The function:

Public Overloads Shared Function readtemp() As Integer

Try
Dim searcher As New ManagementObjec tSearcher( _
"root\WMI", _
"SELECT * FROM MSAcpi_ThermalZ oneTemperature" )

For Each queryObj As ManagementObjec t In searcher.Get()
MsgBox(queryObj ("CurrentTemper ature"))
Next

Catch err As ManagementExcep tion
MessageBox.Show ("An error occurred while querying for WMI data: " &
err.Message)
End Try
End Function

Thanks!
Note: I referenced system.manageme nt DLL and using .NET 2.0 with XP
SP2 on VB2005 express.

Onur Güzel
Jun 27 '08 #1
0 1665

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5880
by: Tim Hansen | last post by:
Greetings to all. I am having a problem running .asp pages for our new website. I beleive it to be an IIS problem, but all the troubleshooting has lead me nowhere. When I try to acces the pages via http://ip/admin/index.asp (ip is the "home directory") i get: Server Application Error The server has encountered an error while loading an application during the processing of your request. Please refer to the event log
1
4908
by: skilla | last post by:
Hi people, I've got WinXP Pro SP2 English on my laptop and since installing SP2 got the IISRESET "No such interface supported" error. The whole story: I was writing a fairly simple ASP app with in-memory recordsets, and while testing I issued an iisreset to get 'clean test results', but I got the "No such interface supported".
0
1329
by: Mec | last post by:
Some time ago I created a windows forms application with a deployment project. I was always able to build the deployment package after changing the windows forms application, but somehow something changed. When I try to build the deployment project, it builds the windows application without errors, but when packaging I now get the following error: "File not found <Filename>, Interface not supported". When checking <Filename>, it...
2
6812
by: John | last post by:
I have some code that changes a PDF file in another frame using: parent.frame.document.location.href = "PDF File" This code works fine the first time it is called. But if a PDF file is in that frame and the code is called again IE gives me an error: "no such interface supported" I have used this code for the past 5 years and it has worked fine with
9
18579
by: Mike Bridge | last post by:
I am using MS Access 2003, and I typed in a query in SQL view which was working fine. Now when I open it, it gives me the error "Join expression not supported". Apparently, Access "fixed" it for me. Unfortunately, I can't correct it because when I click "OK", the window disappears. I don't see any way to open the query directly in SQL view, and both the Design and Data views exit as soon as I close the error dialog. Is there any way...
4
1743
by: Steven | last post by:
Hi all, I have a solution with a VB.net project, and a installer-project. When I build the solution, I get the following message; WARNING: Language ID '0' not supported. To the installer project, I added the option to check for the ..net framework. If not present, it will install dotnetfx.exe. Could this have something to do with this warning?
1
1875
by: dmorand | last post by:
I'm having an issue with displaying asp pages on my server. I've determined it's obviously something with only asp because html pages display fine. I'm getting this error when I launch my asp page: Server Application Error The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for...
1
3230
by: weheh | last post by:
I'm running Python 2.3 and calling pyTTS. I've had it working forever. Today, I ran out of disk space. After deleting some of my personal files, for no apparent reason, pyTTS no longer runs. For the statement tts = pyTTS.Create() I get the error message:
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10624
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.