473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Invalid Namespace

I have a program that is being used by many users, but one is getting an
exception of "Invalid Namespace". I have no idea why or how to fix this
problem. The following is the code that is being used:

Dim disk As New System.Management.ManagementObject
_("Win32_LogicalDisk.DeviceID=""C:""")
disk.Get()

The error is occuring on the .Get function. The user is running Windows98,
and I had to run the wmi9x.exe file to get WMI installed. Could the WMI be
some how corrupted and if so, how can it be fixed, would running the
wmi9x.exe file again fix this problem? I am not sure if the user is running
Windows 98 or Windows 98 Second Edition, does WMI work on plain Win98 or only
on Second Edition and up?

Any info about this error and how to fix it would be greatly appreciated.

Mark
Nov 21 '05 #1
1 2801
This page is for the WMI download for Windows 95/98/98 SE:

http://www.microsoft.com/downloads/d...displaylang=en

Direct link to the file (3029 KB):

http://download.microsoft.com/downlo...N-US/wmi9x.exe

You need to be running Internet Explorer 5 or above

----------------------

I created a simple project in VB.NET 2003:

1) Start a new Windows application

2) Add a reference to the System.Management DLL

3) Add the following inport:

Imports System.Management

4) Add a button, double-click it & paste in the following code:

Dim mo As New ManagementObject( "Win32_LogicalDisk.DeviceId='C:'")
mo.Get()
Dim ulngFreeSpace As UInt64 = CType(mo("FreeSpace"), UInt64)
MessageBox.Show(ulngFreeSpace.ToString())

5) Run it. The result is irrelevant, but it just to see if it works on the
Windows 98 machine

I hope this helps

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #2

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

Similar topics

3
by: Stephan Brunner | last post by:
Hi I have created two flavors of an XSLT stylesheet to transform all attributes of an XML document to elements: They both work as expected with MSXML and XMLSPY but throw an exception ...
1
by: Frank Py | last post by:
I'm getting the following error when trying an example app: Invalid object name 'Products'. Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'Products'. Line 22:...
1
by: jm | last post by:
I get "data at the root level is invalid." I have changed security for the IUSR_xx to be in the adminstrators (tried anonymous access); changed all the file security I could; tried virtual...
1
by: jm | last post by:
I get "data at the root level is invalid." I have changed security for the IUSR_xx to be in the adminstrators (tried anonymous access); changed all the file security I could; tried virtual...
7
by: Chris Thunell | last post by:
I'm trying to loop through an exchange public folder contact list, get some information out of each item, and then put it into a vb.net datatable. I run though the code and all works fine until i...
3
by: Ajay Choudhary | last post by:
Hi, If the client tries to access a web service with invalid namespace, it gets a SOAP exception as invalid SOAPAction. The invalid namespace will happen because the proxies on the client side...
9
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its...
6
by: jasn | last post by:
Hello I am getting the following error message when I try and send an XML sting to a web service, I read somewhere that most web services prefer ascii and some throw errors when using unicode so...
2
by: fjansen | last post by:
I'm trying to understand the underlying issue in my code that is generating the following compile-time error message: SingleLevelLogicalUnitNumber.cpp: In member function `bool...
4
by: agda.karlberg | last post by:
Hi, Apologies if this is a really stupid question, I haven't done much xml before. I need to validate an xml file against a schema, but when I try to validate an invalid file it doesn't throw...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.